Title: RE: session object in jsp
Hello Kim:
 
Yes you can. When you instantiate/create your bean for the first time, specify the scope to be "session" like this.
 
 
<jsp:useBean id="<Name>" scope="session" class="<Full Class Name>" />
 
 
And then use this same syntax in your other apps.
 
Syed
 
-----Original Message-----
From: kim(usm) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 10:22 AM
To: [EMAIL PROTECTED]
Subject: session bean across webapps???

Hello,
 
Is it possible to have a session bean across different webapps???
 
Let's say i have 3 folders under jakarta-tomcat/webapps, i.e.
jakarta-tomcat/webapps/app1/
jakarta-tomcat/webapps/app2/
jakarta-tomcat/webapps/app3/
 
And under each webapp I have a UserBean class, i.e.
jakarta-tomcat/webapps/app1/web-inf/classes/UserBean.class
jakarta-tomcat/webapps/app2/web-inf/classes/UserBean.class
jakarta-tomcat/webapps/app3/web-inf/classes/UserBean.class
 
Will I be able to have a user login once (from either app1, app2 or app3) and access the other apps. using the same session??
 
 

Reply via email to