This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes use: bean  tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "use: bean  tag" Watch "use: bean  tag" New topic

use: bean tag

Danny Scott

Joined: Apr 04, 2001
Posts: 2
Hi all!
jsp:usebean id="???" class="myclass" scope="request"
I make an object of my bean class in a servlet.Now what should be given as id in the above tag.
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
I think that's up to you. I have a servlet which uses:
<jsp:useBean id="usersession" type="com.xpresstrade.clientserver.ejb.usersession.UserSessionSF" scope="session" />
Later on, I access the bean with:
<input type="hidden" name="accountID" value="<%= usersession.getUserName()%>">
Have you checked out Aspose?
subject: use: bean tag
It's not a secret anymore!