Don't know why.
After max inactive time, the valid_user.jsp can't redirect.
I'm sure that it is cause by response.sendredirect(), what's wrong with that?
============================================================
These are the error
============================================================java.lang.NullPointerException
at org.apache.jsp.rc_insert_jsp._jspService(rc_insert_jsp.java:207)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
============================================================
Here is my source
============================================================
// login_session.jsp
session.setMaxInactiveInterval(900); // = 15 min
// valid_user
<%@ page import="settings.*, bean.*"%>
if(session.getValue("username" == null){
response.sendRedirect("/jsp/index.jsp"
}
After max inactive time, the valid_user.jsp can't redirect.
I'm sure that it is cause by response.sendredirect(), what's wrong with that?
============================================================
These are the error
============================================================java.lang.NullPointerException
at org.apache.jsp.rc_insert_jsp._jspService(rc_insert_jsp.java:207)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
============================================================
Here is my source
============================================================
// login_session.jsp
session.setMaxInactiveInterval(900); // = 15 min
// valid_user
<%@ page import="settings.*, bean.*"%>
if(session.getValue("username" == null){
response.sendRedirect("/jsp/index.jsp"
}