Try building the whole forward from scratch.
ActionForward forward = new ActionForward();
forward.setPath("/newrequest/index.jsp");
forward.setRedirect(true);
forward.setContextRelative(true);
return forward;
Jimmy
-----Original Message-----
From: Zhu He [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: newbiew Q: how to do redirect instead of forward
for forward we usually do
execute() {
...
return mapping.findForward("listing");
}
I tried to use redirect by
execute() {
ActionForward af = mapping.findForward("listing");
af.setRedirect(true);
return af;
}
but get exception
javax.servlet.ServletException: Configuration is frozen
at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.
java:541)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:482)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]