Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to fire struts2 action from tiles2 definition  RSS feed

Ramesh David
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I was not able to call struts2 action from tiles 2 definition. Basically i'm calling index.jsp and that calls welcome.action. After welcome.action is done and suppose to call st2action.action (another struts 2 action) from tiles definition but it is not. I'm getting following error message. Please see below information

The requested resource (/struts1/s2action) is not available

Thanks in advance,





<%@ page contentType="text/html" %>
<%@ taglib uri="" prefix="c" %>
<c:redirect url="http://localhost:8080/struts1/welcome.action"/>

<?xml version="1.0" encoding="UTF-8" ?>
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<package name="Webtest" extends="struts-default">
<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
<action name="st2action" class="com.action.st2Action" >
<result name="SUCCESS">/jsp/st2/st2.jsp</result>
<action name="welcome" class="com.action.welcome" >
<result name="SUCCESS" type="tiles">both</result>

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
<definition name="both" template="/jsp/st2/layout.jsp">
<put-attribute name="title" value="This is the title."/>
<put-attribute name="header" value="/jsp/header.jsp"/>
<put-attribute name="body" value="st2action.action"/>
<put-attribute name="footer" value="/jsp/footer.jsp"/>

Env: Apache tomcat6/struts2.0.5/tiles 2.04
Chan Yan
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Ramesh David,

Did you figure out how to fire action in tiels.xml (in struts2/tiles2)? I have same problems now.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!