Unless this is a new "feature" of struts, you may create an action
without specifying a form using the following syntax:

    <action path="/myPage"
            type="com.web.myAction">
      <forward name="success"             path="/myPage.jsp"/>
    </action>

We are using Struts: 1.0 beta 3 (release build June 2, 2001)

HTH,
    Pete


> You can specify an action without a form bean with this syntax:
>
> <action    path="/main"
>             forward="/Main.jsp">
> </action>
>
> The limitation here is that there is no corresponding Struts Action
class
> either.  The above syntax is a solution I had to use when the customer

> wanted a button to trigger a URL as opposed to a hyperlink trigger.
>
> As far as I was able to determine, you cannot specify an action in the

> struts configuration that has an action class, but no form-bean.  My
> application has plenty of screens that triggered actions on form
submit,
> but had no entry fields on them.  In these cases I used the normal
action
> syntax in the struts configuration file but pointed to a "dummy form"
- a
> form bean with no properties.
>
> Allowing an action to be specified with an action class but no form
bean
> would be a nice struts enhancement.
>
> Jim Weaver
> Software Developer - ThoughtWorks

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

Reply via email to