I have created a bean and used it in jsp page using <jsp:useBean id="conn" class="atul.payroll.DBConnection" scope="session"> tag.
I have declared its scope to session variable.
I don't have any problem while accessing "conn" in that page, but whenever i use "conn" variable in another jsp page it gives me error that "undefined variable:conn"
plz help me out
-
Jsp -Bean object handling (2 messages)
- Posted by: atul manaskar
- Posted on: November 06 2004 05:55 EST
Threaded Messages (2)
- Jsp -Bean object handling by Duncan Mills on November 08 2004 08:42 EST
- Succesful execution by atul manaskar on November 10 2004 07:58 EST
-
Jsp -Bean object handling[ Go to top ]
- Posted by: Duncan Mills
- Posted on: November 08 2004 08:42 EST
- in response to atul manaskar
You'll have to put the useBean in on the other page as well, if the "conn" has already been created then the useBean will find it and return it for use. -
Succesful execution[ Go to top ]
- Posted by: atul manaskar
- Posted on: November 10 2004 07:58 EST
- in response to Duncan Mills
Thanks Duncan,
Now everything is working fine.