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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Forward a variable value in JSP" Watch "Forward a variable value in JSP" New topic
Author

Forward a variable value in JSP

gurusamy sengodan
Ranch Hand

Joined: Oct 13, 2005
Posts: 41
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

Joined: Aug 11, 2011
Posts: 440

Why dont you send the value in the URL params ? Its going to be in the request object instead of the session.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forward a variable value in JSP