This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes syntax and error in ncf log Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "syntax and error in ncf log" Watch "syntax and error in ncf log" New topic
Author

syntax and error in ncf log

mary sarami
Greenhorn

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.
Thanks
<%
String refURL = request.getHeader("referer");
out.println (refURL);
if (refURL !=null)
//if (session !=null)
if (refURL.endsWith("one.jsp") ) {
out.println("one.jsp");
%>
<jsp:forward page="one.jsp"/>

<%
} else {
out.println("seesion is null");
<% } %>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: syntax and error in ncf log
 
Similar Threads
session.invalidate and jsp form
problem using getSession(boolean create)
problem with my page
newbie problem
How can i execute few lines of code in a given jsp page