Hi,

how can I control the name of a jsp bean in a session or application.

If I create a bean like this:

<jsp:useBean id="voteEngine" scope="application"
class="nation.app.vote.VoteEngine" >
 <jsp:setProperty name="voteEngine" property="database" value="rosta" />
</jsp:useBean>

how do I know what name the bean gets if I want to use the bean in a servlet
like this:

ServletContext.getAttribue("voteEngine");

I want a servlet to create the bean and then pull it from the application
object in my jsp file, but I want the attribute name to be:
nation.app.vote.voteEngine



.henric

| www.abelbaker.com | [EMAIL PROTECTED] |

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to