If you want to use mapping.findForwrad("actionName"),

you have to put the following entry in your struts-config.xml file:

<action-mappings>
    <action                    path="/actionName"
                                    type="packgename.actionNameAction"
                                    scope="request">
      <forward                name="actionName"
path="/etc/actionName.jsp" />
   </action>
</action-mappings>

Good Luck

Khalid


----- Original Message -----
From: "Markus Pedratscher (WebBS)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 11:15 PM
Subject: Forwarding to dynamic action


> Hi,
> I am struggling with an action forward problem.
>
> My application has a baseAction which is the parent of some of my actions.
> It checks if a user is logged in. If the user is logged it the child
action
> is executed.
>
> If the user is not logged in it takes the user to the login form. For now
I
> store the originally requested action, i.e. I store
request.getServletPath()
> + "?" + request.getQueryString() in a session variable (not good I know)
and
> if the login is successfull I want to take the user back to the originally
> requestd action. I don't want to use forwards to do this as I would have
to
> list all my secure pages in struts-config (global or action forwards).
>
> What I want to do it to 'redirect' the user from one Action to another
> Action by using something like
'mapping.findForward("/myAction.do?x=y&u-r")
> from within my loginAction.
>
> Any ideas on how to do that with struts or a workaround?
>
> Thanks for your help.
> Markus
>
>
> --
> 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