[Opensource] how to redirect to other JSP

Michael Rimov rimovm at centercomp.com
Thu Jul 11 07:39:14 PDT 2002


At 04:45 PM 7/10/2002 -0400, you wrote:
>Hi All,
>
>How to go to a JSP other then the one specified in the configuration XML 
>for a particular state?
>We know how to go to another state but we do not know how the change the 
>jsp that will be returned to the user.
>Can this be done at runtime inside the controller?

There's a couple of things out there:

-Controller.setStyle() will allow you to switch to different styles listed 
in the XML configuration.

-Larry Hamel put in some code to perform redirects into Controller for the 
4.1 code base that's in CVS.

-Cast to ServletControllerRequest, set CustomReponse=true and perform your 
own underlying redirection that way.

HTH!
                                                         -Mike





More information about the Opensource mailing list