Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

conditional usebean  RSS feed

 
krinder singh krinder singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im trying to do the folowing in my jsp but i get errors when i try to access
the beans i.e underfined variable or class name myContentManagerUpdateBean (i get this error even if bnId is not null)
any ideas. thanks in advance.
<%
if (request.getParameter("bnId") != null)
{
%>

<jsp:useBean id="myContentManagerUpdateBean" scope="request" class="sniabeans.ContentManagerUpdateBean"/>
<jsp:setProperty name="myContentManagerUpdateBean" property="*"/>

<%
myContentManagerUpdateBean.contentFullDetailsFromDB();
}
else
{
%>

<jsp:useBean id="myContentManagerCreateBean" scope="request" class="sniabeans.ContentManagerCreateBean"/>
<jsp:setProperty name="myContentManagerCreateBean" property="*"/>
<%
}
%>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!