Thank you for your answer ...

Yes... In fact the goal is to pass the request from an action to an other. But 
after having reading the struts's documentation I can only use result 
dispatcher type.

In this part :
http://cwiki.apache.org/WW/redirect-result.html 

they say that, with a redirect result, the last action is lost and the only way 
to pass attributes (or parameters) is to use session or web parameters.


Finally the question may be how to configure the dispatch result?

Regards...

Fred

--- En date de : Lun 1.3.10, Burton Rhodes <burtonrho...@gmail.com> a écrit :

> De: Burton Rhodes <burtonrho...@gmail.com>
> Objet: Re: How to pass HTTPRequest between two JSP ?
> À: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Lundi 1 mars 2010, 1h24
> I think you may want to do a
> 'redirect' to the next action in your xml
> file.  You pass the request from one action to the
> other. Not from jsp
> to jsp.
> 
> On 2/28/10, Frederik Minatchy <frederi...@yahoo.fr>
> wrote:
> > Hello...
> >
> > Since a few days I am working with Struts 2. (2.1.6)
> > I am facing a big problem with HttpRequest and JSPs.
> >
> > Well... I have to forward a HTTPRequest from page1.jsp
> to page2.jsp
> >
> > So... How can I pass HTTPRequest attribute betwen 2
> pages?
> >
> > Here is a part my web.xml file :
> >
> > ...
> > <filter>
> >     
>    <filter-name>struts2</filter-name>
> >
> >
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
> >     </filter>
> >     <filter-mapping>
> >    
> <filter-name>struts2</filter-name>
> >        
> <url-pattern>/*</url-pattern>
> >     </filter-mapping>
> > ...
> >
> >
> > the struts.xml file :
> >
> > ...
> >
> > <action name="bnf-detail"
> >
> class="fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction">
> >     
>        <result
> >
> name="success">/pages/bnf/administration/detailBnf.jsp</result>
> >         </action>
> >
> >
> >
> >         <action
> name="bnf-detail_modification"
> >
> class="fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction"
> > method="modificationSubmit">
> >     
>        <result
> >
> name="success">/pages/bnf/administration/detailBnf.jsp</result>
> >         </action>
> > ...
> >
> > and a part of the action java file (which
> implementents RequestAware):
> >
> >   public String execute() throws
> Exception
> >    {
> >       request.put("test",
> 58);
> >       return SUCCESS;
> >     }
> >
> >    public String modificationSubmit() throws
> TechniqueException,
> > FonctionnelleException
> >    {
> >       request.get("test"); //
> is null
> >       editMode = true;
> >       return SUCCESS;
> >    }
> >
> >
> >
> > So... How can I pass the request attribute from on
> page to an other?
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -- 
> Sent from my mobile device
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to