Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forward a variable value in JSP

 
gurusamy sengodan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have stored one variable values in one.jsp.

I want to forward the variable values to ten.jsp.
The order should be maintained like one.jsp--> two.jsp --> three.jsp-->,.....ten.jsp.

How to do that?

I know one way is we can keep the value in session.

is there any other way of doing this?

Thanks,
Guru
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you send the value in the URL params ? Its going to be in the request object instead of the session.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64713
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forwarding from one JSP to another is an odd thing to be doing. A JSP is the end point of a view; why would you forward away from a JSP?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic