[ http://mc4j.org/jira/browse/STS-439?page=comments#action_10905 ] Ben Gunter commented on STS-439: --------------------------------
Indeed, it does work. The difference between using $event and _eventName is that whatever value you assign to $event gets translated into a parameter name, while _eventName is just a normal parameter with a value. E.g., if you do <s:param name="$event" value="edit"/> you will end up with a parameter named "edit" with an empty value. If you instead do <s:param name="_eventName" value="edit"/> you will end up with a parameter named "_eventName" with a value of "edit". Stripes tries the former before it tries the latter when determining which even to fire. > Multi part requests to friendly URL's do not bind parameters to properties or > handlers. > --------------------------------------------------------------------------------------- > > Key: STS-439 > URL: http://mc4j.org/jira/browse/STS-439 > Project: Stripes > Issue Type: Bug > Affects Versions: Release 1.5 > Environment: Built off trunk, rev 634 > Reporter: Joseph Chan > Assigned To: Ben Gunter > > A form posts to an Action Bean that is bound to a friendly URL. The form > specifies parameters through the use of nested <stripes:param> tags. These > parameters are not being bound to corresponding public properties of the > Action Bean and the HandlerResolution lifecycle stage does not identify the > correct handler based on the event parameter. > e.g: > In the following example, I would expect the ActionBean property > 'profileName' to be set to 'john_doe' and the handler method 'edit' to be > invoked however neither of these occur. > JSP: > <s:form action="/action/profiles"> > <s:param name="profileName" value="john_doe"/> > <s:param name="$event" value="edit"/> > </s:form> > ActionBean binding: > @UrlBinding("/action/profiles/{profileName}/{$event}") -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
