5 Replies Latest reply on Aug 3, 2002 11:03 PM by Andres Gonzalez

    <jsp:forward>, why do you hate me???

    Andres Gonzalez Newbie

      hi all...

      I have a very simple jsp page that checks if a session exists. if it doesn't, it prompts a message to login, and if it does, it forwards the request to a servlet. The problem is that the servlet is never called!!!. i have even put a wrong servlet name to see if jetty complains but the only result I get is a blank page. here's my code.

      <%@page contentType="text/html"%>

      topics

      <jsp:include page="navigation.jsp" flush="true"/>


      <%
      String uname = null;
      uname = (String)session.getAttribute("userName");
      if (uname == null)
      {
      log("no session!");
      %>
      Please login first
      <%
      }
      else
      {
      log("performs forward");
      %>
      <jsp:forward page="/testapp/servlet/mobile.servlet.xxx"/>
      <%
      }
      %>





      I'm able to see my log message : "performs forward", but the forward is never accomplished... any ideas...???

      P.S: the blank page I get is:



      topics



      that's it... :-(