Re: prevent reset of bean after submit

2004-12-30 Thread Cliff

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 -
> 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]



Re: prevent reset of bean after submit

2004-12-28 Thread Radu Badita
As Hubert pointed out: your form won't hold the state from your
first.jsp unless you store it in session scope, as the request created
on first.jsp submit will cease to exist after second.jsp is run.
But if you really don't wanna keep it in user's session, the only
workaround I see possible it's copying the properties from your
first.jsp in hidden inputs in your second.jsp, this way the values
will be introduced in the second request.


On Tue, 28 Dec 2004 14:12:30 +0530, 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: struts-user@jakarta.apache.org
> Sent: Thu, 23 Dec 2004 02:21:16 -
> 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]



Re: prevent reset of bean after submit

2004-12-28 Thread sachin
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: struts-user@jakarta.apache.org
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]



Re: prevent reset of bean after submit

2004-12-25 Thread struts lover
If you have your reset method empty, I dont think it
will reset your form.

--- 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]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: prevent reset of bean after submit

2004-12-24 Thread Cliff

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]



Re: prevent reset of bean after submit

2004-12-21 Thread Hubert Rabago
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]



prevent reset of bean after submit

2004-12-20 Thread sachin
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]