Redirect to true???? I never use this option.

One thing that could be important is that in the browser location bar always
appear Action1.do.

Is this an expected behaviour???

Regards, Enrique.
_____________________________
Enrique Rodriguez Lasterra




> Robert Nocera

>
> A JSP is a servlet so the "request" in your JSP is the same as the
> "request" passed to your Action from the ActionServlet.  Maybe your
> forward has redirect set to "true"?  If it does, the browser is making a
> new request and so anything you added with request.setAttribute will be
> lost.
>
> Robert Nocera
> New England Open Solutions
> www.neosllc.com
> "You supply the Vision.  We will do the rest."
>  
>
>
> -----Original Message-----
> From: Enrique Rodriguez [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 24, 2002 10:23 AM
> To: Struts Users Mailing List
> Subject: RE: Pass parameters between Action classes
>
> Hello,
>
> Thanks for your response. I think the problem is with the request
> object.
>
> When can i get the paremeters from it??? Only When I'm in a JSP?
>
> I Attach my example. Please take a look.
>
> Regards, Enrique.
> _____________________________
> Enrique Rodriguez Lasterra
>
>
> > Jim Crossley
> >
> >
> > As long as the first action's forward element in struts-config refers
> > to an Action servlet and not a jsp, your example should work.
> > Something like this maybe:
> >
> >     <action path="/Action1" type="Action1">
> >       <forward name="Action2" path="/Action2.do" />
> >     </action>
> >     <action path="/Action2" type="Action2"/>
> >
> > "Enrique Rodriguez" <[EMAIL PROTECTED]> writes:
> >
> > > I'm very newbie with struts and i have one question:
> > >
> > > Is possible pass paramter throwugh action classes???
> > >
> > > I explain it better??
> > >
> > > Action 1:
> > > String param = "param";
> > > request.setAttribute("param", param);
> > > return (mapping.findForward ("Action2"));
> > >
> > > Action 2:
> > > String param = (String)request.getAttribute("param");
> > >
> > >
> > > I'm trying to do it but its imposible. The only way to pass
> > parameters is
> > > with a Form class.
> > >
> > > What am I doing wrong???
> > >
> > > Thanks in advance and pardon for my english, Enrique.
> > >
> > > _____________________________
> > > Enrique Rodriguez Lasterra
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> Jim Crossley
> http://www.lads.com/~jim
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to