AW: struts double action execution!?
"Otto, Frank" <[email protected]> Mon, 13 Oct 2003 13:21:12 +0200
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Message-ID | <[email protected]> |
Santhi,
I have found the mistake. I had a # in a table-tag.
<table background=3D"#">
...
</table>
I don't know, why struts execute an action twice, but I'm happy. ;o))
Thanks for your help.
Frank
-----Urspr=FCngliche 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 calle=
d?
-----Urspr=FCngliche 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,
=20
Where you meant to forward to a jsp page (n Struts config.)
may be you are forwarding to the action again?
=20
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.
=20
No, I have no sub-class. In struts-config.xml there is only this entry:
=20
<controller
contentType=3D"text/html;charset=3DISO-8859-1"
debug=3D"3"
locale=3D"true"
nocache=3D"true"
maxFileSize=3D"2M" />
=20
Regards,
=20
Frank
-----Urspr=FCngliche 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.=20
Cheers,=20
Kristen.=20
--
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/=20
"Otto, Frank" <[email protected]>=20
Sent by: [email protected]=20
09/10/2003 10:37 PM=20
Please respond to
[email protected]
To
"'[email protected]'" <[email protected]>=20
cc
Subject
[MVC-Programmers] struts double action execution!?=09
=09
Hello,=20
=20
I have a difficult problem. My action was executed twice and I don't know
why.=20
=20
There is a global forward in my main.jsp:=20
=20
<%@ taglib uri=3D"/WEB-INF/struts-logic.tld" prefix=3D"logic" %>=20
<logic:forward name=3D"startpage"/>=20
=20
=20
struts-config.xml:=20
=20
<struts-config>=20
<global-forwards>=20
<forward=20
name=3D"startpage"=20
path=3D"/action/welcome" />=20
...=20
</global-forwards>=20
<action-mappings>=20
=20
<action=20
path=3D"/welcome"=20
type=3D"test.actions.CWelcomeAction"=20
name=3D"loginForm"=20
scope=3D"request"=20
validate=3D"false">=20
<forward=20
name=3D"Success" path=3D"dos.Welcome" /> =20
</action>=20
...=20
</action-mappings>=20
=20
tiles-def.xml:=20
=20
<tiles-definitions>=20
<definition name=3D"dos.DefaultLayout"
page=3D"/pages/layouts/dosDefaultLayout.jsp">=20
<put name=3D"header" value=3D"/pages/header/empty.jsp"/>=20
<put name=3D"agb" value=3D"/pages/submenu/common/agb.jsp"/>=20
</definition>=20
=20
<definition name=3D"dos.WelcomeLayout" extends=3D"dos.DefaultLayout">
<put name=3D"header" value=3D"/pages/header/startpage.jsp"=
/>=20
<put name=3D"mainmenu_top" value=3D"/pages/mainmenu_top/emptymain.js=
p"/>=20
<put name=3D"mainmenu_bottom"
value=3D"/pages/mainmenu_bottom/welcomemain.jsp"/>=20
<put name=3D"submenu" value=3D"/pages/submenu/main/login.jsp"/>=20
<put name=3D"navigation" value=3D"/pages/navigation/empty.=
jsp"/>=20
</definition>=20
=20
<definition name=3D"dos.Welcome" extends=3D"dos.WelcomeLayout">=20
<put name=3D"caption"
value=3D"/pages/captions/main/welcome.jsp"/>=20
<put name=3D"content" value=3D"/pages/mainpage/main/welcome.jsp"/>=20
</definition>=20
...=20
</tiles-definitions>=20
=20
=20
That was written in the log-file:=20
=20
DEBUG 2003-10-09 08:50:46,204 - Get module name for path /action=20
DEBUG 2003-10-09 08:50:46,204 - Module name found: default=20
DEBUG 2003-10-09 08:50:46,205 - Processing a 'GET' for path '/welcome'=20
DEBUG 2003-10-09 08:50:46,205 - Looking for ActionForm bean instance in
scope 'request' under attribute key 'loginForm'=20
DEBUG 2003-10-09 08:50:46,205 - Creating new ActionForm instance of type
'test.forms.main.CLoginForm'=20
DEBUG 2003-10-09 08:50:46,205 - --> test.forms.main.CLoginForm@f507d2=20
DEBUG 2003-10-09 08:50:46,205 - Storing ActionForm bean instance in scop=
e
'request' under attribute key 'loginForm'=20
DEBUG 2003-10-09 08:50:46,206 - Populating bean properties from this
request=20
DEBUG 2003-10-09 08:50:46,206 -
BeanUtils.populate(test.forms.main.CLoginForm@f507d2, {})=20
DEBUG 2003-10-09 08:50:46,206 - Looking for Action instance for class
test.actions.CWelcomeAction=20
DEBUG 2003-10-09 08:50:46,206 - Returning existing Action instance=20
DEBUG 2003-10-09 08:50:46,206 - Begin CWelcomeAction.execute()=20
DEBUG 2003-10-09 08:50:46,206 - dispatch:
ActionConfig[path=3D/welcome,name=3DloginForm,scope=3Drequest,type=3Dtest=
.actions.CW
elcome=20
Action=20
...=20
DEBUG 2003-10-09 08:50:46,211 - End CWelcomeAction.execute()=20
DEBUG 2003-10-09 08:50:46,211 - processForwardConfig(dos.Welcome, false)=20
DEBUG 2003-10-09 08:50:46,212 - uri=3D/pages/layouts/dosDefaultLayout.jsp
doInclud=20
e=3Dfalse=20
DEBUG 2003-10-09 08:50:46,214 - insert page=3D'/pages/header/startpage.js=
p'.=20
DEBUG 2003-10-09 08:50:46,219 - insert
page=3D'/pages/mainmenu_bottom/welcomemain.=20
jsp'.=20
DEBUG 2003-10-09 08:50:46,226 - insert page=3D'/pages/submenu/main/login.=
jsp'.
DEBUG 2003-10-09 08:50:46,230 - insert page=3D'/pages/submenu/common/agb.=
jsp'.
DEBUG 2003-10-09 08:50:46,236 - insert page=3D'/pages/navigation/empty.js=
p'.=20
DEBUG 2003-10-09 08:50:46,238 - insert
page=3D'/pages/captions/main/welcome.jsp'.=20
DEBUG 2003-10-09 08:50:46,240 - insert
page=3D'/pages/mainpage/main/welcome.jsp'.=20
DEBUG 2003-10-09 08:50:46,242 - 'dos.Welcome' - processed as definition=
=20
THE SECOND ONE:=20
DEBUG 2003-10-09 08:50:46,522 - Get module name for path /action=20
DEBUG 2003-10-09 08:50:46,522 - Module name found: default=20
DEBUG 2003-10-09 08:50:46,523 - Processing a 'GET' for path '/welcome'=20
DEBUG 2003-10-09 08:50:46,523 - Looking for ActionForm bean instance in
scope '=20
request' under attribute key 'loginForm'=20
DEBUG 2003-10-09 08:50:46,523 - Creating new ActionForm instance of type
'test.forms.main.CLoginForm'=20
DEBUG 2003-10-09 08:50:46,526 - --> test.forms.main.CLoginForm@d4=20
a1d3=20
DEBUG 2003-10-09 08:50:46,526 - Storing ActionForm bean instance in scop=
e
'requ=20
est' under attribute key 'loginForm'=20
DEBUG 2003-10-09 08:50:46,526 - Populating bean properties from this
request=20
DEBUG 2003-10-09 08:50:46,526 - BeanUtils.populate(test.forms.main=20
.CLoginForm@d4a1d3, {})=20
DEBUG 2003-10-09 08:50:46,526 - Looking for Action instance for class
test.actions.CWelcomeAction=20
DEBUG 2003-10-09 08:50:46,526 - Returning existing Action instance=20
DEBUG 2003-10-09 08:50:46,526 - Begin CWelcomeAction.execute()=20
DEBUG 2003-10-09 08:50:46,526 - dispatch:
ActionConfig[path=3D/welcome,name=3DloginF=20
orm,scope=3Drequest,type=3Dtest.actions.CWelcome=20
Action=20
...=20
DEBUG 2003-10-09 08:50:46,548 - End CWelcomeAction.execute()=20
DEBUG 2003-10-09 08:50:46,550 - processForwardConfig(dos.Welcome, false)=20
DEBUG 2003-10-09 08:50:46,551 - uri=3D/pages/layouts/dosDefaultLayout.jsp
doInclud=20
e=3Dfalse=20
DEBUG 2003-10-09 08:50:46,555 - insert page=3D'/pages/header/startpage.js=
p'.=20
DEBUG 2003-10-09 08:50:46,562 - insert
page=3D'/pages/mainmenu_bottom/welcomemain.=20
jsp'.=20
DEBUG 2003-10-09 08:50:46,577 - insert page=3D'/pages/submenu/main/login.=
jsp'.
DEBUG 2003-10-09 08:50:46,582 - insert page=3D'/pages/submenu/common/agb.=
jsp'.
DEBUG 2003-10-09 08:50:46,584 - insert page=3D'/pages/navigation/empty.js=
p'.=20
DEBUG 2003-10-09 08:50:46,585 - insert
page=3D'/pages/captions/main/welcome.jsp'.=20
DEBUG 2003-10-09 08:50:46,586 - insert
page=3D'/pages/mainpage/main/welcome.jsp'.=20
DEBUG 2003-10-09 08:50:46,587 - 'dos.Welcome' - processed as definition=
=20
=20
=20
Has anyone an idea, where the mistake is? I thing all my actions were
executed twice.=20
=20
=20
Regards,=20
=20
Frank=20
_______________________________________________
MVC-Programmers mailing list
[email protected]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
_______________________________________________
MVC-Programmers mailing list
[email protected]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
_______________________________________________
MVC-Programmers mailing list
[email protected]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers