Note that there are some explanatory texts on larger screens.

plurals
  1. POstruts 2 tiles NoSuchDefinitionException
    primarykey
    data
    text
    <p>I am getting this exception when using struts 2 with tiles</p> <p>org.apache.tiles.definition.NoSuchDefinitionException: /index.jsp</p> <p>//tiles.xml</p> <pre><code>&lt;tiles-definitions&gt; &lt;definition name="baseLayout" template="/index.jsp"&gt; &lt;put-attribute name="title" value="/Template" /&gt; &lt;put-attribute name="header" value="/Header.jsp" /&gt; &lt;put-attribute name="menu" value="/Menu.jsp" /&gt; &lt;put-attribute name="body" value="/body.jsp" /&gt; &lt;put-attribute name="footer" value="/Footer.jsp" /&gt; &lt;/definition&gt; &lt;tiles-definitions&gt; </code></pre> <p>//index.jsp</p> <pre><code>&lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;tiles:insertAttribute name="header"/&gt; &lt;tiles:insertAttribute name="footer"/&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>//web.xml</p> <pre><code>&lt;listener&gt; &lt;listener-class&gt;org.apache.struts2.tiles.StrutsTilesListener&lt;/listener-class&gt; &lt;/listener&gt; &lt;context-param&gt; &lt;param-name&gt;org.apache.tiles.impl.BasicTilesContainer. DEFINITIONS_CONFIG&lt;/param-name&gt; &lt;param-value&gt;/WEB-INF/tiles.xml&lt;/param-value&gt; &lt;/context-param&gt; </code></pre> <p>//struts.xml</p> <pre><code> &lt;package name="default" namespace="/test" extends="struts-default"&gt; &lt;result-types&gt; &lt;result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult" /&gt; &lt;/result-types&gt; &lt;action name="login" class="com.medics.action.LoginAction"&gt; &lt;result name="SUCCESS" type="tiles"&gt;/index.jsp&lt;/result&gt; &lt;/action&gt; &lt;/package&gt; </code></pre> <p>I have searched a lot but found nothing</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload