Ashish:
When you first construct an object in ActionClass, you are loading the object into
REQUEST scope. This I guess works fine for u. Then, after forwarding it to a JSP, you
are getting the object back from REQUEST and manipulating it. NOW, in the JSP, load
the values in to HIDDEN variable inside a FORM tag.
Like:
<FORM action="xxx.do" ...>
<INPUT TYPE="hidden" NAME="PL1" VALUE=" <%request.getAttribute("PL1")
%> " >
<submit here>
</FORM>
Then, when the submit takes place, the object in the HIDDEN will be loaded back to the
REQUEST scope and it becomes available for the rest of the ACTIONCLASS. I tried this
and it seem to work.
Hope this helps.
~Dhina
>> --- 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]
>
>
_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]