>From what I understand, this is possible in 1.0x as well.

This example if from the Struts1.0 example app where the action mapping path
attribute
simply forwards to the tour.htm page which could just as easily be tour.jsp.

    <action    path="/tour"
            forward="/tour.htm">
    </action>


>From the Struts1.0 and 1.1 DTD section on the 'action' element:

    forward          Application-relative path of the servlet or JSP
resource
                     that will process this request, instead of
instantiating
                     and calling the Action class specified by "type".
                     Exactly one of "forward", "include", or "type" must be
                     specified.


Using the above example, you can prototype all day long and then go back and
add the necessary supporting classes.

HTH,

robert

> -----Original Message-----
> From: Manfred Wolff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 2:19 AM
> To: 'Struts Users Mailing List'
> Subject: AW: Struts without action and form classes
>
>
> Hi owen.
>
> Yes it is possible, but I think you need Struts 1.1b. See below:
>
>   <action path="/logonNative"
>           name="dummyForm"
>           parameter="/Logon/Logon.jsp"
>           scope="request"
>           type="org.apache.struts.actions.ForwardAction"
>           validate="false">
>   </action>
>
> In Struts 1.1b you have sevaral custom Actions like DynamicAction and
> also ForwardAction. In the key "parameter" you specify your JSP, you
> want to forward. The dummyForm is a standard form with no attributes. I
> think it is not possible to specify an action without a form, because
> the <html:form> tag needs a form!
>
> I have made a static prototyp with 60 steps (clickable Prototyp) so that
> the customer may have a impression at the "look and feel" of the
> application.
>
> Nice feature, isn't it?
>
> Manfred
>
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Im Auftrag von Struts Newsgroup
> Gesendet: Mittwoch, 10. Juli 2002 05:25
> An: [EMAIL PROTECTED]
> Betreff: Struts without action and form classes
>
>
> Subject: Struts without action and form classes
> From: Owen <[EMAIL PROTECTED]>
>  ===
> Is it possible for demo purposes to have struts provide the Framework
> for a set of JSP files without the JSP files having associated Action
> and Form classes behind them?
>
> I've just created/designed some new JSP files for a new module in the
> application. Before I go ahead and start adding all the code behind the
> View I want to be able to make sure my application Flow and design are
> OK with the client. So all I want in the struts-config.xml file is a
> link to the jsp page.
>
> All help greatly appreciated.
>
> Owen Thomas
>
>
> --
> 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]>
>


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

Reply via email to