I'm writing a simple application using
struts & trying to deploy it on
Tomcat Server.
First page of an application just accepts two values(userName and password) from user & passes onto next page via formbean, which then gets displayed on that page.
But my bean never gets populated i.e. no reset(), validate() and setter method gets invoked. THE request just gets forwarded to next page and no value appears there.
Please find below the struts-config.xml file I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="loginForm" type="forms.LoginForm">
</form-bean>
</form-beans>
<!-- Action Mappings -->
<action-mappings>
<action name="loginForm" path="/login" scope="session" type="action.LoginAction">
<forward name="success" path="/login.jsp">
</forward>
</action>
</action-mappings>
<!-- Message Resources -->
<message-resources parameter="resource.ApplicationResources"/>
</struts-config>
I have crosschecked the spelling of class names. My formbean also extends ActionForm.
What can be the possible causes, which prevents the bean to come into picture. Any help would be highly appreciated.
Thanks.