AW: [MVC-Programmers] struts double action execution!?

2003-10-13 Thread Otto, Frank
Santhi,

I have found the mistake. I had a # in a table-tag.


   ...


I don't know, why struts execute an action twice, but I'm happy. ;o))

Thanks for your help.


Frank

-Ursprüngliche Nachricht-
Von: Peyathevar, Santhi {PBG} [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 10. Oktober 2003 15:08
An: '[EMAIL PROTECTED]'
Betreff: RE: [MVC-Programmers] struts double action execution!?


Frank,

HttpRequest that you see in Action Class has some get..Path methods.
That might help to see where the action was called from

Santhi

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 2:51 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [MVC-Programmers] struts double action execution!?


Is there a possibility in struts to check from where was the action called?

-Ursprüngliche Nachricht-
Von: Peyathevar, Santhi {PBG} [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 17:02
An: '[EMAIL PROTECTED]'
Betreff: RE: [MVC-Programmers] struts double action execution!?


Frank,
 
Where you meant to forward to a jsp page (n Struts config.)
may be you are forwarding to the action again?
 
Santhi

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [MVC-Programmers] struts double action execution!?


Thanks for your answer.
 
No, I have no sub-class. In struts-config.xml there is only this entry:
 

 
Regards,
 
Frank

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 15:30
An: [EMAIL PROTECTED]
Betreff: Re: [MVC-Programmers] struts double action execution!?



Have you sub-classed the RequestProcessor? if so I would look in there to
see if there are any hassles with the code. 

Cheers, 

Kristen. 
--
Kristen Gillard
Multitask Consulting Pty Ltd
Lvl 8, 20 Loftus Street,
Circular Quay, NSW, 2000
--
Ph:   61-2-9252-1462
Fx:   61-2-9252-4636
Mo:  0409-000-123
--
http://www.multitask.com.au/ 



"Otto, Frank" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 


09/10/2003 10:37 PM 


Please respond to
[EMAIL PROTECTED]



To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 

cc

Subject
[MVC-Programmers] struts double action execution!?  






Hello, 
  
I have a difficult problem. My action was executed twice and I don't know
why. 
  
There is a global forward in my main.jsp: 
  
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
 
  
  
struts-config.xml: 
  
 
  


  ... 
  

  
 

 


   ... 
  
  
tiles-def.xml: 
  
 
   


   
   
  


  
  
  

   
   
   

  
   
... 
 
  
  
That was written in the log-file: 
  
DEBUG 2003-10-09 08:50:46,204 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,204 - Module name found: default 
DEBUG 2003-10-09 08:50:46,205 - Processing a 'GET' for path '/welcome' 
DEBUG 2003-10-09 08:50:46,205 -  Looking for ActionForm bean instance in
scope 'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,205 -  Creating new ActionForm instance of type
'test.forms.main.CLoginForm' 
DEBUG 2003-10-09 08:50:46,205 -  --> [EMAIL PROTECTED] 
DEBUG 2003-10-09 08:50:46,205 -  Storing ActionForm bean instance in scope
'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,206 -  Populating bean properties from this
request 
DEBUG 2003-10-09 08:50:46,206 -
BeanUtils.populate([EMAIL PROTECTED], {}) 
DEBUG 2003-10-09 08:50:46,206 -  Looking for Action instance for class
test.actions.CWelcomeAction 
DEBUG 2003-10-09 08:50:46,206 -   Returning existing Action instance 
DEBUG 2003-10-09 08:50:46,206 - Begin   CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,206 - dispatch:
ActionConfig[path=/welcome,name=loginForm,scope=request,type=test.actions.CW
elcome 
Action 
... 
DEBUG 2003-10-09 08:50:46,211 - End CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,211 - processForwardConfig(dos.Welcome, false) 
DEBUG 2003-10-09 08:50:46,212 - uri=/pages/layouts/dosDefaultLayout.jsp
doInclud 
e=false 
DEBUG 2003-10-09 08:50:46,214 - insert page='/pages/header/startpage.jsp'. 
DEBUG 2003-10-09 08:50:46,219 - insert
page='/pages/mainmenu_bottom/welcomemain. 
jsp'. 
DEBUG 2003-10-09 08:50:46,226 - insert page='/pages/submenu/main/login.jsp'.

DEBUG 2003-10-09 08:50:46,230 - insert page='/pages/submenu/common/agb.jsp'.

DEBUG 2003-10-09 08:50:46,236 - insert page='/pages/navigation/empty.jsp'. 
DEBUG 2003-10-09 08:50:46,238 - insert
page='/pages/captions/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,240 - insert
page='/pages/mainpage/main/welcome.jsp'

AW: [MVC-Programmers] struts double action execution!?

2003-10-10 Thread Otto, Frank
Hi,

I have searched for the problem in www and I have found this bug:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg17498.html

I think it can be the same. Or not?

Does anyone know, when the next struts-version will come? I need a release without the 
bug to test whether it is the solution. Has anyone an idea?


Frank

-Ursprüngliche Nachricht-
Von: Otto, Frank [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 10. Oktober 2003 08:51
An: '[EMAIL PROTECTED]'
Betreff: AW: [MVC-Programmers] struts double action execution!?


Is there a possibility in struts to check from where was the action called?

-Ursprüngliche Nachricht-
Von: Peyathevar, Santhi {PBG} [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 17:02
An: '[EMAIL PROTECTED]'
Betreff: RE: [MVC-Programmers] struts double action execution!?


Frank,
 
Where you meant to forward to a jsp page (n Struts config.)
may be you are forwarding to the action again?
 
Santhi

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [MVC-Programmers] struts double action execution!?


Thanks for your answer.
 
No, I have no sub-class. In struts-config.xml there is only this entry:
 

 
Regards,
 
Frank

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 15:30
An: [EMAIL PROTECTED]
Betreff: Re: [MVC-Programmers] struts double action execution!?



Have you sub-classed the RequestProcessor? if so I would look in there to
see if there are any hassles with the code. 

Cheers, 

Kristen. 
--
Kristen Gillard
Multitask Consulting Pty Ltd
Lvl 8, 20 Loftus Street,
Circular Quay, NSW, 2000
--
Ph:   61-2-9252-1462
Fx:   61-2-9252-4636
Mo:  0409-000-123
--
http://www.multitask.com.au/ 



"Otto, Frank" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 


09/10/2003 10:37 PM 


Please respond to
[EMAIL PROTECTED]



To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 

cc

Subject
[MVC-Programmers] struts double action execution!?  






Hello, 
  
I have a difficult problem. My action was executed twice and I don't know
why. 
  
There is a global forward in my main.jsp: 
  
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
 
  
  
struts-config.xml: 
  
 
  


  ... 
  

  
 

 


   ... 
  
  
tiles-def.xml: 
  
 
   


   
   
  


  
  
  

   
   
   

  
   
... 
 
  
  
That was written in the log-file: 
  
DEBUG 2003-10-09 08:50:46,204 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,204 - Module name found: default 
DEBUG 2003-10-09 08:50:46,205 - Processing a 'GET' for path '/welcome' 
DEBUG 2003-10-09 08:50:46,205 -  Looking for ActionForm bean instance in
scope 'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,205 -  Creating new ActionForm instance of type
'test.forms.main.CLoginForm' 
DEBUG 2003-10-09 08:50:46,205 -  --> [EMAIL PROTECTED] 
DEBUG 2003-10-09 08:50:46,205 -  Storing ActionForm bean instance in scope
'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,206 -  Populating bean properties from this
request 
DEBUG 2003-10-09 08:50:46,206 -
BeanUtils.populate([EMAIL PROTECTED], {}) 
DEBUG 2003-10-09 08:50:46,206 -  Looking for Action instance for class
test.actions.CWelcomeAction 
DEBUG 2003-10-09 08:50:46,206 -   Returning existing Action instance 
DEBUG 2003-10-09 08:50:46,206 - Begin   CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,206 - dispatch:
ActionConfig[path=/welcome,name=loginForm,scope=request,type=test.actions.CW
elcome 
Action 
... 
DEBUG 2003-10-09 08:50:46,211 - End CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,211 - processForwardConfig(dos.Welcome, false) 
DEBUG 2003-10-09 08:50:46,212 - uri=/pages/layouts/dosDefaultLayout.jsp
doInclud 
e=false 
DEBUG 2003-10-09 08:50:46,214 - insert page='/pages/header/startpage.jsp'. 
DEBUG 2003-10-09 08:50:46,219 - insert
page='/pages/mainmenu_bottom/welcomemain. 
jsp'. 
DEBUG 2003-10-09 08:50:46,226 - insert page='/pages/submenu/main/login.jsp'.

DEBUG 2003-10-09 08:50:46,230 - insert page='/pages/submenu/common/agb.jsp'.

DEBUG 2003-10-09 08:50:46,236 - insert page='/pages/navigation/empty.jsp'. 
DEBUG 2003-10-09 08:50:46,238 - insert
page='/pages/captions/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,240 - insert
page='/pages/mainpage/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,242 -   'dos.Welcome' - processed as definition 

THE SECOND ONE: 
DEBUG 2003-10-09 08:50:46,522 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,522 - Module name f

AW: [MVC-Programmers] struts double action execution!?

2003-10-10 Thread Otto, Frank
Is there a possibility in struts to check from where was the action called?

-Ursprüngliche Nachricht-
Von: Peyathevar, Santhi {PBG} [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 17:02
An: '[EMAIL PROTECTED]'
Betreff: RE: [MVC-Programmers] struts double action execution!?


Frank,
 
Where you meant to forward to a jsp page (n Struts config.)
may be you are forwarding to the action again?
 
Santhi

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [MVC-Programmers] struts double action execution!?


Thanks for your answer.
 
No, I have no sub-class. In struts-config.xml there is only this entry:
 

 
Regards,
 
Frank

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 15:30
An: [EMAIL PROTECTED]
Betreff: Re: [MVC-Programmers] struts double action execution!?



Have you sub-classed the RequestProcessor? if so I would look in there to
see if there are any hassles with the code. 

Cheers, 

Kristen. 
--
Kristen Gillard
Multitask Consulting Pty Ltd
Lvl 8, 20 Loftus Street,
Circular Quay, NSW, 2000
--
Ph:   61-2-9252-1462
Fx:   61-2-9252-4636
Mo:  0409-000-123
--
http://www.multitask.com.au/ 



"Otto, Frank" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 


09/10/2003 10:37 PM 


Please respond to
[EMAIL PROTECTED]



To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 

cc

Subject
[MVC-Programmers] struts double action execution!?  






Hello, 
  
I have a difficult problem. My action was executed twice and I don't know
why. 
  
There is a global forward in my main.jsp: 
  
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
 
  
  
struts-config.xml: 
  
 
  


  ... 
  

  
 

 


   ... 
  
  
tiles-def.xml: 
  
 
   


   
   
  


  
  
  

   
   
   

  
   
... 
 
  
  
That was written in the log-file: 
  
DEBUG 2003-10-09 08:50:46,204 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,204 - Module name found: default 
DEBUG 2003-10-09 08:50:46,205 - Processing a 'GET' for path '/welcome' 
DEBUG 2003-10-09 08:50:46,205 -  Looking for ActionForm bean instance in
scope 'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,205 -  Creating new ActionForm instance of type
'test.forms.main.CLoginForm' 
DEBUG 2003-10-09 08:50:46,205 -  --> [EMAIL PROTECTED] 
DEBUG 2003-10-09 08:50:46,205 -  Storing ActionForm bean instance in scope
'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,206 -  Populating bean properties from this
request 
DEBUG 2003-10-09 08:50:46,206 -
BeanUtils.populate([EMAIL PROTECTED], {}) 
DEBUG 2003-10-09 08:50:46,206 -  Looking for Action instance for class
test.actions.CWelcomeAction 
DEBUG 2003-10-09 08:50:46,206 -   Returning existing Action instance 
DEBUG 2003-10-09 08:50:46,206 - Begin   CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,206 - dispatch:
ActionConfig[path=/welcome,name=loginForm,scope=request,type=test.actions.CW
elcome 
Action 
... 
DEBUG 2003-10-09 08:50:46,211 - End CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,211 - processForwardConfig(dos.Welcome, false) 
DEBUG 2003-10-09 08:50:46,212 - uri=/pages/layouts/dosDefaultLayout.jsp
doInclud 
e=false 
DEBUG 2003-10-09 08:50:46,214 - insert page='/pages/header/startpage.jsp'. 
DEBUG 2003-10-09 08:50:46,219 - insert
page='/pages/mainmenu_bottom/welcomemain. 
jsp'. 
DEBUG 2003-10-09 08:50:46,226 - insert page='/pages/submenu/main/login.jsp'.

DEBUG 2003-10-09 08:50:46,230 - insert page='/pages/submenu/common/agb.jsp'.

DEBUG 2003-10-09 08:50:46,236 - insert page='/pages/navigation/empty.jsp'. 
DEBUG 2003-10-09 08:50:46,238 - insert
page='/pages/captions/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,240 - insert
page='/pages/mainpage/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,242 -   'dos.Welcome' - processed as definition 

THE SECOND ONE: 
DEBUG 2003-10-09 08:50:46,522 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,522 - Module name found: default 
DEBUG 2003-10-09 08:50:46,523 - Processing a 'GET' for path '/welcome' 
DEBUG 2003-10-09 08:50:46,523 -  Looking for ActionForm bean instance in
scope ' 
request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,523 -  Creating new ActionForm instance of type
'test.forms.main.CLoginForm' 
DEBUG 2003-10-09 08:50:46,526 -  --> [EMAIL PROTECTED] 
a1d3 
DEBUG 2003-10-09 08:50:46,526 -  Storing ActionForm bean instance in scope
'requ 
est' under attribute key 

AW: [MVC-Programmers] struts double action execution!?

2003-10-10 Thread Otto, Frank
Santhi,

I don't think so, because the log-file said that "'dos.Welcome' - processed as 
definition". After some milliseconds it start again. Is this ready the same log-entry 
occured, but it don't start the third execution. The jsp-pages are the same by the 
first and second excution. If there is a forward in any jsp-page or in struts config, 
it will be an infinite loop or?

Frank

-Ursprüngliche Nachricht-
Von: Peyathevar, Santhi {PBG} [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 17:02
An: '[EMAIL PROTECTED]'
Betreff: RE: [MVC-Programmers] struts double action execution!?


Frank,
 
Where you meant to forward to a jsp page (n Struts config.)
may be you are forwarding to the action again?
 
Santhi

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [MVC-Programmers] struts double action execution!?


Thanks for your answer.
 
No, I have no sub-class. In struts-config.xml there is only this entry:
 

 
Regards,
 
Frank

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Oktober 2003 15:30
An: [EMAIL PROTECTED]
Betreff: Re: [MVC-Programmers] struts double action execution!?



Have you sub-classed the RequestProcessor? if so I would look in there to
see if there are any hassles with the code. 

Cheers, 

Kristen. 
--
Kristen Gillard
Multitask Consulting Pty Ltd
Lvl 8, 20 Loftus Street,
Circular Quay, NSW, 2000
--
Ph:   61-2-9252-1462
Fx:   61-2-9252-4636
Mo:  0409-000-123
--
http://www.multitask.com.au/ 



"Otto, Frank" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 


09/10/2003 10:37 PM 


Please respond to
[EMAIL PROTECTED]



To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 

cc

Subject
[MVC-Programmers] struts double action execution!?  






Hello, 
  
I have a difficult problem. My action was executed twice and I don't know
why. 
  
There is a global forward in my main.jsp: 
  
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
 
  
  
struts-config.xml: 
  
 
  


  ... 
  

  
 

 


   ... 
  
  
tiles-def.xml: 
  
 
   


   
   
  


  
  
  

   
   
   

  
   
... 
 
  
  
That was written in the log-file: 
  
DEBUG 2003-10-09 08:50:46,204 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,204 - Module name found: default 
DEBUG 2003-10-09 08:50:46,205 - Processing a 'GET' for path '/welcome' 
DEBUG 2003-10-09 08:50:46,205 -  Looking for ActionForm bean instance in
scope 'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,205 -  Creating new ActionForm instance of type
'test.forms.main.CLoginForm' 
DEBUG 2003-10-09 08:50:46,205 -  --> [EMAIL PROTECTED] 
DEBUG 2003-10-09 08:50:46,205 -  Storing ActionForm bean instance in scope
'request' under attribute key 'loginForm' 
DEBUG 2003-10-09 08:50:46,206 -  Populating bean properties from this
request 
DEBUG 2003-10-09 08:50:46,206 -
BeanUtils.populate([EMAIL PROTECTED], {}) 
DEBUG 2003-10-09 08:50:46,206 -  Looking for Action instance for class
test.actions.CWelcomeAction 
DEBUG 2003-10-09 08:50:46,206 -   Returning existing Action instance 
DEBUG 2003-10-09 08:50:46,206 - Begin   CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,206 - dispatch:
ActionConfig[path=/welcome,name=loginForm,scope=request,type=test.actions.CW
elcome 
Action 
... 
DEBUG 2003-10-09 08:50:46,211 - End CWelcomeAction.execute() 
DEBUG 2003-10-09 08:50:46,211 - processForwardConfig(dos.Welcome, false) 
DEBUG 2003-10-09 08:50:46,212 - uri=/pages/layouts/dosDefaultLayout.jsp
doInclud 
e=false 
DEBUG 2003-10-09 08:50:46,214 - insert page='/pages/header/startpage.jsp'. 
DEBUG 2003-10-09 08:50:46,219 - insert
page='/pages/mainmenu_bottom/welcomemain. 
jsp'. 
DEBUG 2003-10-09 08:50:46,226 - insert page='/pages/submenu/main/login.jsp'.

DEBUG 2003-10-09 08:50:46,230 - insert page='/pages/submenu/common/agb.jsp'.

DEBUG 2003-10-09 08:50:46,236 - insert page='/pages/navigation/empty.jsp'. 
DEBUG 2003-10-09 08:50:46,238 - insert
page='/pages/captions/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,240 - insert
page='/pages/mainpage/main/welcome.jsp'. 
DEBUG 2003-10-09 08:50:46,242 -   'dos.Welcome' - processed as definition 

THE SECOND ONE: 
DEBUG 2003-10-09 08:50:46,522 - Get module name for path /action 
DEBUG 2003-10-09 08:50:46,522 - Module name found: default 
DEBUG 2003-10-09 08:50:46,523 - Processing a 'GET' for path '/welcome' 
DEBUG 2003-10-09 08:50:46,523 -  Looking for ActionForm bean instance in
scope ' 
request'

AW: [MVC-Programmers] struts double action execution!?

2003-10-09 Thread Otto, Frank



Thanks 
for your answer.
 
No, I 
have no sub-class. In struts-config.xml there is only this 
entry:
 
    
contentType="text/html;charset=ISO-8859-1"    
debug="3"    locale="true"    
nocache="true"    maxFileSize="2M" />
 
Regards,
 
Frank

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Gesendet: 
  Donnerstag, 9. Oktober 2003 15:30An: 
  [EMAIL PROTECTED]Betreff: Re: [MVC-Programmers] struts 
  double action execution!?Have you sub-classed the RequestProcessor? if so I would look in there 
  to see if there are any hassles with the code. Cheers, Kristen. --Kristen 
  GillardMultitask Consulting Pty LtdLvl 8, 20 Loftus 
  Street,Circular Quay, NSW, 2000--Ph:   61-2-9252-1462Fx: 
    61-2-9252-4636Mo: 
   0409-000-123--http://www.multitask.com.au/ 
  


  "Otto, Frank" 
<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 
09/10/2003 10:37 PM 

  
  

  Please respond 
  to[EMAIL PROTECTED]
  

  
  

  To
"'[EMAIL PROTECTED]'" 
  <[EMAIL PROTECTED]> 
  

  cc

  

  Subject
[MVC-Programmers] 
  struts double action execution!?

  
  

Hello,   I have a difficult problem. My action was executed twice and I don't 
  know why.   There is a global forward in my main.jsp:   <%@ taglib 
  uri="/WEB-INF/struts-logic.tld" prefix="logic" %>      struts-config.xml:   
   
         
     name="startpage"      path="/action/welcome" 
  />   ...   
             path="/welcome"     
   type="test.actions.CWelcomeAction"     
   name="loginForm"      scope="request"   
     validate="false">             name="Success" path="dos.Welcome" />   
              ... 
      
  tiles-def.xml:    
             
      
                 
                    
                   
    
              
                
             
                    
              
   ...      That was written in the log-file:   
  DEBUG 2003-10-09 08:50:46,204 - Get module name 
  for path /action DEBUG 2003-10-09 08:50:46,204 - Module name found: 
  default DEBUG 2003-10-09 08:50:46,205 - Processing a 'GET' for path 
  '/welcome' DEBUG 2003-10-09 08:50:46,205 -  Looking for ActionForm 
  bean instance in scope 'request' under attribute key 'loginForm' DEBUG 
  2003-10-09 08:50:46,205 -  Creating new ActionForm instance of type 
  'test.forms.main.CLoginForm' DEBUG 2003-10-09 08:50:46,205 -  --> 
  [EMAIL PROTECTED] DEBUG 2003-10-09 08:50:46,205 - 
   Storing ActionForm bean instance in scope 'request' under attribute key 
  'loginForm' DEBUG 2003-10-09 08:50:46,206 -  Populating bean 
  properties from this request DEBUG 2003-10-09 08:50:46,206 - 
  BeanUtils.populate([EMAIL PROTECTED], {}) DEBUG 2003-10-09 
  08:50:46,206 -  Looking for Action instance for class 
  test.actions.CWelcomeAction DEBUG 2003-10-09 08:50:46,206 -   
  Returning existing Action instance DEBUG 2003-10-09 08:50:46,206 - Begin 
    CWelcomeAction.execute() DEBUG 2003-10-09 08:50:46,206 - dispatch: 
  ActionConfig[path=/welcome,name=loginForm,scope=request,type=test.actions.CWelcome 
  Action ... DEBUG 2003-10-09 08:50:46,211 - End     
  CWelcomeAction.execute() DEBUG 2003-10-09 08:50:46,211 - 
  processForwardConfig(dos.Welcome, false) DEBUG 2003-10-09 08:50:46,212 - 
  uri=/pages/layouts/dosDefaultLayout.jsp doInclud e=false DEBUG 
  2003-10-09 08:50:46,214 - insert page='/pages/header/startpage.jsp'. DEBUG 
  2003-10-09 08:50:46,219 - insert page='/pages/mainmenu_bottom/welcomemain. 
  jsp'. DEBUG 2003-10-09 08:50:46,226 - insert 
  page='/pages/submenu/main/login.jsp'. DEBUG 2003-10-09 08:50:46,230 - 
  insert page='/pages/submenu/common/agb.jsp'. DEBUG 2003-10-09 08:50:46,236 
  - insert page='/pages/navigation/empty.jsp'. DEBUG 2003-10-09 08:50:46,238 
  - insert page='/pages/captions/main/welcome.jsp'. DEBUG 2003-10-09 
  08:50:46,240 - insert page='/pages/mainpage/main/welcome.jsp'. DEBUG 
  2003-10-09 08:50:46,242 -   'dos.Welcome' - processed as definition 
  THE SECOND ONE: DEBUG 
  2003-10-09 08:50:46,522 - Get module name for path /action DEBUG 
  2003-10-09 08:50:46,522 - Module name found: default DEBUG 2003-10-09 
  08:50:46,523 - Processing a 'GET' for path '/welcome' DEBUG 2003-10-09 
  08:50:46,523 -  Looking for ActionForm bean instance in scope ' 
  request' under attribute key 'loginForm' DEBUG 2003-10-09 08:50:46,523 
  -  Creating new ActionForm instance of type 'test.forms.main.CLoginForm' 
  DEBUG 2003-10-09 08:50:46,526 -  --> [EMAIL PROTECTED] 
  a1d3 DEBUG 2003-10-09 08:50:46,526 -  Storing ActionForm bean 
  instance in scope 'requ est' under attribute key 'loginForm' DEBUG 
  2003-10-09 08:50:46,526 -  Populating bean properties from this request 
  DEBUG 2003-10-09 08:50:46,526 - BeanUtils.populate