Hi,

This is the other problem I have faced before.

I have tried "Combine the form from first.jsp and second.jsp":
I try to save the form in the session beofore the end of the Execute
() at the frist submition. Get it back when submit from second.jsp 
then combine the fields which you want. But you need to really 
consider the Validation and using the Same Form or the two form have 
a Extend Relationship.

Hope that can help you.

Happy New Year!!

Good Luck
Cliff

--- In [EMAIL PROTECTED], "sachin" <[EMAIL PROTECTED]> wrote:
> hi Cliff , 
> 
> > You may consider put all the fields which are populated from 
> > frist.jsp in the second.jsp using hidden field.
> 
> This is one solution and it helps ..
> only problem is that if the first.jsp have a number of fields
> then the second.jsp will be overloaded with that much number of 
hidden fields.
> 
> and making the bean a session bean is also a solution , but it 
brings with 
> some other problems in my project.
> 
> > I think there are so many solutions can solve this problem.
> 
> Please if u know any other solution to this problem , it will help 
me design 
> the project in a better way . .
> 
> Regards,
> Sachin Hegde
> 
> 
> ---------- Original Message -----------
> From: "Cliff" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Sent: Thu, 23 Dec 2004 02:21:16 -0000
> Subject: Re: prevent reset of bean after submit
> 
> > You may consider put all the fields which are populated from 
> > frist.jsp in the second.jsp using hidden field.
> > 
> > I think there are so many solutions can solve this problem.
> > 
> > Good Luck
> > Merry Christmas
> > 
> > Cliff
> > 
> > --- In [EMAIL PROTECTED], Hubert Rabago <[EMAIL PROTECTED]> 
wrote:
> > > It's possible that you have your bean in request scope.  If 
so, a 
> > new
> > > bean is being used for each request.  Try putting your bean in 
> > session
> > > scope.
> > > 
> > > Hubert
> > > 
> > > On Tue, 21 Dec 2004 12:49:55 +0530, sachin <[EMAIL PROTECTED]> 
> > wrote:
> > > > hi all ,
> > > > 
> > > > On submit of a form , struts resets the bean before 
populating 
> > the form .
> > > > For that perticular action can i stop the resetting of bean ?
> > > > 
> > > > in my application i need to pupulate one bean from two 
forms .
> > > > It has following structure :-
> > > > JSP pages - First.jsp , Second.jsp
> > > > Actions   - FirstAction.java , SecondAction.java
> > > > which refer to same CommonBean.
> > > > 
> > > > the commonBean is first populated from First.jsp
> > > > then it is forwarded to Second.jsp to populate the remaining 
> > fields ..
> > > > But here the commonBean gets resetted ...
> > > > I tried to override reset action in CommonBean with a blank 
> > method .. but it
> > > > not doing ..
> > > > 
> > > > any help is appreciated
> > > > Thanks in advance
> > > > 
> > > > Regards,
> > > > Sachin Hegde
> > > > Software Developer
> > > > Paradyne Infotech Limited
> > > > Mumbai
> > > > 022-38546711
> > > > 
> > > > -------------------------------------------------------------
----
> > ----
> > > > 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]
> > 
> > -----------------------------------------------------------------
----
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> ------- End of Original Message -------
> 
> 
> -------------------------------------------------------------------
--
> 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]

Reply via email to