This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using usebean action  RSS feed

 
rajaji raja
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!