Hi All, Migrating application developed in 2.0.11 to 2.1.8.1 struts2 version, I did following changes web.xml file changed below line FROM <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> TO <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> Removed struts2 2.0.11 jar files and added 2.1.8.1 jar files Changed struts.xml file with below entries <interceptors> <interceptor name="login" class="gov.action.LoginSessionInterceptor" /> <interceptor-stack name="defaultStack"> <interceptor-ref name="exception"/> <interceptor-ref name="alias"/> <interceptor-ref name="servletConfig"/> <interceptor-ref name="prepare"/> <interceptor-ref name="i18n"/> <interceptor-ref name="chain"/> <interceptor-ref name="debugging"/> <interceptor-ref name="profiling"/> <interceptor-ref name="scopedModelDriven"/> <interceptor-ref name="modelDriven"/> <interceptor-ref name="fileUpload"/> <interceptor-ref name="checkbox"/> <interceptor-ref name="staticParams"/> <interceptor-ref name="params"/> <interceptor-ref name="conversionError"/> <interceptor-ref name="login"/> <interceptor-ref name="validation"> <param name="excludeMethods">input,back,cancel,browse</param> </interceptor-ref> <interceptor-ref name="workflow"> <param name="excludeMethods">input,back,cancel,browse</param> </interceptor-ref> </interceptor-stack>
</interceptors> Having following action entry <action name="login!*" class="gov.action.LoginAction" method="{1}"> <result name="input">/pages/login.jsp</result> <result name="success" type="redirect">/complaints.action</result> </action> In login.jsp file, I have following s:submit button <s:submit value="Login" type="submit" method="checkLogin" cssClass="ibutton" /> When I press this button it should call 'checkLogin' method in LoginAction but it is not calling this method, it is just calling execute() method. I even tried changing above line to name="method:checkLogin" but it is calling exeute() method only?? The same working fine in struts2.0.11 but not in this new release? can anyone please let me know how to correct his problem(calling method directly rather than execute method). Thanks in advance. Regards, Sharath.