pajarokillo
Programmer
Hi, here is my problem, i am doing a session control in the method processPreprocess of the class MyRequestProccesor, and my code for this control is the below:
public class MerlinRequestProcessor extends RequestProcessor{
super.processPreprocess(request,response);
session = request.getSession(false);
log.info("OBJ SESSION: " + session);
if (session == null)
try{
doForward((moduleConfig.findForwardConfig (IConstants.SESSION_EXPIRED)).getPath(),request,response);
}
catch(IOException ex){
log.error("ERRORRRRRRRRRRRRRRRRRRRRRRRRRRRRRR: " + ex.getMessage());
}
catch(ServletException ex){
log.error("ERRORRRRRRRRRRRRRRRRRRRRRRRRRRRRRR: " + ex.getMessage());
}
else
log.info("SESSION OK: " + session.getId());
}
what i can to do when a IOException or ServletException a ocurred?,
how i can to do a foward a Action class when ocurr those errors?
Thanks
public class MerlinRequestProcessor extends RequestProcessor{
super.processPreprocess(request,response);
session = request.getSession(false);
log.info("OBJ SESSION: " + session);
if (session == null)
try{
doForward((moduleConfig.findForwardConfig (IConstants.SESSION_EXPIRED)).getPath(),request,response);
}
catch(IOException ex){
log.error("ERRORRRRRRRRRRRRRRRRRRRRRRRRRRRRRR: " + ex.getMessage());
}
catch(ServletException ex){
log.error("ERRORRRRRRRRRRRRRRRRRRRRRRRRRRRRRR: " + ex.getMessage());
}
else
log.info("SESSION OK: " + session.getId());
}
what i can to do when a IOException or ServletException a ocurred?,
how i can to do a foward a Action class when ocurr those errors?
Thanks