Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get and set request.getParameter?  RSS feed

 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 96
Scala Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try

<html:form name="a" value='<%= request.getParameter() %>'/>
 
Wagner Danda Da Silva Filho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samuel,

I think you mean:

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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!