troubleshooting Question

weird apache jsp puzzzler..

Avatar of simlox
simloxFlag for United Kingdom of Great Britain and Northern Ireland asked on
JSP
13 Comments1 Solution210 ViewsLast Modified:
i've create code to use different enus dependant on user who are logged in... this works fine the first time I run the app but not the second.. if I delete the class files creates from the jsp it works first time again... any one help.. I'm using apache 4 and sdk 1.4..

code:

<!-- this is the dynamic menu insertion start -->
<jsp:useBean  id="secure" class="com.sheen.secure" scope="session" />
<jsp:useBean  id="sheer" class="com.sheen.BOSheerBean" scope="session" />

<%! String menu="Standard"; %>
<%
     com.sheen.userBean user = secure.getUser(session) ;
     if (user.getuserID()!=0){
          com.sheen.sheerUser sUser = sheer.getSheerUser(session, user);
         
          if (!sUser.getSheerUserType().equals("none")){
               menu=sUser.getSheerUserType();
          %>
               <jsp:include page="/includes/menuFLM.jsp" flush="true" />
          <%    
          }          
     }else{
          %>
               <jsp:include page="/includes/menuStandard.jsp" flush="true" />
          <%    
     }
%>            
<!-- this is the dynamic menu insertion end -->
ASKER CERTIFIED SOLUTION
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros