Hi all-
Is there a way in JSP to conditionally use a bean such as in this scenario:
<% if (session.getValue("usertype") == "s") { %>
<jsp:useBean id="user" scope="session" class="prj.student" />
<% } else { %>
<jsp:useBean id="user" scope="session" class="prj.teacher" />
<% } %>
The above snippet gives me this compile time error:
jsp:useBean: duplicated id found
-Kim
_____________________
Kim Markegard
Casino Studios
503.239.4468
www.casinostudios.com
===========================================================================
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