Hi Marco, the bean is not null in jsp, becuase i use it to populate some fields on jsp Ashish --- Marco Tedone <[EMAIL PROTECTED]> wrote: > I think that works for parameters. > > > -----Original Message----- > > From: Jason Kilgrow > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 8:40 PM > > To: [EMAIL PROTECTED] > > Subject: Re: passing object from request?? how > does it work > > > > > > 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]