File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes syntax and error in ncf log Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "syntax and error in ncf log" Watch "syntax and error in ncf log" New topic

syntax and error in ncf log

mary sarami

Joined: Feb 11, 2001
Posts: 25
How would I code the below so that if session is null, it produces no errors.
The below doesn't produce an error but in the ncf error log it give a null 500 servlet error. but the page is fine.
String refURL = request.getHeader("referer");
out.println (refURL);
if (refURL !=null)
//if (session !=null)
if (refURL.endsWith("one.jsp") ) {
<jsp:forward page="one.jsp"/>

} else {
out.println("seesion is null");
<% } %>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: syntax and error in ncf log
Similar Threads
problem using getSession(boolean create)
How can i execute few lines of code in a given jsp page
session.invalidate and jsp form
problem with my page
newbie problem