File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Accessing HttpRequest  Parameteres in ActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Accessing HttpRequest  Parameteres in ActionForm" Watch "Accessing HttpRequest  Parameteres in ActionForm" New topic
Author

Accessing HttpRequest Parameteres in ActionForm

vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
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

Joined: Nov 18, 2003
Posts: 21
hi,
ur action form has both req & res right
u can use request.getparameter("");
& u can use it
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing HttpRequest Parameteres in ActionForm
 
Similar Threads
Filter being called for Struts' forwarded JSP
Why contentType is null?
escape sequences
Forwarding the page after some time delay
RequestDispatcher inside JSP