Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about RequestProcessor

Status
Not open for further replies.

pajarokillo

Programmer
May 3, 2004
30
ES
Hi, i want from my RequestProcessor forward to ActionClass, for example

protected boolean processPreprocess(HttpServletRequest request,HttpServletResponse response){

doForward("/prueba.do",request,response);
return super.processPreprocess(request,response);
}

and in my action class i have the next code in the execute method

public ActionForward execute(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response) throws Exception{

//do something

return (mapping.findForward(IConstants.SESSION_EXPIRADA));
}

but it cause the next error
java.lang.IllegalStateException: Cannot forward after response has been commited

Can i do a forward from my RequestProcessor class to Action class and then forward to JSP page?, and it's possible, how can i do it?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top