----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Apache Jserv 1.1.2
Apache 1.3.12
JSDK 2.0

I'm trying to redirect the user to the login screen if he is not
already logged in.  I'm trying to do this in the following way:

String cn = (String)session.getValue("cn");
 
if( cn == null)
{
    try
    {
        response.sendRedirect("/servlet/UserLogin");
    }
    catch(IOException e)
    {
        e.printStackTrace();
    }
}                                      

This works fine and I am redirected to the UserLogin servlet.
However in the jserv log I get the following:


==> jserv.log <==
[07/09/2000 15:37:02:469 EDT] UserPersonal/com.wst.web.old.UserPersonal:
init
[07/09/2000 15:37:02:591 EDT] java.lang.NullPointerException
        at com.wst.web.old.UserPersonal.doPost(UserPersonal.java, 
Compiled Code)
        at com.wst.web.old.UserPersonal.doGet(UserPersonal.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java,
Compiled Code)
        at org.apache.jserv.JServConnection.run(JServConnection.java,
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)        


Since everything works fine I never noticed this in the jserv log, 
but I would like to know what's going on and how I can get
rid of it.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to