What is the default scope of an ActionForm.

2003-07-10 Thread Ravi Garg
Hi all,
can any of you tell me if I donnot specify any scope of Form in 
Struts-config.xml then for which scope does the instance of form persists?? 

For example:
action-mappings
action path=/testing
type=test.action.TestingAction
name=TestingForm
input=/jsp/Testing.jsp
forward name=success path=/jsp/Test.jsp/
forward name=invalid path=/jsp/Testing.jsp/
  /action
/action-mappings

What will be the scope of TestingForm?

Regards,
Ravi

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



Re: What is the default scope of an ActionForm.

2003-07-10 Thread Shashank Dixit
The default scope is REQUEST


- Original Message -
From: Ravi Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:19 PM
Subject: What is the default scope of an ActionForm.


 Hi all,
 can any of you tell me if I donnot specify any scope of Form in
Struts-config.xml then for which scope does the instance of form persists??

 For example:
 action-mappings
 action path=/testing
 type=test.action.TestingAction
 name=TestingForm
 input=/jsp/Testing.jsp
 forward name=success path=/jsp/Test.jsp/
 forward name=invalid path=/jsp/Testing.jsp/
   /action
 /action-mappings

 What will be the scope of TestingForm?

 Regards,
 Ravi

 -
 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: What is the default scope of an ActionForm.

2003-07-10 Thread Ravi Garg
I've tried this with my and used the same for at more than 1 screen but what happens 
is that whenever it the property name is same as that already used in previous screen 
it automaticaly populates that portion of the screen

-Original Message-
From: Shashank Dixit [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:28 PM
To: Struts Users Mailing List
Subject: Re: What is the default scope of an ActionForm.


The default scope is REQUEST


- Original Message -
From: Ravi Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:19 PM
Subject: What is the default scope of an ActionForm.


 Hi all,
 can any of you tell me if I donnot specify any scope of Form in
Struts-config.xml then for which scope does the instance of form persists??

 For example:
 action-mappings
 action path=/testing
 type=test.action.TestingAction
 name=TestingForm
 input=/jsp/Testing.jsp
 forward name=success path=/jsp/Test.jsp/
 forward name=invalid path=/jsp/Testing.jsp/
   /action
 /action-mappings

 What will be the scope of TestingForm?

 Regards,
 Ravi

 -
 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[2]: What is the default scope of an ActionForm.

2003-07-10 Thread Dirk Markert
Hello Ravi,

 default is SESSION.

***

RG I've tried this with my and used the same for at more than 1 screen but what 
happens is that whenever it the property name is same as that already used in previous 
screen it automaticaly
RG populates that portion of the screen

RG -Original Message-
RG From: Shashank Dixit [mailto:[EMAIL PROTECTED]
RG Sent: Thursday, July 10, 2003 4:28 PM
RG To: Struts Users Mailing List
RG Subject: Re: What is the default scope of an ActionForm.


RG The default scope is REQUEST


RG - Original Message -
RG From: Ravi Garg [EMAIL PROTECTED]
RG To: [EMAIL PROTECTED]
RG Sent: Thursday, July 10, 2003 4:19 PM
RG Subject: What is the default scope of an ActionForm.


 Hi all,
 can any of you tell me if I donnot specify any scope of Form in
RG Struts-config.xml then for which scope does the instance of form persists??

 For example:
 action-mappings
 action path=/testing
 type=test.action.TestingAction
 name=TestingForm
 input=/jsp/Testing.jsp
 forward name=success path=/jsp/Test.jsp/
 forward name=invalid path=/jsp/Testing.jsp/
   /action
 /action-mappings

 What will be the scope of TestingForm?

 Regards,
 Ravi

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


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


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



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


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



Re: Re[2]: What is the default scope of an ActionForm.

2003-07-10 Thread Mark Lowe
I'm not sure whether it defaults to session, I was under the impression 
it was scoped to the request, but as i pretty much always define the 
scope i wouldn't know.

However when you scope to request the same can happen if redirect is 
set to false, as the action isn't a new request as such.. My guess is 
that if you set redirect to true this will fix your problem..

Cheers mark

On Thursday, July 10, 2003, at 12:15 PM, Dirk Markert wrote:

Hello Ravi,

 default is SESSION.

***

RG I've tried this with my and used the same for at more than 1 
screen but what happens is that whenever it the property name is same 
as that already used in previous screen it automaticaly
RG populates that portion of the screen

RG -Original Message-
RG From: Shashank Dixit [mailto:[EMAIL PROTECTED]
RG Sent: Thursday, July 10, 2003 4:28 PM
RG To: Struts Users Mailing List
RG Subject: Re: What is the default scope of an ActionForm.
RG The default scope is REQUEST

RG - Original Message -
RG From: Ravi Garg [EMAIL PROTECTED]
RG To: [EMAIL PROTECTED]
RG Sent: Thursday, July 10, 2003 4:19 PM
RG Subject: What is the default scope of an ActionForm.

Hi all,
can any of you tell me if I donnot specify any scope of Form in
RG Struts-config.xml then for which scope does the instance of form 
persists??
For example:
action-mappings
action path=/testing
type=test.action.TestingAction
name=TestingForm
input=/jsp/Testing.jsp
forward name=success path=/jsp/Test.jsp/
forward name=invalid path=/jsp/Testing.jsp/
  /action
/action-mappings
What will be the scope of TestingForm?

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


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

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



Regards,
Dirk
+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+
-
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: What is the default scope of an ActionForm.

2003-07-10 Thread John Greenhill
I believe it used to be request, but at least with the final release of
1.1 it's scope. I don't know when it changed.

-Original Message-
From: Ravi Garg [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:05 AM
To: Struts Users Mailing List
Subject: RE: What is the default scope of an ActionForm.


I've tried this with my and used the same for at more than 1 screen but
what happens is that whenever it the property name is same as that
already used in previous screen it automaticaly populates that portion
of the screen

-Original Message-
From: Shashank Dixit [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:28 PM
To: Struts Users Mailing List
Subject: Re: What is the default scope of an ActionForm.


The default scope is REQUEST


- Original Message -
From: Ravi Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:19 PM
Subject: What is the default scope of an ActionForm.


 Hi all,
 can any of you tell me if I donnot specify any scope of Form in
Struts-config.xml then for which scope does the instance of form
persists??

 For example:
 action-mappings
 action path=/testing
 type=test.action.TestingAction
 name=TestingForm
 input=/jsp/Testing.jsp
 forward name=success path=/jsp/Test.jsp/
 forward name=invalid path=/jsp/Testing.jsp/
   /action
 /action-mappings

 What will be the scope of TestingForm?

 Regards,
 Ravi

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


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

RE: What is the default scope of an ActionForm.

2003-07-10 Thread John Greenhill
Oops, I meant to say it's SESSION scope in 1.1.

-Original Message-
From: Ravi Garg [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:05 AM
To: Struts Users Mailing List
Subject: RE: What is the default scope of an ActionForm.


I've tried this with my and used the same for at more than 1 screen but
what happens is that whenever it the property name is same as that
already used in previous screen it automaticaly populates that portion
of the screen

-Original Message-
From: Shashank Dixit [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:28 PM
To: Struts Users Mailing List
Subject: Re: What is the default scope of an ActionForm.


The default scope is REQUEST


- Original Message -
From: Ravi Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:19 PM
Subject: What is the default scope of an ActionForm.


 Hi all,
 can any of you tell me if I donnot specify any scope of Form in
Struts-config.xml then for which scope does the instance of form
persists??

 For example:
 action-mappings
 action path=/testing
 type=test.action.TestingAction
 name=TestingForm
 input=/jsp/Testing.jsp
 forward name=success path=/jsp/Test.jsp/
 forward name=invalid path=/jsp/Testing.jsp/
   /action
 /action-mappings

 What will be the scope of TestingForm?

 Regards,
 Ravi

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


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

Re[2]: What is the default scope of an ActionForm.

2003-07-10 Thread Craig R. McClanahan


On Thu, 10 Jul 2003, Dirk Markert wrote:

 Date: Thu, 10 Jul 2003 13:15:30 +0200
 From: Dirk Markert [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  Dr. Dirk Markert [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re[2]: What is the default scope of an ActionForm.

 Hello Ravi,

  default is SESSION.

It does indeed default to SESSION.  Even though REQUEST would have been
better, the original default (way back in the Struts 0.5 days) was
session, and it would have broken backwards compatibility to change this.

My advice is to always be explicit in your action elements.

Craig

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