A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
passing variables to jsps
Joined: Mar 10, 2008
May 18, 2008 06:36:00
how can we pass a variable declared in one
to another JSP?
[edited subject to use a meaningful subject - was "interview question"]
[ May 18, 2008: Message edited by: Jeanne Boyarsky ]
Joined: Aug 06, 2006
May 18, 2008 07:18:00
By putting that variale in session if you are maintianing it.
Second is that, you can pass variable as parameter after URL
and pass it to JSP
Joined: Dec 11, 2004
May 18, 2008 18:38:00
How you did you answer this question in your interview?
How to ask a question...
Simple Servlet Examples
Joined: Apr 21, 2008
May 19, 2008 00:04:00
If you need to pass a value while a invoking a JSP, you can better use <jsp:param name="abc" value="xyz"/> embedded inside <jsp:include>.Or'else you can use a session to bind values.
Thanks & Regards
I agree. Here's the link:
subject: passing variables to jsps
uploading a file to a servlet
differce between jsp and servlet
Good practices in Pagination
jsp parent class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013