Re: [appfuse-user] pass parameter at sumbit form

2007-09-20 Thread Matt Raible
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

Re: [appfuse-user] pass parameter at sumbit form

2007-09-10 Thread BruceLee
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. -

Re: [appfuse-user] pass parameter at sumbit form

2007-09-09 Thread Matt Raible
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

[appfuse-user] pass parameter at sumbit form

2007-09-09 Thread BruceLee
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! -