Hi martin,

One of the parameters you receive in the execute function, is an
Actionmapping object. �On that object you can call, e.g.
mapping.findForward("SUCCESS"); or better yet,
mapping.findForward(MappingKeys.SUCCESS);

Hope this helped,
--manu.
|+-----------------------------+------------------------------------------|
||   martin j nilsson          |                                          |
||   <[EMAIL PROTECTED]|   � � � � To:                            |
||   >                         |   [EMAIL PROTECTED]         |
||                             |   � � � � cc:                            |
||   14/01/2003 08:28          |   � � � � Subject:                       |
||   Please respond to "Struts |   ActionServlet.findForward replacement? |
||   Users Mailing List"       |                                          |
|+-----------------------------+------------------------------------------|







Hi,

This must be some oversight on my part, tried looking in the list-archive
but had no luck. Seems like a trivial problem, but any help is greatly
appreciated.

I've always used servlet.findForward to return control to the correct
jsp-page (via struts-config.xml) in my Action-classes in the perform
method.
I recently upgraded to Struts 1.1b2 (I know I probably should upgrade to b3
now) and noticed that perform was deprecated and I was refered to use
Action.execute instead, no problem.

What gives me problems is that ActionServlet.findForward is also deprecated
and I'm supposed to use applicationConfig.findForwardConfig (this class has
changed name i b3, right? My problem will still be there though) instead.

Problem:
Action.execute wants an ActionForward in the return statement,
servlet.findForward returned this. ApplicationConfig.findForwardConfig()
returns an ForwardConfig. What am I supposed to do with this object to be
able to return an ActionForward-object?


kind regards,
� � � �martin





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to