Hi! I am having problem when I try to submit the form which is having action path as "registeraction". Tomact logs also showing no error .Would you please help me in rectifying this? For doing above application I am using struts1.3 and tomcat 6.0.26 I am attaching the code .Please find the attachment.
Thanks and regards, Naresh Pallothu.
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <!-- <init-param> <param-name>definitions-config</param-name> <param-value>/WEB-INF/tiles-defs.xml</param-value> </init-param> --> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <!-- <init-param> <param-name>chainConfig</param-name> <param-value>/WEB-INF/chain-config.xml</param-value> </init-param> --> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>Home.jsp</welcome-file> </welcome-file-list> </web-app>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans> <form-bean name="loginform" type="org.apache.struts.action.DynaActionForm"> <form-property name="uname" type="java.lang.String"/> <form-property name="password" type="java.lang.String"/> <form-property name="user" type="java.lang.String"/> </form-bean> <form-bean name="jobseekerregisterform" type="com.integratedelivaryinc.forms.JobseekerRegisterForm"/> <form-bean name="registerform" type="org.apache.struts.action.DynaActionForm"/> <!-- form bean for QuickSearchForm --> <form-bean name="quicksearchform" type="com.integratedelivaryinc.forms.QuickSearchForm" /> </form-beans> <global-exceptions /> <global-forwards> <forward name="success" path="/success.jsp" redirect="false"/> <forward name="failure" path="/failure.jsp" redirect="false"/> </global-forwards> <action-mappings > <!-- transfers control to JobSeekerLoginMain.jsp --> <action path="/jobseekerlogin" type="org.apache.struts.actions.ForwardAction" parameter="/JobSeekerLoginMain.jsp"/> <!-- transfers control to EmployerLoginMain.jsp --> <action path="/employerlogin" type="org.apache.struts.actions.ForwardAction" parameter="/EmployerLoginMain.jsp"/> <!-- transfers control to RecruiterLoginMain.jsp --> <action path="/recruiterlogin" type="org.apache.struts.actions.ForwardAction" parameter="/RecruiterLoginMain.jsp"/> <!-- <action path="/home" type="org.apache.struts.actions.ForwardAction" parameter="/Home.jsp"/> --> <!-- transfers the control to RegisterMain.jsp --> <action path="/register" type="org.apache.struts.actions.ForwardAction" name="registerform" parameter="/RegisterMain.jsp"/> <!-- transfers control to QuickSearchMain.jsp --> <action path="/searchmain" type="org.apache.struts.actions.ForwardAction" parameter="/QuickSearchMain.jsp"/> <action attribute="loginform" name = "loginform" path = "/loginaction" scope = "request" type = "com.integratedelivaryinc.actions.LoginAction" cancellable = "true" parameter="user"> <forward name="jobseekersuccess" path="/JobSeekerLoginSuccess.jsp"/> <forward name="jobseekerfailure" path="/JobSeekerLoginFailure.jsp"/> </action> <action name="jobseekerregisterform" path="/registeraction" type="com.integratedelivaryinc.actions.RegisterAction" scope="request" cancellable="true"> </action> <action name="quicksearchform" path="/quicksearchaction" type="com.integratedelivary.actions.QuickSearchAction" cancellable="true" /> </action-mappings> <message-resources parameter="com.integratedelivary.struts.ApplicationResources" /> <!-- Tiles plug in configuration --> <plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" /> <set-property property="moduleAware" value="true" /> </plug-in> </struts-config>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org