In that case use a <meta> tag which contains the name of the page . Whenever you want the action to forward to the input page, use the mapping.findForward( "jsp page name") . The name of the page will be got from the meta tag. If you search the archives you will find something similar like this posted ( 1-2 days back).
 
For your entire application if you want to use a single action + form this would be a best approach (if you don't want to have more than one <action> element mapping in your struts_config.xml file
-----Original Message-----
From: Marcin Baj [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: forwarding to itself

Yes, but I want to have only one (not about 50) section action in struts.config and single form action bean...
 
 
----- Original Message -----
Sent: Tuesday, April 24, 2001 3:46 PM
Subject: RE: forwarding to itself

mapping.findForward(mapping.getInput() )  where 'input' is specified in the struts_config.xml action mapping
 
cheers,
Amar..
-----Original Message-----
From: Marcin Baj [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:40 AM
To: [EMAIL PROTECTED]
Subject: forwarding to itself

Hello,
 
I want to organize one action bean for changing language (there is very similar form on several pages for such action).
 
How can I forward request to the page which from this request comes?
 
Please help,
Bajo

Reply via email to