tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George McKInney" <>
Subject RE: How can I have two beans in the same JSP?
Date Tue, 22 Aug 2000 22:53:17 GMT
> I have 2 JSPS and I want to get a variable from one to the other.
You can simply put a useBean tag in each of the pages, using the same id
(and class).
If the .jsps will be handling the same request (using forward, for instance)
you can specify that the bean have request scope.

If they will be used within the same session, but not necessarily the same
request, use session scope. In this case make sure that you haven't used <%@
page session = "false" ... %>, which (I think) will prevent the page's using
a bean with session scope.

George McKinney, Developer
tantalus communications inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705
"When eBusiness experience counts."

View raw message