You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Owen <jo...@hotmail.com> on 2002/09/17 17:29:28 UTC

Need assistance with application flow (struts-config.xml question)

I have a jsp that uses <html:link> to call an action that needs no input
(and hence no form) from a user, e.g. : <html:link page="/tacaReport.do">. I
then populate a resultant form within the action class and forward (on
success) to this form.

Should I set up my struts-config.xml like this :

    <!-- Produce the TACA report -->
    <action    path="/tacaReport"
               type="src.struts.reporting.TACAReportAction">
       <forward name="success"             path="/tacaReport.jsp"/>
       <forward name="failure"             path="/tacaReport.jsp"/>
    </action>

OR

like this :

    <!-- Produce the TACA report -->
    <action    path="/tacaReport"
               type="src.struts.reporting.TACAReportAction">
       <forward name="success"             path="/tacaReport.jsp"/>
       <forward name="failure"             path="/tacaReport.jsp"/>
    </action>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Need assistance with application flow (struts-config.xml question)

Posted by John Owen <jo...@hotmail.com>.
Please ignore this, I didn't mean for this to be sent just yet. ;)
----- Original Message -----
From: "John Owen" <jo...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, September 17, 2002 10:29 AM
Subject: Need assistance with application flow (struts-config.xml question)


> I have a jsp that uses <html:link> to call an action that needs no input
> (and hence no form) from a user, e.g. : <html:link page="/tacaReport.do">.
I
> then populate a resultant form within the action class and forward (on
> success) to this form.
>
> Should I set up my struts-config.xml like this :
>
>     <!-- Produce the TACA report -->
>     <action    path="/tacaReport"
>                type="src.struts.reporting.TACAReportAction">
>        <forward name="success"             path="/tacaReport.jsp"/>
>        <forward name="failure"             path="/tacaReport.jsp"/>
>     </action>
>
> OR
>
> like this :
>
>     <!-- Produce the TACA report -->
>     <action    path="/tacaReport"
>                type="src.struts.reporting.TACAReportAction">
>        <forward name="success"             path="/tacaReport.jsp"/>
>        <forward name="failure"             path="/tacaReport.jsp"/>
>     </action>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>