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.
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()
/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
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
4 matches
Mail list logo