What browser(s) have you tested this with?

-Ben

Yakov Zhdanov wrote:
I want to apload a file, so, I do the following...
jsp:
<stripes:form action="/some.action">
....
    <stripes:file name="picture" />
....
    <stripes:image src="http://some.url";  name="uploadPicture" />
.... </stripes:form>

java:

@UrlBinding("/some.action")
public class ActionBean extends BaseActionBean {
...
    private FileBean picture;
... {getters and setters}

    /**
     * @return
     * @throws IOException
     * @throws ResourceStorageException
     */
    @HandlesEvent("uploadPicture")
    public Resolution uploadPicture() {
        //perform some processing
    }
}

the problem is that the event is not resolved correct, and the @DefaultHandler annotated method is called.
Maybe it happens due to form is multipart?
AnnotatedClassActionResolver tries to find 'uploadPicture.x', but I have only 'uploadPicture_x' - underscrore instead of a dot

By the way, if I remove the file-input the resolving process finishes with a success.

Maybe smth is wrong. Who has already implemented smth like that?

I use jdk1.6.0_05, tomcat 6.0.14, stripes 1.5.1b
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to