H
Hari Om
I am working on simple Logon Application.
I am able to Logon to my Logon application and when I click the
Signout Link it gives me following errors wonder why:
-------------------------------------------------------------------------
HTTP Status 500 - No action instance for path /logoff could be created
-------------------------------------------------------------------------
I have defined Action Mappings for "logoff" in my struts.xml but still
get this error. My struts.xml is:
-----------------------------------------------------------------------------
<struts-config>
<form-beans>
<form-bean name="LogonForm" type="app.LogonForm" />
</form-beans>
<global-forwards type="org.apache.struts.action.ActionForward">
<forward name="logoff" path="/logoff.do" />
<forward name="logon" path="/logon.do" />
<forward name="welcome" path="/welcome.do" />
</global-forwards>
<action-mappings type="org.apache.struts.action.ActionMapping">
<action path="/welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/welcome.jsp" />
<action path="/logon"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/logon.jsp" />
<action path="/logonSubmit" type="app.LogonAction"
name="LogonForm" scope="request" validate="true"
input="/pages/logon.jsp">
<forward name="success" path="/pages/welcome.jsp" />
</action>
<action path="/logoff" type="app.LogoffAction">
<forward name="success" path="/pages/welcome.jsp" />
</action>
</action-mappings>
<message-resources parameter="resources/application.properties" />
</struts-config>
-----------------------------------------------------------------------------
My second question is:
I try to submit the form without entering Username and password
......BUT I do not receive any errors which I have defined in
APPLICATION.PROPERTIES as:
I am able to Logon to my Logon application and when I click the
Signout Link it gives me following errors wonder why:
-------------------------------------------------------------------------
HTTP Status 500 - No action instance for path /logoff could be created
-------------------------------------------------------------------------
I have defined Action Mappings for "logoff" in my struts.xml but still
get this error. My struts.xml is:
-----------------------------------------------------------------------------
<struts-config>
<form-beans>
<form-bean name="LogonForm" type="app.LogonForm" />
</form-beans>
<global-forwards type="org.apache.struts.action.ActionForward">
<forward name="logoff" path="/logoff.do" />
<forward name="logon" path="/logon.do" />
<forward name="welcome" path="/welcome.do" />
</global-forwards>
<action-mappings type="org.apache.struts.action.ActionMapping">
<action path="/welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/welcome.jsp" />
<action path="/logon"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/logon.jsp" />
<action path="/logonSubmit" type="app.LogonAction"
name="LogonForm" scope="request" validate="true"
input="/pages/logon.jsp">
<forward name="success" path="/pages/welcome.jsp" />
</action>
<action path="/logoff" type="app.LogoffAction">
<forward name="success" path="/pages/welcome.jsp" />
</action>
</action-mappings>
<message-resources parameter="resources/application.properties" />
</struts-config>
-----------------------------------------------------------------------------
My second question is:
I try to submit the form without entering Username and password
......BUT I do not receive any errors which I have defined in
APPLICATION.PROPERTIES as: