Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes How to get and set request.getParameter? 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 "How to get and set request.getParameter? " Watch "How to get and set request.getParameter? " New topic
Author

How to get and set request.getParameter?

Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
http://abc/action.do?a=90

I have sent one request paramter "a" to my view JSP, how can I get and set in a hidden parameter so that next request from that JSP automatically includes that parameter in request.
I tried <html:hidden name="a"> but it didnt work.
Any idea???
Regards
Awais Bajwa
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

Try

<html:form name="a" value='<%= request.getParameter() %>'/>
Wagner Danda Da Silva Filho
Ranch Hand

Joined: Mar 21, 2003
Posts: 80
Samuel,

I think you mean:

<html:hidden name="a" value='<%= request.getParameter() %>'/>



SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get and set request.getParameter?
 
Similar Threads
Scriptlets in Struts
how to use the servlet to get the value from JSTL c:set?
jsp and javascript
Displaying bean value in JSP
extra / in url