Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes using usebean action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "using usebean action" Watch "using usebean action" New topic
Author

using usebean action

rajaji raja
Greenhorn

Joined: Jul 27, 2003
Posts: 9
Hi guys
this my sample code
one.jsp
<jsp:useBean id="a" class=" ---" scope="ession">

</jsp:useBean>
how can use id " a"
in another jsp file
priya shankar
Ranch Hand

Joined: May 12, 2003
Posts: 51
Hi
As u have set scope=session..id is availabe throuhout the session...
In the another file u just use
<jsp:useBean id="a" class="--" scope="session" />
nuv u can access the bean through "a"..it doesn't mean u r creating a new instance..its going to use the instance u created in the previous page..
priya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using usebean action