You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Douglas <jd...@hotmail.com> on 2004/12/09 04:29:18 UTC
Controller Form not forwarding to Action
To all,
I have an LoginForm which is working fine. The problem is struts is not
forwarding after form validation. It never gets into the LoginAction class.
This is the output to the log file.
DEBUG - Validating input form properties
INFO - IN LogonForm CLASS: ActionErrors METHOD
INFO - password = jim
INFO - username = butter
DEBUG - No errors detected, accepting input
DEBUG - Looking for Action instance for class app.web.LogonAction
DEBUG - Creating new Action instance
This is my struts-config.xml
<!-- ========== Form Bean Definitions ===================================
-->
<form-beans>
<!-- Logon form bean -->
<form-bean name="logonForm"
type="app.web.LogonForm"/>
</form-beans>
<!-- ========== Global Forward Definitions ==============================
-->
<global-forwards>
<forward name="logon" path="/logon.jsp"/>
<forward name="success" path="/portal/welcome.jsp"
rewrite="true"/> -->
</global-forwards>
<action-mappings>
<!-- Process a user logon -->
<action path="/logon"
type="app.web.LogonAction"
name="logonForm"
scope="request"
input="/logon.jsp"
<forward name="success" path="/portal/welcome.jsp"/>
<forward name="failure" path="/portal/error.jsp"/>
</action>
Where else can I look?
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Controller Form not forwarding to Action
Posted by Jim Douglas <jd...@hotmail.com>.
Martin,
I was using an old example which is referenced extensively in
documentation.
Ths solution was to chage "perform" to "execute" in the ActionForward
method in the LoginAction example.
Thanks,
Jim
>From: "Laconia Data Systems" <we...@laconiadatasystems.com>
>Reply-To: "Laconia Data Systems" <we...@laconiadatasystems.com>
>To: "Struts Users Mailing List" <us...@struts.apache.org>
>Subject: Re: Controller Form not forwarding to Action
>Date: Thu, 9 Dec 2004 11:32:24 -0500
>
>Jim:
>could we see the entire struts-config.xml
>could you print out the head for your LogonAction so we can see the
>Package specification for LogonAction?
>Has the LogonAction class been included in the war?
>Martin-
>----- Original Message -----
>From: "Jim Douglas" <jd...@hotmail.com>
>To: <us...@struts.apache.org>
>Sent: Thursday, December 09, 2004 10:57 AM
>Subject: Re: Controller Form not forwarding to Action
>
>
> > Niall,
> > I fixed that but it didn't matter. Any other suggestions?
> > Thanks,
> > Jim
> >
> >
> > >From: "Niall Pemberton" <ni...@blueyonder.co.uk>
> > >Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> > >To: "Struts Users Mailing List" <us...@struts.apache.org>
> > >Subject: Re: Controller Form not forwarding to Action
> > >Date: Thu, 9 Dec 2004 05:23:15 -0000
> > >
> > >Looks like you have a missing ">" in your struts-config after
> > >input="/logon.jsp"....
> > >
> > > <action path="/logon"
> > > type="app.web.LogonAction"
> > > name="logonForm"
> > > scope="request"
> > > input="/logon.jsp">
> > > <forward name="success" path="/portal/welcome.jsp"/>
> > > <forward name="failure" path="/portal/error.jsp"/>
> > > </action>
> > >
> > >Niall
> > >
> > >----- Original Message -----
> > >From: "Jim Douglas" <jd...@hotmail.com>
> > >To: <us...@struts.apache.org>
> > >Sent: Thursday, December 09, 2004 3:29 AM
> > >Subject: Controller Form not forwarding to Action
> > >
> > >
> > > > To all,
> > > > I have an LoginForm which is working fine. The problem is struts
>is
> > >not
> > > > forwarding after form validation. It never gets into the
>LoginAction
> > >class.
> > > >
> > > > This is the output to the log file.
> > > >
> > > > DEBUG - Validating input form properties
> > > > INFO - IN LogonForm CLASS: ActionErrors METHOD
> > > > INFO - password = jim
> > > > INFO - username = butter
> > > > DEBUG - No errors detected, accepting input
> > > > DEBUG - Looking for Action instance for class app.web.LogonAction
> > > > DEBUG - Creating new Action instance
> > > >
> > > > This is my struts-config.xml
> > > >
> > > > <!-- ========== Form Bean Definitions
> > >===================================
> > > > -->
> > > > <form-beans>
> > > > <!-- Logon form bean -->
> > > > <form-bean name="logonForm"
> > > > type="app.web.LogonForm"/>
> > > > </form-beans>
> > > > <!-- ========== Global Forward Definitions
> > >==============================
> > > > -->
> > > > <global-forwards>
> > > > <forward name="logon" path="/logon.jsp"/>
> > > > <forward name="success"
>path="/portal/welcome.jsp"
> > > > rewrite="true"/> -->
> > > > </global-forwards>
> > > >
> > > > <action-mappings>
> > > > <!-- Process a user logon -->
> > > > <action path="/logon"
> > > > type="app.web.LogonAction"
> > > > name="logonForm"
> > > > scope="request"
> > > > input="/logon.jsp"
> > > > <forward name="success" path="/portal/welcome.jsp"/>
> > > > <forward name="failure" path="/portal/error.jsp"/>
> > > > </action>
> > > >
> > > > Where else can I look?
> > > >
> > > > Thanks,
> > > > Jim
> > > >
> > > >
> > > >
> > > >
>---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >For additional commands, e-mail: user-help@struts.apache.org
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Controller Form not forwarding to Action
Posted by Jim Douglas <jd...@hotmail.com>.
That was it exactly,
Thanks,
Jim
>From: "David G. Friedman" <hu...@ix.netcom.com>
>To: "Struts Users Mailing List"
><us...@hotmail.com>
>Subject: RE: Controller Form not forwarding to Action
>Date: Thu, 9 Dec 2004 17:52:16 -0500
>
>Jim,
>
>Since the ActionForm is working but you're getting no data from your Action
>class, are you using perform() instead of execute()? Old tutorials (and
>some older books) on Struts all show the perform() method which is not
>present in the current releases (1.2.4, it was deprecated in 1.1 and
>removed
>by 1.2.4). This would result in an action not forwarding after validation
>succeeds since you would not have setup the appropriate execute() method
>that 1.2.4 Action's invoke. Just my theory without having seen your
>action
>class but knowing your expectations. :)
>
>Regards,
>David
>
>-----Original Message-----
>From: Laconia Data Systems [mailto:webmaster@laconiadatasystems.com]
>Sent: Thursday, December 09, 2004 11:32 AM
>To: Struts Users Mailing List
>Subject: Re: Controller Form not forwarding to Action
>
>
>Jim:
>could we see the entire struts-config.xml
>could you print out the head for your LogonAction so we can see the
>Package specification for LogonAction?
>Has the LogonAction class been included in the war?
>Martin-
>----- Original Message -----
>From: "Jim Douglas" <jd...@hotmail.com>
>To: <us...@struts.apache.org>
>Sent: Thursday, December 09, 2004 10:57 AM
>Subject: Re: Controller Form not forwarding to Action
>
>
> > Niall,
> > I fixed that but it didn't matter. Any other suggestions?
> > Thanks,
> > Jim
> >
> >
> > >From: "Niall Pemberton" <ni...@blueyonder.co.uk>
> > >Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> > >To: "Struts Users Mailing List" <us...@struts.apache.org>
> > >Subject: Re: Controller Form not forwarding to Action
> > >Date: Thu, 9 Dec 2004 05:23:15 -0000
> > >
> > >Looks like you have a missing ">" in your struts-config after
> > >input="/logon.jsp"....
> > >
> > > <action path="/logon"
> > > type="app.web.LogonAction"
> > > name="logonForm"
> > > scope="request"
> > > input="/logon.jsp">
> > > <forward name="success" path="/portal/welcome.jsp"/>
> > > <forward name="failure" path="/portal/error.jsp"/>
> > > </action>
> > >
> > >Niall
> > >
> > >----- Original Message -----
> > >From: "Jim Douglas" <jd...@hotmail.com>
> > >To: <us...@struts.apache.org>
> > >Sent: Thursday, December 09, 2004 3:29 AM
> > >Subject: Controller Form not forwarding to Action
> > >
> > >
> > > > To all,
> > > > I have an LoginForm which is working fine. The problem is struts
>is
> > >not
> > > > forwarding after form validation. It never gets into the
>LoginAction
> > >class.
> > > >
> > > > This is the output to the log file.
> > > >
> > > > DEBUG - Validating input form properties
> > > > INFO - IN LogonForm CLASS: ActionErrors METHOD
> > > > INFO - password = jim
> > > > INFO - username = butter
> > > > DEBUG - No errors detected, accepting input
> > > > DEBUG - Looking for Action instance for class app.web.LogonAction
> > > > DEBUG - Creating new Action instance
> > > >
> > > > This is my struts-config.xml
> > > >
> > > > <!-- ========== Form Bean Definitions
> > >===================================
> > > > -->
> > > > <form-beans>
> > > > <!-- Logon form bean -->
> > > > <form-bean name="logonForm"
> > > > type="app.web.LogonForm"/>
> > > > </form-beans>
> > > > <!-- ========== Global Forward Definitions
> > >==============================
> > > > -->
> > > > <global-forwards>
> > > > <forward name="logon" path="/logon.jsp"/>
> > > > <forward name="success"
>path="/portal/welcome.jsp"
> > > > rewrite="true"/> -->
> > > > </global-forwards>
> > > >
> > > > <action-mappings>
> > > > <!-- Process a user logon -->
> > > > <action path="/logon"
> > > > type="app.web.LogonAction"
> > > > name="logonForm"
> > > > scope="request"
> > > > input="/logon.jsp"
> > > > <forward name="success" path="/portal/welcome.jsp"/>
> > > > <forward name="failure" path="/portal/error.jsp"/>
> > > > </action>
> > > >
> > > > Where else can I look?
> > > >
> > > > Thanks,
> > > > Jim
> > > >
> > > >
> > > >
> > > >
>---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >For additional commands, e-mail: user-help@struts.apache.org
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Controller Form not forwarding to Action
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Jim,
Since the ActionForm is working but you're getting no data from your Action
class, are you using perform() instead of execute()? Old tutorials (and
some older books) on Struts all show the perform() method which is not
present in the current releases (1.2.4, it was deprecated in 1.1 and removed
by 1.2.4). This would result in an action not forwarding after validation
succeeds since you would not have setup the appropriate execute() method
that 1.2.4 Action's invoke. Just my theory without having seen your action
class but knowing your expectations. :)
Regards,
David
-----Original Message-----
From: Laconia Data Systems [mailto:webmaster@laconiadatasystems.com]
Sent: Thursday, December 09, 2004 11:32 AM
To: Struts Users Mailing List
Subject: Re: Controller Form not forwarding to Action
Jim:
could we see the entire struts-config.xml
could you print out the head for your LogonAction so we can see the
Package specification for LogonAction?
Has the LogonAction class been included in the war?
Martin-
----- Original Message -----
From: "Jim Douglas" <jd...@hotmail.com>
To: <us...@struts.apache.org>
Sent: Thursday, December 09, 2004 10:57 AM
Subject: Re: Controller Form not forwarding to Action
> Niall,
> I fixed that but it didn't matter. Any other suggestions?
> Thanks,
> Jim
>
>
> >From: "Niall Pemberton" <ni...@blueyonder.co.uk>
> >Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> >To: "Struts Users Mailing List" <us...@struts.apache.org>
> >Subject: Re: Controller Form not forwarding to Action
> >Date: Thu, 9 Dec 2004 05:23:15 -0000
> >
> >Looks like you have a missing ">" in your struts-config after
> >input="/logon.jsp"....
> >
> > <action path="/logon"
> > type="app.web.LogonAction"
> > name="logonForm"
> > scope="request"
> > input="/logon.jsp">
> > <forward name="success" path="/portal/welcome.jsp"/>
> > <forward name="failure" path="/portal/error.jsp"/>
> > </action>
> >
> >Niall
> >
> >----- Original Message -----
> >From: "Jim Douglas" <jd...@hotmail.com>
> >To: <us...@struts.apache.org>
> >Sent: Thursday, December 09, 2004 3:29 AM
> >Subject: Controller Form not forwarding to Action
> >
> >
> > > To all,
> > > I have an LoginForm which is working fine. The problem is struts is
> >not
> > > forwarding after form validation. It never gets into the LoginAction
> >class.
> > >
> > > This is the output to the log file.
> > >
> > > DEBUG - Validating input form properties
> > > INFO - IN LogonForm CLASS: ActionErrors METHOD
> > > INFO - password = jim
> > > INFO - username = butter
> > > DEBUG - No errors detected, accepting input
> > > DEBUG - Looking for Action instance for class app.web.LogonAction
> > > DEBUG - Creating new Action instance
> > >
> > > This is my struts-config.xml
> > >
> > > <!-- ========== Form Bean Definitions
> >===================================
> > > -->
> > > <form-beans>
> > > <!-- Logon form bean -->
> > > <form-bean name="logonForm"
> > > type="app.web.LogonForm"/>
> > > </form-beans>
> > > <!-- ========== Global Forward Definitions
> >==============================
> > > -->
> > > <global-forwards>
> > > <forward name="logon" path="/logon.jsp"/>
> > > <forward name="success" path="/portal/welcome.jsp"
> > > rewrite="true"/> -->
> > > </global-forwards>
> > >
> > > <action-mappings>
> > > <!-- Process a user logon -->
> > > <action path="/logon"
> > > type="app.web.LogonAction"
> > > name="logonForm"
> > > scope="request"
> > > input="/logon.jsp"
> > > <forward name="success" path="/portal/welcome.jsp"/>
> > > <forward name="failure" path="/portal/error.jsp"/>
> > > </action>
> > >
> > > Where else can I look?
> > >
> > > Thanks,
> > > Jim
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> > >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Controller Form not forwarding to Action
Posted by Laconia Data Systems <we...@laconiadatasystems.com>.
Jim:
could we see the entire struts-config.xml
could you print out the head for your LogonAction so we can see the
Package specification for LogonAction?
Has the LogonAction class been included in the war?
Martin-
----- Original Message -----
From: "Jim Douglas" <jd...@hotmail.com>
To: <us...@struts.apache.org>
Sent: Thursday, December 09, 2004 10:57 AM
Subject: Re: Controller Form not forwarding to Action
> Niall,
> I fixed that but it didn't matter. Any other suggestions?
> Thanks,
> Jim
>
>
> >From: "Niall Pemberton" <ni...@blueyonder.co.uk>
> >Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> >To: "Struts Users Mailing List" <us...@struts.apache.org>
> >Subject: Re: Controller Form not forwarding to Action
> >Date: Thu, 9 Dec 2004 05:23:15 -0000
> >
> >Looks like you have a missing ">" in your struts-config after
> >input="/logon.jsp"....
> >
> > <action path="/logon"
> > type="app.web.LogonAction"
> > name="logonForm"
> > scope="request"
> > input="/logon.jsp">
> > <forward name="success" path="/portal/welcome.jsp"/>
> > <forward name="failure" path="/portal/error.jsp"/>
> > </action>
> >
> >Niall
> >
> >----- Original Message -----
> >From: "Jim Douglas" <jd...@hotmail.com>
> >To: <us...@struts.apache.org>
> >Sent: Thursday, December 09, 2004 3:29 AM
> >Subject: Controller Form not forwarding to Action
> >
> >
> > > To all,
> > > I have an LoginForm which is working fine. The problem is struts is
> >not
> > > forwarding after form validation. It never gets into the LoginAction
> >class.
> > >
> > > This is the output to the log file.
> > >
> > > DEBUG - Validating input form properties
> > > INFO - IN LogonForm CLASS: ActionErrors METHOD
> > > INFO - password = jim
> > > INFO - username = butter
> > > DEBUG - No errors detected, accepting input
> > > DEBUG - Looking for Action instance for class app.web.LogonAction
> > > DEBUG - Creating new Action instance
> > >
> > > This is my struts-config.xml
> > >
> > > <!-- ========== Form Bean Definitions
> >===================================
> > > -->
> > > <form-beans>
> > > <!-- Logon form bean -->
> > > <form-bean name="logonForm"
> > > type="app.web.LogonForm"/>
> > > </form-beans>
> > > <!-- ========== Global Forward Definitions
> >==============================
> > > -->
> > > <global-forwards>
> > > <forward name="logon" path="/logon.jsp"/>
> > > <forward name="success" path="/portal/welcome.jsp"
> > > rewrite="true"/> -->
> > > </global-forwards>
> > >
> > > <action-mappings>
> > > <!-- Process a user logon -->
> > > <action path="/logon"
> > > type="app.web.LogonAction"
> > > name="logonForm"
> > > scope="request"
> > > input="/logon.jsp"
> > > <forward name="success" path="/portal/welcome.jsp"/>
> > > <forward name="failure" path="/portal/error.jsp"/>
> > > </action>
> > >
> > > Where else can I look?
> > >
> > > Thanks,
> > > Jim
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> > >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Controller Form not forwarding to Action
Posted by Jim Douglas <jd...@hotmail.com>.
Niall,
I fixed that but it didn't matter. Any other suggestions?
Thanks,
Jim
>From: "Niall Pemberton" <ni...@blueyonder.co.uk>
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: "Struts Users Mailing List" <us...@struts.apache.org>
>Subject: Re: Controller Form not forwarding to Action
>Date: Thu, 9 Dec 2004 05:23:15 -0000
>
>Looks like you have a missing ">" in your struts-config after
>input="/logon.jsp"....
>
> <action path="/logon"
> type="app.web.LogonAction"
> name="logonForm"
> scope="request"
> input="/logon.jsp">
> <forward name="success" path="/portal/welcome.jsp"/>
> <forward name="failure" path="/portal/error.jsp"/>
> </action>
>
>Niall
>
>----- Original Message -----
>From: "Jim Douglas" <jd...@hotmail.com>
>To: <us...@struts.apache.org>
>Sent: Thursday, December 09, 2004 3:29 AM
>Subject: Controller Form not forwarding to Action
>
>
> > To all,
> > I have an LoginForm which is working fine. The problem is struts is
>not
> > forwarding after form validation. It never gets into the LoginAction
>class.
> >
> > This is the output to the log file.
> >
> > DEBUG - Validating input form properties
> > INFO - IN LogonForm CLASS: ActionErrors METHOD
> > INFO - password = jim
> > INFO - username = butter
> > DEBUG - No errors detected, accepting input
> > DEBUG - Looking for Action instance for class app.web.LogonAction
> > DEBUG - Creating new Action instance
> >
> > This is my struts-config.xml
> >
> > <!-- ========== Form Bean Definitions
>===================================
> > -->
> > <form-beans>
> > <!-- Logon form bean -->
> > <form-bean name="logonForm"
> > type="app.web.LogonForm"/>
> > </form-beans>
> > <!-- ========== Global Forward Definitions
>==============================
> > -->
> > <global-forwards>
> > <forward name="logon" path="/logon.jsp"/>
> > <forward name="success" path="/portal/welcome.jsp"
> > rewrite="true"/> -->
> > </global-forwards>
> >
> > <action-mappings>
> > <!-- Process a user logon -->
> > <action path="/logon"
> > type="app.web.LogonAction"
> > name="logonForm"
> > scope="request"
> > input="/logon.jsp"
> > <forward name="success" path="/portal/welcome.jsp"/>
> > <forward name="failure" path="/portal/error.jsp"/>
> > </action>
> >
> > Where else can I look?
> >
> > Thanks,
> > Jim
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Controller Form not forwarding to Action
Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Looks like you have a missing ">" in your struts-config after
input="/logon.jsp"....
<action path="/logon"
type="app.web.LogonAction"
name="logonForm"
scope="request"
input="/logon.jsp">
<forward name="success" path="/portal/welcome.jsp"/>
<forward name="failure" path="/portal/error.jsp"/>
</action>
Niall
----- Original Message -----
From: "Jim Douglas" <jd...@hotmail.com>
To: <us...@struts.apache.org>
Sent: Thursday, December 09, 2004 3:29 AM
Subject: Controller Form not forwarding to Action
> To all,
> I have an LoginForm which is working fine. The problem is struts is not
> forwarding after form validation. It never gets into the LoginAction
class.
>
> This is the output to the log file.
>
> DEBUG - Validating input form properties
> INFO - IN LogonForm CLASS: ActionErrors METHOD
> INFO - password = jim
> INFO - username = butter
> DEBUG - No errors detected, accepting input
> DEBUG - Looking for Action instance for class app.web.LogonAction
> DEBUG - Creating new Action instance
>
> This is my struts-config.xml
>
> <!-- ========== Form Bean Definitions
===================================
> -->
> <form-beans>
> <!-- Logon form bean -->
> <form-bean name="logonForm"
> type="app.web.LogonForm"/>
> </form-beans>
> <!-- ========== Global Forward Definitions ==============================
> -->
> <global-forwards>
> <forward name="logon" path="/logon.jsp"/>
> <forward name="success" path="/portal/welcome.jsp"
> rewrite="true"/> -->
> </global-forwards>
>
> <action-mappings>
> <!-- Process a user logon -->
> <action path="/logon"
> type="app.web.LogonAction"
> name="logonForm"
> scope="request"
> input="/logon.jsp"
> <forward name="success" path="/portal/welcome.jsp"/>
> <forward name="failure" path="/portal/error.jsp"/>
> </action>
>
> Where else can I look?
>
> Thanks,
> Jim
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org