This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing HttpRequest Parameteres in ActionForm

 
vishwa venkat
Ranch Hand
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an html page with an hyper link
<html>
<a href="/Test.jsp?param1=abc">Go</a>
</html>
Test.jsp is a form that uses struts..
I want to access param1 in ActionForm and set the parameter to another field in Test.jsp.
How can I do that?
Thanks for help!
 
P. Udaya Shankar
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
ur action form has both req & res right
u can use request.getparameter("");
& u can use it
 
vishwa venkat
Ranch Hand
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I acces HttpRequest and HttpResponse objects in my Action form?
I mean which method ?Constructor doesn't take these objects as arguments?
Iam not getting any value when I say request.getParameter("param1").
what may the problem?
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic