• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

syntax and error in ncf log

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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");
<% } %>
reply
    Bookmark Topic Watch Topic
  • New Topic