You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shyamal Shah <sh...@hotmail.com> on 2004/04/13 16:29:21 UTC
Using GET method to submit form in Struts
Can I submit form using GET method? I want to do following:
http://mywebsite.com/actionmapping.do?serviceid=M12221
My question is, if I set action type as GET and then submit it, how will my
action class read the serviceid value?
Thanks
_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN
Premium!
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Using GET method to submit form in Struts
Posted by Andrew Hill <an...@gridnode.com>.
request parameters whether submitted as part of a get url or in a post (or
even as part of the url to which a form is posted!) can all be read the same
way - via the servlet apis request.getparameter() - and thus will also be
populated into the action form automatically by struts, so you can
transparently switch from a post to a get without needing to change that
code in your action. :-)
-----Original Message-----
From: Shyamal Shah [mailto:shyamal_shah@hotmail.com]
Sent: Tuesday, 13 April 2004 22:29
To: user@struts.apache.org
Subject: Using GET method to submit form in Struts
Can I submit form using GET method? I want to do following:
http://mywebsite.com/actionmapping.do?serviceid=M12221
My question is, if I set action type as GET and then submit it, how will my
action class read the serviceid value?
Thanks
_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN
Premium!
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/dire
ct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org