--- On Fri, 6/27/08, Marc Ende <[EMAIL PROTECTED]> wrote:
> Chandramouli P schrieb:
> > Hi,This is my first post to the user list.We have
> started working in struts recently.Is it possible to use
> one Action class for multiple action declarations in the
> struts-config.xml?Consider the code below: path="/action1"
> type="com.sample.app.TestAction"
> name="formBean1" scope="request">
> path="/test/pages/page1.jsp"/> path="/action2"
> type="com.sample.app.TestAction"
> name="formBean2" scope="request">
> path="/test/pages/page2.jsp"/> path="/action3"
> type="com.sample.app.TestAction"
> name="formBean3" scope="request">
> path="/test/pages/page3.jsp"/> path="/action4"
> type="com.sample.app.TestAction"
> name="formBean4" scope="request">
> path="/test/pages/page4.jsp"/>Thanks
> & Regards,Chandramouli P
>
> Of course you can have multiple action declarations for a
> single Action-Class. You can also specify a seperate method within
> the action for every declared action.
In S1, which appears to be what's being used (for a new project?!) using
multiple methods would indicate they'd want to use one of the
DispatchAction-like mechanisms.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]