Re: Struts2 upload

2008-11-10 Thread Nick J
Thanks to everyone who responded. It is now working. I removed the - it's not needed I added method="post" to the HTML form element - I had forgotten it. The extends="json-default" in the pacjage is needed because of one of the other actions produces a JSON response.

Struts2 upload

2008-11-01 Thread Nick J
Hi, I am having some trouble with Uploads in Struts 2. Here is the action: /upload.html Here is the HTML form: Here's the appropriate part of the action class: public String imageUpload()

Re: Struts2 static content

2008-10-03 Thread Nick J
/css/{1} /js/{1} Nick J wrote: > > I am using struts2. > I don't want .action or .do on the end of the url's, so I set > struts.action.extension='' (empty string) > -- View this message in context: http://www.nabble.com/Struts2

Struts2 static content

2008-10-02 Thread Nick J
I am using struts2. I don't want .action or .do on the end of the url's, so I set struts.action.extension='' (empty string) Now this leaves me with a bit of a problem serving static content, since struts swallows up all of my requests, and nothing gets through to the default servlet. How can I s