• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing Parameters JSP  RSS feed

 
Pravin Venkatesh Venkatraman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a doubt.. i require to pass some dynamic values from one JSP to another... <jsp:forward> seems to do only static work.. i'm looking for some efficient ways of doing this stuff..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you be forwarding from one JSP to another? That's just really really odd. A JSP should be the last resource in the forwarding chain in order to render the HTML to be sent to the browser. If you are trying to forward away from a JSP, chances are that your design has problems.

In any case, since a forward is not a new request, the existing parameters will be forwarded along, but you can't add new ones. If you want to "pass" data from one resource to the next resource, use scoped variables.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!