I have done what you want. Here is a piece of my struts-config.xml:

        <!-- Finish Reason Insert action -->
        <action         path="/finishReasonInsert"
                                type="vcm.vis.action.FinishReasonInsertAction"
                                name="finishReasonForm"
                           scope="session"
                           input="finishReasonInsert.jsp"
                   parameter="method">
                        <forward        name="success"  path="/loadFinishReason.do"/>
                        <forward        name="failure"  
path="/finishReasonInsert.jsp"/>
        </action>

The "success" path from finishReasonInsert (action) is the loadFinishReason (action). 

HTH,

/\/\ark


___________________________________
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

The best laid plans o'mice and men gang aft aglay...
-Robert Burns

>>> [EMAIL PROTECTED] 03/13/02 11:37AM >>>
Hi

In the examples I've seen - any forwards that are defined (whether
global-forwards or action-specific) seem to point to JSP pages, i.e.

<global-forwards>
      <forward name="login" path="/login.jsp"/>
      <forward name="success" path="/home.jsp"/>
</global-forwards>

However I'd like for my user to login (handled by LoginAction) and then not
just be sent straight to home.jsp.  Instead, I'd like to forward to
HomeAction which will prepare the necessary beans for use by home.jsp.

How do I go about defining this in structs-config.xml?  I'm a bit lost
because I keep seeing elements called "path" but some look like "/login.jsp"
and some look like "/login".  Why is this?  Can you put "/home.do" as a
forward path and it will forward to HomeAction?  Or is this done simply by
putting "/home" as the forward path.

I'm sure this is very simple, but I really need to figure it out before my
boss realises how little progress I've made this week!  =o(

Thanks.

Lindsay

--
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