You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emmanuel Potvin <ma...@machine.dnsalias.org> on 2003/05/14 20:43:25 UTC

Forms

Hi,
 
when I use my form in a session scope, can I tell the server to not
reset it after every request who don't use it and leave it the same
since I replace it by another form?
 
Manu

RE: [BEER] RE: Forms

Posted by Mark Galbreath <ma...@qat.com>.
Never had it, but friends Down Under tell me it's great stuff.  The best
I've had on this side o' the Pond I make meself, mate.  I do a great IPA.

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Sent: Wednesday, May 14, 2003 3:20 PM
To: Struts
Subject: [BEER] RE: Forms


Mate, I wouldnt touch that stuff with a forty foot pole. They say we
'export' it, but 'evict' would probably be a better term ;->

(Well I suppose its better than American beer, but thats not really saying
much.)

If youve got some Cascade, or Emu Bitter , or perhaps a VB , now thats
another matter. mmmm beeeeeer

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, 15 May 2003 03:11
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE: Forms


Well, while you're at it, collect some of this crap called "Fosters" you
sent up here.

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Wednesday, May 14, 2003 3:02 PM
To: Struts Users Mailing List
Subject: RE: Forms


Yeh but, why are, umm . huh?
nevermind.
I think Ive used up my brain quota for the day.
Off to bed. Let my neural system catch up on some garbage collection...

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, 15 May 2003 02:54
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE: Forms


Because it saves resources.  Why reset register values when it's unnecessary
(in session or context scope)?  Did you just fall out of yo mama's pouch?

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Wednesday, May 14, 2003 2:50 PM
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


[BEER] RE: Forms

Posted by Andrew Hill <an...@gridnode.com>.
Mate, I wouldnt touch that stuff with a forty foot pole. They say we
'export' it, but 'evict' would probably be a better term ;->

(Well I suppose its better than American beer, but thats not really saying
much.)

If youve got some Cascade, or Emu Bitter , or perhaps a VB , now thats
another matter.
mmmm beeeeeer

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, 15 May 2003 03:11
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE: Forms


Well, while you're at it, collect some of this crap called "Fosters" you
sent up here.

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Wednesday, May 14, 2003 3:02 PM
To: Struts Users Mailing List
Subject: RE: Forms


Yeh but, why are, umm . huh?
nevermind.
I think Ive used up my brain quota for the day.
Off to bed. Let my neural system catch up on some garbage collection...

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, 15 May 2003 02:54
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE: Forms


Because it saves resources.  Why reset register values when it's unnecessary
(in session or context scope)?  Did you just fall out of yo mama's pouch?

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Wednesday, May 14, 2003 2:50 PM
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Mark Galbreath <ma...@qat.com>.
Well, while you're at it, collect some of this crap called "Fosters" you
sent up here.

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Sent: Wednesday, May 14, 2003 3:02 PM
To: Struts Users Mailing List
Subject: RE: Forms


Yeh but, why are, umm . huh?
nevermind.
I think Ive used up my brain quota for the day.
Off to bed. Let my neural system catch up on some garbage collection...

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, 15 May 2003 02:54
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE: Forms


Because it saves resources.  Why reset register values when it's unnecessary
(in session or context scope)?  Did you just fall out of yo mama's pouch?

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Wednesday, May 14, 2003 2:50 PM
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Andrew Hill <an...@gridnode.com>.
Yeh but, why are, umm . huh?
nevermind.
I think Ive used up my brain quota for the day.
Off to bed. Let my neural system catch up on some garbage collection...

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, 15 May 2003 02:54
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE: Forms


Because it saves resources.  Why reset register values when it's unnecessary
(in session or context scope)?  Did you just fall out of yo mama's pouch?

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Wednesday, May 14, 2003 2:50 PM
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Mark Galbreath <ma...@qat.com>.
Because it saves resources.  Why reset register values when it's unnecessary
(in session or context scope)?  Did you just fall out of yo mama's pouch?

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Sent: Wednesday, May 14, 2003 2:50 PM
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Mark Galbreath <ma...@qat.com>.
'cause you are daydreaming about intimacy with wallabies?

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Sent: Wednesday, May 14, 2003 2:52 PM
To: Struts Users Mailing List
Subject: RE: Forms


arrrgh! why do I always keep spelling "reset" as "rest".
hmmm. could use some rest come to think of it... maybe its my subconsious
giving me a hint...

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Thursday, 15 May 2003 02:50
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Andrew Hill <an...@gridnode.com>.
arrrgh! why do I always keep spelling "reset" as "rest".
hmmm. could use some rest come to think of it... maybe its my subconsious
giving me a hint...

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Thursday, 15 May 2003 02:50
To: Struts Users Mailing List
Subject: RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method,
but one way to implement what your asking is to create your own
ActionMapping class with a property for switching on and off resseting, and
override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not
reset it after every request who don't use it and leave it the same
since I replace it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: RE : RE : Forms

Posted by Mark Galbreath <ma...@qat.com>.
That's okay; Andrew is a bad Aussie.

-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org] 
Sent: Wednesday, May 14, 2003 3:19 PM
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE : RE : Forms


Hey! Thanks! This trick is so easy that I feel ashamed to not thought it...
And sorry for my bad english...

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Envoyé : 14 mai, 2003 15:07
À : Struts
Objet : RE: RE : Forms


Ahhh! (understanding finally dawns)
Yeh. Sorry mate.
My brain seems to be on the fritz (its 3am over here) after another long day
in front of the computer.

My earlier suggestion is one way to do it, a better , which now I come to
think of it is what I am actually doing in my own app, is to pass a
parameter in the url specifying whether you want fields reset or not, and
then check for this parameter in your reset() (haha! spelt it right that
time!) method and act accordingly.

-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 03:01
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE : Forms


I maybe don't understand because I can't imagine my site without this
modification.

Here is an example of why I want this:

I have a web application who administer suppliers with many properties like
name, location, etc... When I'm in my detail page where I modify their
properties, everything is ok, but if I change my current page to modify
something else and I recome back to my detail page, I only want to recall my
action openSupplier.do without parameter and let him reopen the supplier
form stored in my session.

Maybe I'm not clear, or maybe I use a bad method on my entire site...

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Envoyé : 14 mai, 2003 14:50
À : Struts Users Mailing List
Objet : RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE : RE : Forms

Posted by Emmanuel Potvin <ma...@machine.dnsalias.org>.
Hey! Thanks! This trick is so easy that I feel ashamed to not thought
it... And sorry for my bad english...

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Envoyé : 14 mai, 2003 15:07
À : Struts
Objet : RE: RE : Forms


Ahhh! (understanding finally dawns)
Yeh. Sorry mate.
My brain seems to be on the fritz (its 3am over here) after another long
day in front of the computer.

My earlier suggestion is one way to do it, a better , which now I come
to think of it is what I am actually doing in my own app, is to pass a
parameter in the url specifying whether you want fields reset or not,
and then check for this parameter in your reset() (haha! spelt it right
that
time!) method and act accordingly.

-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 03:01
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE : Forms


I maybe don't understand because I can't imagine my site without this
modification.

Here is an example of why I want this:

I have a web application who administer suppliers with many properties
like name, location, etc... When I'm in my detail page where I modify
their properties, everything is ok, but if I change my current page to
modify something else and I recome back to my detail page, I only want
to recall my action openSupplier.do without parameter and let him reopen
the supplier form stored in my session.

Maybe I'm not clear, or maybe I use a bad method on my entire site...

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Envoyé : 14 mai, 2003 14:50
À : Struts Users Mailing List
Objet : RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood
the purpose of the rest method, but one way to implement what your
asking is to create your own ActionMapping class with a property for
switching on and off resseting, and override the request processor to
check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not
reset it after every request who don't use it and leave it the same
since I replace it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: RE : Forms

Posted by Andrew Hill <an...@gridnode.com>.
Ahhh! (understanding finally dawns)
Yeh. Sorry mate.
My brain seems to be on the fritz (its 3am over here) after another long day
in front of the computer.

My earlier suggestion is one way to do it, a better , which now I come to
think of it is what I am actually doing in my own app, is to pass a
parameter in the url specifying whether you want fields reset or not, and
then check for this parameter in your reset() (haha! spelt it right that
time!) method and act accordingly.

-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 03:01
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE : Forms


I maybe don't understand because I can't imagine my site without this
modification.

Here is an example of why I want this:

I have a web application who administer suppliers with many properties
like name, location, etc... When I'm in my detail page where I modify
their properties, everything is ok, but if I change my current page to
modify something else and I recome back to my detail page, I only want
to recall my action openSupplier.do without parameter and let him reopen
the supplier form stored in my session.

Maybe I'm not clear, or maybe I use a bad method on my entire site...

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Envoyé : 14 mai, 2003 14:50
À : Struts Users Mailing List
Objet : RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood
the purpose of the rest method, but one way to implement what your
asking is to create your own ActionMapping class with a property for
switching on and off resseting, and override the request processor to
check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not
reset it after every request who don't use it and leave it the same
since I replace it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: RE : Forms

Posted by Mark Galbreath <ma...@qat.com>.
create another <action mappings> in struts-config that does not include the
"parameter" attribute and map to that action in the appropriate condition.

-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org] 
Sent: Wednesday, May 14, 2003 3:01 PM
To: 'Struts Users Mailing List'; andrew.david.hill@gridnode.com
Subject: RE : Forms


I maybe don't understand because I can't imagine my site without this
modification.

Here is an example of why I want this:

I have a web application who administer suppliers with many properties like
name, location, etc... When I'm in my detail page where I modify their
properties, everything is ok, but if I change my current page to modify
something else and I recome back to my detail page, I only want to recall my
action openSupplier.do without parameter and let him reopen the supplier
form stored in my session.

Maybe I'm not clear, or maybe I use a bad method on my entire site... 

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Envoyé : 14 mai, 2003 14:50
À : Struts Users Mailing List
Objet : RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method, but one way to implement what your asking is to
create your own ActionMapping class with a property for switching on and off
resseting, and override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE : Forms

Posted by Emmanuel Potvin <ma...@machine.dnsalias.org>.
I maybe don't understand because I can't imagine my site without this
modification.

Here is an example of why I want this:

I have a web application who administer suppliers with many properties
like name, location, etc... When I'm in my detail page where I modify
their properties, everything is ok, but if I change my current page to
modify something else and I recome back to my detail page, I only want
to recall my action openSupplier.do without parameter and let him reopen
the supplier form stored in my session.

Maybe I'm not clear, or maybe I use a bad method on my entire site... 

-----Message d'origine-----
De : Andrew Hill [mailto:andrew.david.hill@gridnode.com] 
Envoyé : 14 mai, 2003 14:50
À : Struts Users Mailing List
Objet : RE: Forms


Not sure why you would want to do this, I suspect you have misunderstood
the purpose of the rest method, but one way to implement what your
asking is to create your own ActionMapping class with a property for
switching on and off resseting, and override the request processor to
check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not
reset it after every request who don't use it and leave it the same
since I replace it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Andrew Hill <an...@gridnode.com>.
Not sure why you would want to do this, I suspect you have misunderstood the
purpose of the rest method,
but one way to implement what your asking is to create your own
ActionMapping class with a property for switching on and off resseting, and
override the request processor to check for this.


-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org]
Sent: Thursday, 15 May 2003 02:43
To: Struts list
Subject: Forms


Hi,

when I use my form in a session scope, can I tell the server to not
reset it after every request who don't use it and leave it the same
since I replace it by another form?

Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Forms

Posted by Mark Galbreath <ma...@qat.com>.
I do the same thing for session-scoped beans.

Mark

-----Original Message-----
From: Emmanuel Potvin [mailto:mailing-list@machine.dnsalias.org] 
Sent: Wednesday, May 14, 2003 2:43 PM
To: Struts list
Subject: Forms


Hi,
 
when I use my form in a session scope, can I tell the server to not reset it
after every request who don't use it and leave it the same since I replace
it by another form?
 
Manu



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org