RE: [Q] BEAN SCOPE

2003-02-26 Thread David Bolsover
Are you explicitly putting wigadminwizardform into session scope in 
OMInterfaceInfoAction?

db

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February 2003 07:51
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE
 
 
 man i have attached my struts-config.xml in my privious mails
 check the attachment
 
 Chetan
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:13 PM
 Subject: RE: [Q] BEAN SCOPE
 
 
  What does you struts-config look like? The form bean and action mapping
  entries.
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 09:34
  To: Struts Users Mailing List
  Subject: Re: [Q] BEAN SCOPE
 
 
  OH yeh ... they r all in same webapps folder and are having refferences in
  same WEB-INF web.xml and struts-config.xml files.
 
  Any changes required in my struts-config ?
 
 
  btw, how is world cup going at ur end :)  r u planning to watch
  India-England match :)
 
  - Original Message -
  From: du Plessis, Corneil C [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 12:50 PM
  Subject: RE: [Q] BEAN SCOPE
 
 
   It may be a silly question but are these actions in the same web
   application?
  
   -Original Message-
   From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
   Sent: 26 February, 2003 08:47
   To: Struts Users Mailing List
   Subject: Re: [Q] BEAN SCOPE
  
  
   Yep, I have session scope in both action mappings
   I have attached my struts-config along with this mail.
  
   btw in my jsp i have form bean saying
  
   JSP 1
   html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
   validateWIGAdminWizardForm(this);
  
   JSP 2
   html:form action=/translator.do onsubmit=return
   validateWIGAdminWizardForm(this);
  
  
   now, when I call jsp1 the bean is getting created
   but when I move to jsp 2 , again new bean is created.
  
   And thatz the problem area.
  
   Thanks
   Chetan
   - Original Message -
   From: du Plessis, Corneil C [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Wednesday, February 26, 2003 12:05 PM
   Subject: RE: [Q] BEAN SCOPE
  
  
Did you put scope=session on both action mappings?
   
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:31
To: Struts Users Mailing List
Subject: [Q] BEAN SCOPE
   
   
Hi,
I am trying to figure out what can be the problem in my
  struts-config
from yday,
will anyone tell me what can be the problem if, I am putting
   scope=session
in my action-mapping
and trying to access same formbean from two different actions.
   
Once the bean is created, it should be there for the session, and when
 I
move to next jsp and call another action it should use same bean
 rather
   than
creating a new one.
   
I know itz creating new bean, coz I have put default constructor in my
formbean and am printing System.out.printing() through constructor.
   
   
Regards
Chetan
___
|
| The trouble with being punctual
|  is that nobody's there to appreciate it.
|
|
|___
   
   
   
   
   
__
   
Disclaimer and confidentiality note
   
   
Everything in this e-mail and any attachments relating to the official
   business of
Standard Bank Group Limited is proprietary to the company. It is
   confidential, legally
privileged and protected by law. Standard Bank does not own and
 endorse
   any other content.
Views and opinions are those of the sender unless clearly stated as
  being
   that of Standard Bank.
   
The person addressed in the e-mail is the sole authorised recipient.
   Please notify the sender
immediately if it has unintentionally reached you and do not read,
   disclose or use the content
in any way.
   
Standard Bank can not assure that the integrity of this communication
  has
   been maintained nor
that it is free of errors, virus, interception or interference.
   
__
   
  
   __
  
   Disclaimer and confidentiality note
  
  
   Everything in this e-mail and any attachments relating to the official
  business of
   Standard Bank Group Limited is proprietary to the company. It is
  confidential, legally
   privileged and protected by law. Standard Bank does not own and endorse
  any other content.
   Views and opinions are those of the sender unless clearly stated as
 being
  that of Standard Bank.
  
   The person addressed in the e-mail is the sole authorised recipient.
  Please notify the sender

Re: [Q] BEAN SCOPE

2003-02-26 Thread Chetan Sahasrabudhe
Yep my struts-config action look like this

   actionpath=/ominterfaceinfo
   type=wigadmin.struts.action.OMInterfaceInfoAction
   name=wigadminwizardform
   input=ominterfaceinfo
   scope=session
   validate=true

/action
- Original Message -
From: David Bolsover [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:03 PM
Subject: RE: [Q] BEAN SCOPE


 Are you explicitly putting wigadminwizardform into session scope in
OMInterfaceInfoAction?

 db

  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February 2003 07:51
  To: Struts Users Mailing List
  Subject: Re: [Q] BEAN SCOPE
 
 
  man i have attached my struts-config.xml in my privious mails
  check the attachment
 
  Chetan
  - Original Message -
  From: du Plessis, Corneil C [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 1:13 PM
  Subject: RE: [Q] BEAN SCOPE
 
 
   What does you struts-config look like? The form bean and action
mapping
   entries.
  
   -Original Message-
   From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
   Sent: 26 February, 2003 09:34
   To: Struts Users Mailing List
   Subject: Re: [Q] BEAN SCOPE
  
  
   OH yeh ... they r all in same webapps folder and are having
refferences in
   same WEB-INF web.xml and struts-config.xml files.
  
   Any changes required in my struts-config ?
  
  
   btw, how is world cup going at ur end :)  r u planning to watch
   India-England match :)
  
   - Original Message -
   From: du Plessis, Corneil C [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Wednesday, February 26, 2003 12:50 PM
   Subject: RE: [Q] BEAN SCOPE
  
  
It may be a silly question but are these actions in the same web
application?
   
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:47
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
   
   
Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.
   
btw in my jsp i have form bean saying
   
JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName
onsubmit=return
validateWIGAdminWizardForm(this);
   
JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);
   
   
now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.
   
And thatz the problem area.
   
Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE
   
   
 Did you put scope=session on both action mappings?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:31
 To: Struts Users Mailing List
 Subject: [Q] BEAN SCOPE


 Hi,
 I am trying to figure out what can be the problem in my
   struts-config
 from yday,
 will anyone tell me what can be the problem if, I am putting
scope=session
 in my action-mapping
 and trying to access same formbean from two different actions.

 Once the bean is created, it should be there for the session, and
when
  I
 move to next jsp and call another action it should use same bean
  rather
than
 creating a new one.

 I know itz creating new bean, coz I have put default constructor
in my
 formbean and am printing System.out.printing() through
constructor.


 Regards
 Chetan
 ___
 |
 | The trouble with being punctual
 |  is that nobody's there to appreciate it.
 |
 |
 |___





 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the
official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and
  endorse
any other content.
 Views and opinions are those of the sender unless clearly stated
as
   being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised
recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this
communication
   has
been maintained nor
 that it is free of errors, virus, interception or interference

Re: [Q] BEAN SCOPE

2003-02-26 Thread Brian Blignaut
You must specify the attribute value for you action mapping

David Bolsover wrote:

Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction?

db

 

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February 2003 07:51
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
man i have attached my struts-config.xml in my privious mails
check the attachment
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:13 PM
Subject: RE: [Q] BEAN SCOPE
   

What does you struts-config look like? The form bean and action mapping
entries.
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 09:34
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
OH yeh ... they r all in same webapps folder and are having refferences in
same WEB-INF web.xml and struts-config.xml files.
Any changes required in my struts-config ?

btw, how is world cup going at ur end :)  r u planning to watch
India-England match :)
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50 PM
Subject: RE: [Q] BEAN SCOPE
 

It may be a silly question but are these actions in the same web
application?
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:47
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.
btw in my jsp i have form bean saying

JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
validateWIGAdminWizardForm(this);
JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);
now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.
And thatz the problem area.

Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE
   

Did you put scope=session on both action mappings?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:31
To: Struts Users Mailing List
Subject: [Q] BEAN SCOPE
Hi,
   I am trying to figure out what can be the problem in my
 

struts-config
 

from yday,
will anyone tell me what can be the problem if, I am putting
 

scope=session
   

in my action-mapping
and trying to access same formbean from two different actions.
Once the bean is created, it should be there for the session, and when
 

I
   

move to next jsp and call another action it should use same bean
 

rather
   

than
   

creating a new one.

I know itz creating new bean, coz I have put default constructor in my
formbean and am printing System.out.printing() through constructor.
Regards
Chetan
___
|
| The trouble with being punctual
|  is that nobody's there to appreciate it.
|
|
|___




__

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official
 

business of
   

Standard Bank Group Limited is proprietary to the company. It is
 

confidential, legally
   

privileged and protected by law. Standard Bank does not own and
 

endorse
   

any other content.
   

Views and opinions are those of the sender unless clearly stated as
 

being
 

that of Standard Bank.
   

The person addressed in the e-mail is the sole authorised recipient.
 

Please notify the sender
   

immediately if it has unintentionally reached you and do not read,
 

disclose or use the content
   

in any way.

Standard Bank can not assure that the integrity of this communication
 

has
 

been maintained nor
   

that it is free of errors, virus, interception or interference.

__

 

__

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official
   

business of
 

Standard Bank Group Limited is proprietary to the company. It is
   

confidential, legally
 

privileged and protected by law. Standard Bank does not own and endorse
   

any other content.
 

Views and opinions are those of the sender unless clearly stated as
   

being
   

that of Standard Bank.
 

The person addressed in the e-mail is the sole authorised recipient.
   

Please notify the sender
 

immediately if it has unintentionally

Re: [Q] BEAN SCOPE

2003-02-26 Thread Chetan Sahasrabudhe
attribute as what ?
I tried putting attribute value as my formbean name, nothing is happening
when I checked in struts dtd for struts-config the explaination says

  attribute   Name of the request-scope or session-scope attribute that
 is used to access our ActionForm bean, if it is other
than
 the bean's specified name. Optional if name is
specified,
 else not valid.

it says optional if name is specified.

Regards
Chetan
- Original Message -
From: Brian Blignaut [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:31 PM
Subject: Re: [Q] BEAN SCOPE


 You must specify the attribute value for you action mapping

 David Bolsover wrote:

 Are you explicitly putting wigadminwizardform into session scope in
OMInterfaceInfoAction?
 
 db
 
 
 
 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February 2003 07:51
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE
 
 
 man i have attached my struts-config.xml in my privious mails
 check the attachment
 
 Chetan
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 1:13 PM
 Subject: RE: [Q] BEAN SCOPE
 
 
 
 
 What does you struts-config look like? The form bean and action mapping
 entries.
 
 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 09:34
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE
 
 
 OH yeh ... they r all in same webapps folder and are having refferences
in
 same WEB-INF web.xml and struts-config.xml files.
 
 Any changes required in my struts-config ?
 
 
 btw, how is world cup going at ur end :)  r u planning to watch
 India-England match :)
 
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:50 PM
 Subject: RE: [Q] BEAN SCOPE
 
 
 
 
 It may be a silly question but are these actions in the same web
 application?
 
 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:47
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE
 
 
 Yep, I have session scope in both action mappings
 I have attached my struts-config along with this mail.
 
 btw in my jsp i have form bean saying
 
 JSP 1
 html:form action=/ominterfaceinfo.do focus=sOMName
onsubmit=return
 validateWIGAdminWizardForm(this);
 
 JSP 2
 html:form action=/translator.do onsubmit=return
 validateWIGAdminWizardForm(this);
 
 
 now, when I call jsp1 the bean is getting created
 but when I move to jsp 2 , again new bean is created.
 
 And thatz the problem area.
 
 Thanks
 Chetan
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 Subject: RE: [Q] BEAN SCOPE
 
 
 
 
 Did you put scope=session on both action mappings?
 
 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:31
 To: Struts Users Mailing List
 Subject: [Q] BEAN SCOPE
 
 
 Hi,
 I am trying to figure out what can be the problem in my
 
 
 struts-config
 
 
 from yday,
 will anyone tell me what can be the problem if, I am putting
 
 
 scope=session
 
 
 in my action-mapping
 and trying to access same formbean from two different actions.
 
 Once the bean is created, it should be there for the session, and
when
 
 
 I
 
 
 move to next jsp and call another action it should use same bean
 
 
 rather
 
 
 than
 
 
 creating a new one.
 
 I know itz creating new bean, coz I have put default constructor in
my
 formbean and am printing System.out.printing() through constructor.
 
 
 Regards
 Chetan
 ___
 |
 | The trouble with being punctual
 |  is that nobody's there to appreciate it.
 |
 |
 |___
 
 
 
 
 
 __
 
 Disclaimer and confidentiality note
 
 
 Everything in this e-mail and any attachments relating to the
official
 
 
 business of
 
 
 Standard Bank Group Limited is proprietary to the company. It is
 
 
 confidential, legally
 
 
 privileged and protected by law. Standard Bank does not own and
 
 
 endorse
 
 
 any other content.
 
 
 Views and opinions are those of the sender unless clearly stated as
 
 
 being
 
 
 that of Standard Bank.
 
 
 The person addressed in the e-mail is the sole authorised recipient.
 
 
 Please notify the sender
 
 
 immediately if it has unintentionally reached you and do not read,
 
 
 disclose or use the content
 
 
 in any way.
 
 Standard Bank can not assure that the integrity of this communication
 
 
 has
 
 
 been maintained nor
 
 
 that it is free of errors, virus, interception or interference

RE: [Q] BEAN SCOPE

2003-02-26 Thread du Plessis, Corneil C
I cannot see a problem with the way you have used 'name' in the action
mapping.
Another way of tracking the problem is to log/System.out.println access to
the Form validate by logging the session id as well. Then you can find out
if the session is somehow recreated.


-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 13:20
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE


attribute as what ?
I tried putting attribute value as my formbean name, nothing is happening
when I checked in struts dtd for struts-config the explaination says

  attribute   Name of the request-scope or session-scope attribute that
 is used to access our ActionForm bean, if it is other
than
 the bean's specified name. Optional if name is
specified,
 else not valid.

it says optional if name is specified.

Regards
Chetan
- Original Message -
From: Brian Blignaut [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:31 PM
Subject: Re: [Q] BEAN SCOPE


 You must specify the attribute value for you action mapping

 David Bolsover wrote:

 Are you explicitly putting wigadminwizardform into session scope in
OMInterfaceInfoAction?
 
 db
 
 


[STUFF DELETED]

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



Re: [Q] BEAN SCOPE

2003-02-26 Thread Brian Blignaut
As whatever you want it to be, this is the value that struts will store 
your form under in the session and the value it will use to retrieve the 
form.

Look at the source code.

   //Form creation (BeanUtils)
   String attribute = mapping.getAttribute();
   if(attribute == null)
   return null;
   String name = mapping.getName();
   config = moduleConfig.findFormBeanConfig(name);
   if(config == null)
   return null;
   if(log.isDebugEnabled())
   log.debug( Looking for ActionForm bean instance in scope ' 
+ mapping.getScope() + ' under attribute key ' + attribute + ');
   instance = null;
   HttpSession session = null;
   if(request.equals(mapping.getScope())) {
   instance = (ActionForm)request.getAttribute(attribute);
   } else {
   session = request.getSession();
   instance = (ActionForm)session.getAttribute(attribute);
   }

  //Form storing (RequestProcessor)
   ActionForm instance = RequestUtils.createActionForm(request, 
mapping, moduleConfig, servlet);
   if(instance == null)
   return null;
   if(log.isDebugEnabled())
   log.debug( Storing ActionForm bean instance in scope ' + 
mapping.getScope() + ' under attribute key ' + mapping.getAttribute() 
+ ');
   if(request.equals(mapping.getScope())) {
   request.setAttribute(mapping.getAttribute(), instance);
   } else {
   HttpSession session = request.getSession();
   session.setAttribute(mapping.getAttribute(), instance);
   }
   return instance;



Chetan Sahasrabudhe wrote:

attribute as what ?
I tried putting attribute value as my formbean name, nothing is happening
when I checked in struts dtd for struts-config the explaination says
 attribute   Name of the request-scope or session-scope attribute that
is used to access our ActionForm bean, if it is other
than
the bean's specified name. Optional if name is
specified,
else not valid.
it says optional if name is specified.

Regards
Chetan
- Original Message -
From: Brian Blignaut [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:31 PM
Subject: Re: [Q] BEAN SCOPE
 

You must specify the attribute value for you action mapping

David Bolsover wrote:

   

Are you explicitly putting wigadminwizardform into session scope in
 

OMInterfaceInfoAction?
 

db



 

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February 2003 07:51
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
man i have attached my struts-config.xml in my privious mails
check the attachment
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:13 PM
Subject: RE: [Q] BEAN SCOPE


   

What does you struts-config look like? The form bean and action mapping
entries.
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 09:34
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
OH yeh ... they r all in same webapps folder and are having refferences
 

in
 

same WEB-INF web.xml and struts-config.xml files.

Any changes required in my struts-config ?

btw, how is world cup going at ur end :)  r u planning to watch
India-England match :)
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50 PM
Subject: RE: [Q] BEAN SCOPE


 

It may be a silly question but are these actions in the same web
application?
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:47
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.
btw in my jsp i have form bean saying

JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName
   

onsubmit=return
 

validateWIGAdminWizardForm(this);

JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);
now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.
And thatz the problem area.

Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE


   

Did you put scope=session on both action mappings?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:31
To: Struts Users Mailing List
Subject: [Q] BEAN SCOPE
Hi,
  I am trying to figure out what can be the problem in my
 

struts-config

 

from yday

Re: [Q] BEAN SCOPE

2003-02-26 Thread Brian Blignaut
Sorry my, mistake, with further searching I see that the get attribute 
method returns the name if the attribute is not specified

   public String getAttribute() {
   if(attribute == null)
   return name;
   else
   return attribute;
   }
Brian Blignaut wrote:

As whatever you want it to be, this is the value that struts will 
store your form under in the session and the value it will use to 
retrieve the form.

Look at the source code.

   //Form creation (BeanUtils)
   String attribute = mapping.getAttribute();
   if(attribute == null)
   return null;
   String name = mapping.getName();
   config = moduleConfig.findFormBeanConfig(name);
   if(config == null)
   return null;
   if(log.isDebugEnabled())
   log.debug( Looking for ActionForm bean instance in scope 
' + mapping.getScope() + ' under attribute key ' + attribute + ');
   instance = null;
   HttpSession session = null;
   if(request.equals(mapping.getScope())) {
   instance = (ActionForm)request.getAttribute(attribute);
   } else {
   session = request.getSession();
   instance = (ActionForm)session.getAttribute(attribute);
   }

  //Form storing (RequestProcessor)
   ActionForm instance = RequestUtils.createActionForm(request, 
mapping, moduleConfig, servlet);
   if(instance == null)
   return null;
   if(log.isDebugEnabled())
   log.debug( Storing ActionForm bean instance in scope ' + 
mapping.getScope() + ' under attribute key ' + 
mapping.getAttribute() + ');
   if(request.equals(mapping.getScope())) {
   request.setAttribute(mapping.getAttribute(), instance);
   } else {
   HttpSession session = request.getSession();
   session.setAttribute(mapping.getAttribute(), instance);
   }
   return instance;



Chetan Sahasrabudhe wrote:

attribute as what ?
I tried putting attribute value as my formbean name, nothing is 
happening
when I checked in struts dtd for struts-config the explaination says

 attribute   Name of the request-scope or session-scope attribute 
that
is used to access our ActionForm bean, if it is 
other
than
the bean's specified name. Optional if name is
specified,
else not valid.

it says optional if name is specified.

Regards
Chetan
- Original Message -
From: Brian Blignaut [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:31 PM
Subject: Re: [Q] BEAN SCOPE
 

You must specify the attribute value for you action mapping

David Bolsover wrote:

  

Are you explicitly putting wigadminwizardform into session scope in


OMInterfaceInfoAction?
 

db





-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February 2003 07:51
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
man i have attached my struts-config.xml in my privious mails
check the attachment
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:13 PM
Subject: RE: [Q] BEAN SCOPE


  

What does you struts-config look like? The form bean and action 
mapping
entries.

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 09:34
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
OH yeh ... they r all in same webapps folder and are having 
refferences


in
 

same WEB-INF web.xml and struts-config.xml files.

Any changes required in my struts-config ?

btw, how is world cup going at ur end :)  r u planning to watch
India-England match :)
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50 PM
Subject: RE: [Q] BEAN SCOPE




It may be a silly question but are these actions in the same web
application?
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:47
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE
Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.
btw in my jsp i have form bean saying

JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName
  

onsubmit=return
 

validateWIGAdminWizardForm(this);

JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);
now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.
And thatz the problem area.

Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE


  

Did you put scope=session on both action mappings

Re: [Q] BEAN SCOPE

2003-02-26 Thread Chetan Sahasrabudhe
itz done guys, thanks for ur help.

brian thanks for taking efforts in sending me code.
in my code there was a old function removing object from session

thanks :)
- Original Message -
From: Brian Blignaut [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 5:36 PM
Subject: Re: [Q] BEAN SCOPE


 Sorry my, mistake, with further searching I see that the get attribute
 method returns the name if the attribute is not specified

 public String getAttribute() {
 if(attribute == null)
 return name;
 else
 return attribute;
 }


 Brian Blignaut wrote:

  As whatever you want it to be, this is the value that struts will
  store your form under in the session and the value it will use to
  retrieve the form.
 
  Look at the source code.
 
 //Form creation (BeanUtils)
 String attribute = mapping.getAttribute();
 if(attribute == null)
 return null;
 String name = mapping.getName();
 config = moduleConfig.findFormBeanConfig(name);
 if(config == null)
 return null;
 if(log.isDebugEnabled())
 log.debug( Looking for ActionForm bean instance in scope
  ' + mapping.getScope() + ' under attribute key ' + attribute + ');
 instance = null;
 HttpSession session = null;
 if(request.equals(mapping.getScope())) {
 instance = (ActionForm)request.getAttribute(attribute);
 } else {
 session = request.getSession();
 instance = (ActionForm)session.getAttribute(attribute);
 }
 
//Form storing (RequestProcessor)
 ActionForm instance = RequestUtils.createActionForm(request,
  mapping, moduleConfig, servlet);
 if(instance == null)
 return null;
 if(log.isDebugEnabled())
 log.debug( Storing ActionForm bean instance in scope ' +
  mapping.getScope() + ' under attribute key ' +
  mapping.getAttribute() + ');
 if(request.equals(mapping.getScope())) {
 request.setAttribute(mapping.getAttribute(), instance);
 } else {
 HttpSession session = request.getSession();
 session.setAttribute(mapping.getAttribute(), instance);
 }
 return instance;
 
 
 
  Chetan Sahasrabudhe wrote:
 
  attribute as what ?
  I tried putting attribute value as my formbean name, nothing is
  happening
  when I checked in struts dtd for struts-config the explaination says
 
   attribute   Name of the request-scope or session-scope attribute
  that
  is used to access our ActionForm bean, if it is
  other
  than
  the bean's specified name. Optional if name is
  specified,
  else not valid.
 
  it says optional if name is specified.
 
  Regards
  Chetan
  - Original Message -
  From: Brian Blignaut [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 4:31 PM
  Subject: Re: [Q] BEAN SCOPE
 
 
 
 
  You must specify the attribute value for you action mapping
 
  David Bolsover wrote:
 
 
 
  Are you explicitly putting wigadminwizardform into session scope in
 
 
  OMInterfaceInfoAction?
 
 
  db
 
 
 
 
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February 2003 07:51
  To: Struts Users Mailing List
  Subject: Re: [Q] BEAN SCOPE
 
 
  man i have attached my struts-config.xml in my privious mails
  check the attachment
 
  Chetan
  - Original Message -
  From: du Plessis, Corneil C [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 1:13 PM
  Subject: RE: [Q] BEAN SCOPE
 
 
 
 
 
 
  What does you struts-config look like? The form bean and action
  mapping
  entries.
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 09:34
  To: Struts Users Mailing List
  Subject: Re: [Q] BEAN SCOPE
 
 
  OH yeh ... they r all in same webapps folder and are having
  refferences
 
 
  in
 
 
  same WEB-INF web.xml and struts-config.xml files.
 
  Any changes required in my struts-config ?
 
 
  btw, how is world cup going at ur end :)  r u planning to watch
  India-England match :)
 
  - Original Message -
  From: du Plessis, Corneil C [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 12:50 PM
  Subject: RE: [Q] BEAN SCOPE
 
 
 
 
 
 
  It may be a silly question but are these actions in the same web
  application?
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 08:47
  To: Struts Users Mailing List
  Subject: Re: [Q] BEAN SCOPE
 
 
  Yep, I have session scope in both action mappings
  I have attached my struts-config along with this mail.
 
  btw in my jsp i have form bean saying
 
  JSP

RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
Did you put scope=session on both action mappings?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:31
To: Struts Users Mailing List
Subject: [Q] BEAN SCOPE


Hi,
I am trying to figure out what can be the problem in my struts-config
from yday,
will anyone tell me what can be the problem if, I am putting scope=session
in my action-mapping
and trying to access same formbean from two different actions.
 
Once the bean is created, it should be there for the session, and when I
move to next jsp and call another action it should use same bean rather than
creating a new one.
 
I know itz creating new bean, coz I have put default constructor in my
formbean and am printing System.out.printing() through constructor.
 
 
Regards
Chetan
___
|  
| The trouble with being punctual 
|  is that nobody's there to appreciate it.
| 
| 
|___


 


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__


Re: [Q] BEAN SCOPE

2003-02-25 Thread Chetan Sahasrabudhe
Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.

btw in my jsp i have form bean saying

JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
validateWIGAdminWizardForm(this);

JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);


now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.

And thatz the problem area.

Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE


 Did you put scope=session on both action mappings?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:31
 To: Struts Users Mailing List
 Subject: [Q] BEAN SCOPE


 Hi,
 I am trying to figure out what can be the problem in my struts-config
 from yday,
 will anyone tell me what can be the problem if, I am putting
scope=session
 in my action-mapping
 and trying to access same formbean from two different actions.

 Once the bean is created, it should be there for the session, and when I
 move to next jsp and call another action it should use same bean rather
than
 creating a new one.

 I know itz creating new bean, coz I have put default constructor in my
 formbean and am printing System.out.printing() through constructor.


 Regards
 Chetan
 ___
 |
 | The trouble with being punctual
 |  is that nobody's there to appreciate it.
 |
 |
 |___





 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and endorse
any other content.
 Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this communication has
been maintained nor
 that it is free of errors, virus, interception or interference.

 __

?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

!--
 This is the Struts configuration file for the WIGAdmin application,
 using the proposed new syntax.

 NOTE:  You would only flesh out the details in the form-bean
 declarations if you had a generator tool that used them to create
 the corresponding Java classes for you.  Otherwise, you would
 need only the form-bean element itself, with the corresponding
 name and type attributes.
--


struts-config


  !-- == Data Source Configuration === --
!--
 data-sources
   data-source
 set-property property=autoCommit
  value=false/
 set-property property=description
  value=Example Data Source Configuration/
 set-property property=driverClass
  value=org.postgresql.Driver/
 set-property property=maxCount
  value=4/
 set-property property=minCount
  value=2/
 set-property property=password
  value=mypassword/
 set-property property=url
  value=jdbc:postgresql://localhost/mydatabase/
 set-property property=user
  value=myusername/
   /data-source
 /data-sources
--
  !-- == Form Bean Definitions === --
  form-beans

form-bean  name=wigadminwizardform 
type=wigadmin.struts.forms.WIGAdminWizardForm
form-property name=nOMId type=int/
form-property name=sOMName type=java.lang.String/
form-property name=sTransactionType type=java.lang.String/
form-property name=sServerName type=java.lang.String/
form-property name=sPortNumber type=java.lang.String/
form-property name=chkExistingOMName type=boolean/
form-property name=sExistingOMName type=java.lang.String/
form-property name=alExistingOMName type=java.util.Collection/

form-property name=sTranslatorType type=java.lang.String/
form-property name=sBatchFileName type=java.lang.String/
form-property name=sWisorMainBatchFileName type=java.lang.String/
form-property name=colTranslatorType type=java.util.Collection/
/form-bean

  /form-beans


  !-- == Global Forward Definitions

RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
It may be a silly question but are these actions in the same web
application?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:47
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE


Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.

btw in my jsp i have form bean saying

JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
validateWIGAdminWizardForm(this);

JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);


now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.

And thatz the problem area.

Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE


 Did you put scope=session on both action mappings?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:31
 To: Struts Users Mailing List
 Subject: [Q] BEAN SCOPE


 Hi,
 I am trying to figure out what can be the problem in my struts-config
 from yday,
 will anyone tell me what can be the problem if, I am putting
scope=session
 in my action-mapping
 and trying to access same formbean from two different actions.

 Once the bean is created, it should be there for the session, and when I
 move to next jsp and call another action it should use same bean rather
than
 creating a new one.

 I know itz creating new bean, coz I have put default constructor in my
 formbean and am printing System.out.printing() through constructor.


 Regards
 Chetan
 ___
 |
 | The trouble with being punctual
 |  is that nobody's there to appreciate it.
 |
 |
 |___





 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and endorse
any other content.
 Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this communication has
been maintained nor
 that it is free of errors, virus, interception or interference.

 __


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



Re: [Q] BEAN SCOPE

2003-02-25 Thread Chetan Sahasrabudhe
OH yeh ... they r all in same webapps folder and are having refferences in
same WEB-INF web.xml and struts-config.xml files.

Any changes required in my struts-config ?


btw, how is world cup going at ur end :)  r u planning to watch
India-England match :)

- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50 PM
Subject: RE: [Q] BEAN SCOPE


 It may be a silly question but are these actions in the same web
 application?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:47
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE


 Yep, I have session scope in both action mappings
 I have attached my struts-config along with this mail.

 btw in my jsp i have form bean saying

 JSP 1
 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
 validateWIGAdminWizardForm(this);

 JSP 2
 html:form action=/translator.do onsubmit=return
 validateWIGAdminWizardForm(this);


 now, when I call jsp1 the bean is getting created
 but when I move to jsp 2 , again new bean is created.

 And thatz the problem area.

 Thanks
 Chetan
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 Subject: RE: [Q] BEAN SCOPE


  Did you put scope=session on both action mappings?
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 08:31
  To: Struts Users Mailing List
  Subject: [Q] BEAN SCOPE
 
 
  Hi,
  I am trying to figure out what can be the problem in my
struts-config
  from yday,
  will anyone tell me what can be the problem if, I am putting
 scope=session
  in my action-mapping
  and trying to access same formbean from two different actions.
 
  Once the bean is created, it should be there for the session, and when I
  move to next jsp and call another action it should use same bean rather
 than
  creating a new one.
 
  I know itz creating new bean, coz I have put default constructor in my
  formbean and am printing System.out.printing() through constructor.
 
 
  Regards
  Chetan
  ___
  |
  | The trouble with being punctual
  |  is that nobody's there to appreciate it.
  |
  |
  |___
 
 
 
 
 
  __
 
  Disclaimer and confidentiality note
 
 
  Everything in this e-mail and any attachments relating to the official
 business of
  Standard Bank Group Limited is proprietary to the company. It is
 confidential, legally
  privileged and protected by law. Standard Bank does not own and endorse
 any other content.
  Views and opinions are those of the sender unless clearly stated as
being
 that of Standard Bank.
 
  The person addressed in the e-mail is the sole authorised recipient.
 Please notify the sender
  immediately if it has unintentionally reached you and do not read,
 disclose or use the content
  in any way.
 
  Standard Bank can not assure that the integrity of this communication
has
 been maintained nor
  that it is free of errors, virus, interception or interference.
 
  __
 

 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and endorse
any other content.
 Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this communication has
been maintained nor
 that it is free of errors, virus, interception or interference.

 __

 -
 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: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
What does you struts-config look like? The form bean and action mapping
entries.

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 09:34
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE


OH yeh ... they r all in same webapps folder and are having refferences in
same WEB-INF web.xml and struts-config.xml files.

Any changes required in my struts-config ?


btw, how is world cup going at ur end :)  r u planning to watch
India-England match :)

- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50 PM
Subject: RE: [Q] BEAN SCOPE


 It may be a silly question but are these actions in the same web
 application?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:47
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE


 Yep, I have session scope in both action mappings
 I have attached my struts-config along with this mail.

 btw in my jsp i have form bean saying

 JSP 1
 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
 validateWIGAdminWizardForm(this);

 JSP 2
 html:form action=/translator.do onsubmit=return
 validateWIGAdminWizardForm(this);


 now, when I call jsp1 the bean is getting created
 but when I move to jsp 2 , again new bean is created.

 And thatz the problem area.

 Thanks
 Chetan
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 Subject: RE: [Q] BEAN SCOPE


  Did you put scope=session on both action mappings?
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 08:31
  To: Struts Users Mailing List
  Subject: [Q] BEAN SCOPE
 
 
  Hi,
  I am trying to figure out what can be the problem in my
struts-config
  from yday,
  will anyone tell me what can be the problem if, I am putting
 scope=session
  in my action-mapping
  and trying to access same formbean from two different actions.
 
  Once the bean is created, it should be there for the session, and when I
  move to next jsp and call another action it should use same bean rather
 than
  creating a new one.
 
  I know itz creating new bean, coz I have put default constructor in my
  formbean and am printing System.out.printing() through constructor.
 
 
  Regards
  Chetan
  ___
  |
  | The trouble with being punctual
  |  is that nobody's there to appreciate it.
  |
  |
  |___
 
 
 
 
 
  __
 
  Disclaimer and confidentiality note
 
 
  Everything in this e-mail and any attachments relating to the official
 business of
  Standard Bank Group Limited is proprietary to the company. It is
 confidential, legally
  privileged and protected by law. Standard Bank does not own and endorse
 any other content.
  Views and opinions are those of the sender unless clearly stated as
being
 that of Standard Bank.
 
  The person addressed in the e-mail is the sole authorised recipient.
 Please notify the sender
  immediately if it has unintentionally reached you and do not read,
 disclose or use the content
  in any way.
 
  Standard Bank can not assure that the integrity of this communication
has
 been maintained nor
  that it is free of errors, virus, interception or interference.
 
  __
 

 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and endorse
any other content.
 Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this communication has
been maintained nor
 that it is free of errors, virus, interception or interference.

 __

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary

Re: [Q] BEAN SCOPE

2003-02-25 Thread Chetan Sahasrabudhe
man i have attached my struts-config.xml in my privious mails
check the attachment

Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 1:13 PM
Subject: RE: [Q] BEAN SCOPE


 What does you struts-config look like? The form bean and action mapping
 entries.

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 09:34
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE


 OH yeh ... they r all in same webapps folder and are having refferences in
 same WEB-INF web.xml and struts-config.xml files.

 Any changes required in my struts-config ?


 btw, how is world cup going at ur end :)  r u planning to watch
 India-England match :)

 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:50 PM
 Subject: RE: [Q] BEAN SCOPE


  It may be a silly question but are these actions in the same web
  application?
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 08:47
  To: Struts Users Mailing List
  Subject: Re: [Q] BEAN SCOPE
 
 
  Yep, I have session scope in both action mappings
  I have attached my struts-config along with this mail.
 
  btw in my jsp i have form bean saying
 
  JSP 1
  html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
  validateWIGAdminWizardForm(this);
 
  JSP 2
  html:form action=/translator.do onsubmit=return
  validateWIGAdminWizardForm(this);
 
 
  now, when I call jsp1 the bean is getting created
  but when I move to jsp 2 , again new bean is created.
 
  And thatz the problem area.
 
  Thanks
  Chetan
  - Original Message -
  From: du Plessis, Corneil C [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, February 26, 2003 12:05 PM
  Subject: RE: [Q] BEAN SCOPE
 
 
   Did you put scope=session on both action mappings?
  
   -Original Message-
   From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
   Sent: 26 February, 2003 08:31
   To: Struts Users Mailing List
   Subject: [Q] BEAN SCOPE
  
  
   Hi,
   I am trying to figure out what can be the problem in my
 struts-config
   from yday,
   will anyone tell me what can be the problem if, I am putting
  scope=session
   in my action-mapping
   and trying to access same formbean from two different actions.
  
   Once the bean is created, it should be there for the session, and when
I
   move to next jsp and call another action it should use same bean
rather
  than
   creating a new one.
  
   I know itz creating new bean, coz I have put default constructor in my
   formbean and am printing System.out.printing() through constructor.
  
  
   Regards
   Chetan
   ___
   |
   | The trouble with being punctual
   |  is that nobody's there to appreciate it.
   |
   |
   |___
  
  
  
  
  
   __
  
   Disclaimer and confidentiality note
  
  
   Everything in this e-mail and any attachments relating to the official
  business of
   Standard Bank Group Limited is proprietary to the company. It is
  confidential, legally
   privileged and protected by law. Standard Bank does not own and
endorse
  any other content.
   Views and opinions are those of the sender unless clearly stated as
 being
  that of Standard Bank.
  
   The person addressed in the e-mail is the sole authorised recipient.
  Please notify the sender
   immediately if it has unintentionally reached you and do not read,
  disclose or use the content
   in any way.
  
   Standard Bank can not assure that the integrity of this communication
 has
  been maintained nor
   that it is free of errors, virus, interception or interference.
  
   __
  
 
  __
 
  Disclaimer and confidentiality note
 
 
  Everything in this e-mail and any attachments relating to the official
 business of
  Standard Bank Group Limited is proprietary to the company. It is
 confidential, legally
  privileged and protected by law. Standard Bank does not own and endorse
 any other content.
  Views and opinions are those of the sender unless clearly stated as
being
 that of Standard Bank.
 
  The person addressed in the e-mail is the sole authorised recipient.
 Please notify the sender
  immediately if it has unintentionally reached you and do not read,
 disclose or use the content
  in any way.
 
  Standard Bank can not assure that the integrity of this communication
has
 been maintained nor
  that it is free of errors, virus, interception or interference.
 
  __
 
  -
  To unsubscribe, e-mail: [EMAIL