As per your suggestion i have used like this
document.forms[0].action="/<%=strRoot%>/Help.do?method=downloadHelp&hdnPage=
<%=Constants.FIRST_PAGE%>"
.
..
document.forms[0].action="/<%=strRoot%>/Help.do?method=downloadHelp&hdnPage=
<%=Constants.TENTH_PAGE%>"
in Struts-Config.xml
<action path="/Help" type="com.test.actions.DispatchAction"
parameter="method" validate="false"
>
<forward name="first_page" path=".page.first" />
.
.
<forward name="tenth_page" path=".page.tenth" />
</action>
Is this correct ?
-----Original Message-----
From: Monkeyden [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 7:38 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: More then 1 Action Forms in JSP
As in a pop-up? If so, then you create a HelpAction and JSP, which would
be expecting a request parameter specifiying the current screen. Use that
parameter to determine what content to fetch. Basically, it's a new Action.
The only thing your 10 existing screens will be responsible for is passing
that request parameter (likely on the querystring).
On 5/25/06, Raghuveer <[EMAIL PROTECTED]> wrote:
I have 10 JSP's and used 10 Action forms,10 action classes(dispatch
action
and action) with 10 Action Mappings in Struts-config.xml.
I have 1 common functionality where if user clicks HELP button in any
screen
i need to get documennt stored in database and show to user.
Question1)
Is it possiable to user 2 actionforms in 1 JSP ?
Question2)
What is best way to implemt such scenerios in struts.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]