Is it possible to use an Action without a FormBean (Struts 1)?

902 views Asked by At

I'm learning struts 1, yes, the old one.

Is it possible to use an Action (Dispatch Action for example) without a FormBean?

I know that is possible to use a FowardAction, but I want to use a DispatchAction because I need to use a Controller, but I don't need a FormBean, I'll get information from the query string.

1

There are 1 answers

0
Akila On

Yes, you can do it like this

<action-mappings>

    <action path="/myAction" name="myAction" scope="request" type="com.example.app.action.MyAction">
    </action>

</action-mappings>