One more comment:
=====================
Tiles 3.0.1 is used in the new struts package, but it will cause
"java.lang.NoClassDefFoundError:
org/apache/tiles/web/startup/TilesListener" exception.
So, I could only use 2.2.2.2.
login() method is not called in the action class - this is the problem.
Any help?
Good morning,
Tried the new version15.3, but failed:
login() method is not called at all.
(1) login.jsp
================
<s:submit value="Login"
theme="simple"
action="loginProcessLoginAction" />
(2) ProcessLoginAction.java
============================
public class ProcessLoginAction extends ActionSupport
{
private static final long serialVersionUID = -2334484448186776413L;
public String login() throws Exception
{
......
return SUCCESS;
}
}
(3) web.xml
==============
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>action</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>AuthenticatedFilter</filter-name>
<url-pattern>/Action/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
...
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
...
<listener>
<listener-class>
org.apache.struts2.tiles.StrutsTilesListener
</listener-class>
</listener>
(4) libs used shown in the attached libs.txt file
===========================
(5) struts.xml
===============
<package name="Login" namespace="/Login" extends="tiles-default">
<result-types>
<result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult" />
</result-types>
<action name="*ProcessLoginAction" method="{1}"
class="ProcessLoginAction">
<result name="success" type="tiles">login_main_page</result>
......
</action>
.....
Can someone help why login() method is not called ?
Thanks a lot!
Emi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]