0 down vote favorite
        

I am trying to populate a parameter named 'member.id' in an action class
using regular expression and wildcard action mapping with Struts2. The
action mapping is something like this:

<action name = "validationEmailHTML/{sac:[^/]*}/{member.id:[0-9]*}" class =
"controller.signUp.ValidationEmailContentController">
    <interceptor-ref name="securityStack"/>
    <result name="success">/signup/validationemail.jsp</result>
    <result name="dbconnectionerror">/error/500.jsp</result>
    <result name="unknownerror">/error/500.jsp</result>
</action>

The first parameter 'sac' gets populated correctly but the 'member.id' is
being ignored. Am I missing something here or is it because ognl expressions
to specify field-names is not an option when regex is used as a
pattern-matcher?


--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts2-wildcard-action-mapping-with-ognl-expressions-as-field-names-tp4672849p4672849.html
Sent from the Struts - User mailing list archive at Nabble.com.

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

Reply via email to