Am 14.03.2012 21:21, schrieb Dave Newton:
And you've set the other referenced properties appropriately?
Well, here are my settings....

<!-- http://struts.apache.org/2.2.3/docs/wildcard-mappings.html -->
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.patternMatcher" value="regex" />

<!-- http://struts.apache.org/2.2.3/docs/convention-plugin.html -->
<constant name="struts.convention.classes.reload" value="true" />
<constant name="struts.convention.default.parent.package" value="myapp-common" />

<constant name="struts.action.extension" value=",action"/>
<constant name="struts.devMode" value="true"/>


I double checked my code.... there seems nothing wrong with the pattern matching in general. For instance when I request the url

/namespace/123/import matching the annotated pattern "{id:[0-9]+}/import" the right action is executed and the id field is populated accordingly.

Only the prepare method fails in this regard.

cheers
Mounir






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to