Hi, I forgot to mention a very important point you should write a method in your second form bean like:
Public void setData(HttpSession session){
FormBean1 fb1 = (FormBean1)
session.getAttribute("<nameUnderWhichTheFirstFormBeanIsHeldInSession>");
this.setXXX(fb1.getXXX());
...
...
}
and in your second jsp write something like this just after the <html:form>
tag
<jsp:setProperty
name="<nameUnderWhichTheSecondFormBeanIsHeldInSession>" property="data"
value="<%= session%>"/>
I guess this will solve your problem.
-----Original Message-----
From: Moneesh Walia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 8:26 PM
To: 'Struts Users Mailing List'
Subject: RE: query
Assumptions:
1)Both the jsps have a formbean in session scope.
2)the formbean of the first jsp is not removed from the
session when the second jsp is shown.
Solution:
1)Get a reference to the fist jsps formbean from
session by calling request.getSession().getAttribute()
2)Just call the getter methods of the first formbean
and populate the second one with all the data you need.
-----Original Message-----
From: sai srinivas
[mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 01, 2001 4:43 PM
To: StrutsUser
Subject: query
Hello,
Please help us identify a solution to the
following requirement in STRUTS perspective:
Passing form data from one .jsp to another
without sharing a common bean.
Regards
Sai << File: ATT00058.txt >> << File:
ATT00012.txt >>
winmail.dat
Description: application/ms-tnef
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

