In your form, you should be able to add: <input type="hidden" name="item" value="myPicture"/>
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 URL like > a.com/uploadFile.action?item=myPicture > Then the same Action class can be used for multiple forms. > > -Bruce > > > mraible wrote: > > > > 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 > > > > On 9/9/07, BruceLee <[EMAIL PROTECTED]> wrote: > >> > >> 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? > >> > >> <ww:form action="profileUpload" method="post"> > >> ... > >> <input type="submit" name="upload" class="button" > >> onclick="bCancel=false" > >> value="<fmt:message key="button.upload"/>" /> > >> </ww:form> > >> > >> Thanks a lot in advance! > >> -Bruce > >> -- > >> View this message in context: > >> http://www.nabble.com/pass-parameter-at-sumbit-form-tf4409984s2369.html#a12580574 > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > http://raibledesigns.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/pass-parameter-at-sumbit-form-tf4409984s2369.html#a12597703 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
