The moose likes Servlets and the fly likes use: bean  tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "use: bean  tag" Watch "use: bean  tag" New topic
Author

use: bean tag

Danny Scott
Greenhorn

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.
Thanks.
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()%>">
HTH
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: use: bean tag
 
Similar Threads
jsp usebean
how to pass value to a bean file
Struts 2.x : How to call method in the bean using bean tag
jsp:useBean tag
Jsp standard action tag (usebean)