I am working on a 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:
-------------------------------------------------------------------------
error.username.required=<LI>Username is required</LI>
error.password.required=<LI>Password is required</LI>
-------------------------------------------------------------------------
Any help on this is appreciated!
THANKS for your great book!
_________________________________________________________________
Instant message with integrated webcam using MSN Messenger 6.0. Try it now
FREE! http://msnmessenger-download.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@(protected)
For additional commands, e-mail: struts-user-help@(protected)