A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Today (12/10) is CodeRanch Day in
Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: passing variables to jsps
uploading a file to a servlet
Good practices in Pagination
differce between jsp and servlet
jsp parent class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013