Title: RE: Pre populating a Form Bean
I am doing this.. in the perform method of myaction class.  but it still doesn't work
 
 
   OneForm theForm = (OneForm) form;
   String value = theForm.getValue();
 
 
   TwoForm twoForm = new TwoForm();
   twoForm.setVal2(value);
   request.setAttribute("twoForm",twoForm);
   return mapping.findForward("Two");
I am still getting the Jsp2 un populated.
 
Jsp1 ---forwards---> Jsp2
.
-----Original Message-----
From: Tharwat Abdul-Malik [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 10:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Pre populating a Form Bean

Does jsp1 forward to jsp2? If so, populate the bean in the perform method, stuff it in the request, the jsp2 can find it there.
----- Original Message -----
Sent: Sunday, April 15, 2001 12:46 AM
Subject: RE: Pre populating a Form Bean

It can't be done in action of jsp1 because there is no reference to the form of jsp2.

-----Original Message-----
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Pre populating a Form Bean


I think u should be able to Populate it in the Action of JSP1.
--- "Tewathia, Atul" <[EMAIL PROTECTED]> wrote:
>
> I want to pre-populate a formBean in this scenario.
>
> Jsp1 --> Jsp2
>
> When I process the data of jsp1 using form1 in the perform method how do
> I
> set the form2 attributes .. so that the jsp2 is displayed with preloaded
> data.
>
> Can any body guide in this ??
>


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

Reply via email to