Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using usebean action

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic