wood burning stoves 2.0*
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
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
 
Similar Threads
Problems with calling window.open within a JSP
Simple way to get the current date/time into a JSP output
jsp:getProperty calling bean from specific scope
what we can put here in the usebean from the list given below
A JSP consisting of a single jsp:useBean won't compilef