[Opensource] Forward to jsp from newstate, pls help!

Michael Rimov rimovm at centercomp.com
Wed Sep 25 02:42:12 PDT 2002


At 01:07 AM 9/24/2002 -0700, you wrote:
>hi all,
>I would like to redirect or forward to a jsp. But how
>do I get the ControllerRespone?
>
>I need ControllerRespone to transition to another
>controller which will forward to a jsp.

Well, you could not use the standard 'state' naming convention, and in your 
newState have:

ControllerResponse response = super.newState(ControllerRequest,StateName);

and then do the response stuff before you hand things off to the state 
handlers in a giant switch statement.  That's how we used to do it, but it 
sure was messy. (Thus the newer 'reflection' method of doing things)  Do a 
search for newState() in the Expresso source and you'll find a couple of 
controllers that do something similar.

HTH!
                                         -Mike




>Or is there any other method that allows me to direct
>to my jsp? Thanks.
>
>Innovest
>
>__________________________________________________
>Do you Yahoo!?
>New DSL Internet Access from SBC & Yahoo!
>http://sbc.yahoo.com
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/





More information about the Opensource mailing list