I know that you don't want to use a session(performance problems? Design
issue? OK), but why don't you store the object in the session and once used
it remove the object from the session? It could by a tricky around your Xxx
issues.
Marco
> -----Original Message-----
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 9:39 PM
> To: Struts Users Mailing List
> Subject: Re: passing object from request?? how does it work
>
>
> Hi Jason,
> It does make sense, can u explain a bit more
> how do i set the request in my jsp, like
> how do i define my form, and populate it in jsp and
> then forward it in request to other Action form
>
> ashish
> --- Jason Kilgrow <[EMAIL PROTECTED]> wrote:
> > In the past when I have passed information using the
> > request object, I
> > have to populate a form with the incoming
> > information. Then, on the next
> > submit, that information is repassed via the request
> > object. Does that
> > make sense?
> >
> > >>> [EMAIL PROTECTED] 02/20/2003 1:22:28 PM
> > >>>
> > Hi Geeta,
> > I have already tried this but some how it is not
> > working for me,
> > so when should i do it,
> > while loading my jsp page, or while submiting my jsp
> > page,
> > If i do it while loading my jsp page, it will be
> > lost
> > while submiting, that is what i think,
> > here is my code ,
> > in jsp i have
> > request.setAttribute("PL1079",
> > request.getAttribute("PL1079"));
> > ( PL1079 comes from the previous Action class which
> > loads this jsp")
> >
> > and in my Action class i do
> > PL1079 pl1079 =
> > (PL1079)request.getAttribute("PL1079");
> > i get null in Action class
> >
> > So how do i do it
> > Ashish
> >
> >
> >
> >
> > --- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> > > Ashish:
> > >
> > > Why won't "ordinary" Java work within your jsp? As
> > > in:
> > >
> > > <%
> > > request.setAttribute("thisObject", myObject);
> > > %>
> > >
> > > Then in your Action class retrieve it as usual
> > with
> > > the
> > > request.getAttribute("thisObject");
> > >
> > > Seems to me this should work...?
> > >
> > > Regards,
> > > Geeta
> > >
> > > Ashish Kulkarni wrote:
> > >
> > > > Hi,
> > > >
> > > > I have to pass a object from one action class to
> > > other
> > > > Action class via JSP, and not use session for
> > it,
> > > > I have a Action class, which builds an Object
> > and
> > > then
> > > > puts it in request and calls a jsp,
> > > > This jsp will get the object from request and
> > > display
> > > > the contents,
> > > > I want to pass this object to other Action
> > class,
> > > > after i submit the request in jsp.
> > > > As in this jsp, I submit to another Action
> > class,
> > > so
> > > > this is a new request so loose every thing from
> > > the
> > > > request ,
> > > > Now the problem is I want to pass this object to
> > > my
> > > > other Action class, how do i do it??
> > > >
> > > > One way is to put it in session, in my first
> > > Action
> > > > class, and retreive it in other action class,
> > > >
> > > > But I want to avoid it,
> > > > Need suggestions
> > > >
> > > > =====
> > > > A$HI$H
> > > >
> > > >
> > __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - forms, calculators, tips,
> > more
> > > > http://taxes.yahoo.com/
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > =====
> > A$HI$H
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> =====
> A$HI$H
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]