A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Forward a variable value in JSP
Joined: Oct 13, 2005
Apr 04, 2013 01:41:23
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?
Joined: Aug 11, 2011
Apr 04, 2013 03:07:03
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)
Author and ninkuma
Joined: Jan 10, 2002
Apr 04, 2013 08:26:46
Forwarding from one
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
Books by Bear
I agree. Here's the link:
subject: Forward a variable value in JSP
accessing session variable values in java class
Error passing data from jsp to servlet
Struts Controller to Controller
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015