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]
