In your form, you should be able to add:
Matt
On 9/10/07, BruceLee <[EMAIL PROTECTED]> wrote:
>
> Thank Matt. However, I still use WW2.2.4 based on appfuse 1.9.4. And my
> another question would be,
>
> When I click Submit, I also want to pass a param to the Action. That's to
> say, to get a UR
Thank Matt. However, I still use WW2.2.4 based on appfuse 1.9.4. And my
another question would be,
When I click Submit, I also want to pass a param to the Action. That's to
say, to get a URL like
a.com/uploadFile.action?item=myPicture
Then the same Action class can be used for multiple forms.
-
If you want the result to have that URL, you can do a redirect. Struts
2 allows the redirect parameters to be dynamic.
http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect
Otherwise, if you want the value to be posted when submit the form -
put the name/value in a hidden field.
Matt
Team,
I'd like to pass parameter to action at sumbitting a form. However I
searched this forum and no luck.
e.g when I click 'upload' button, I want to get result url
my.com/profileUpload.html?item=myPicture
How can I accomplish it from form below?
...
" />
Thanks a lot in advance!
-