[ http://mc4j.org/jira/browse/STS-439?page=comments#action_10903 ] 
            
Ben Gunter commented on STS-439:
--------------------------------

I've set up a simple form like the one in your example and an ActionBean that 
prints out its properties and saves the uploaded file to disk. Everything is 
working for me. Please check that you don't have @StrictBinding turned on for 
your ActionBean or if you do that you have @Validate on each property that is 
to be bound.

> 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

Reply via email to