title: Unknown tag tiles:insertAttribute
body: <p>I'm trying to use Tiles to show a <code>div</code> in JSP page, but Eclipse shows me a warning like this:</p>
  <pre><code>Unknown tag (tiles:insertAttribute)
  </code></pre>
  <p><strong>This is my <code>index.jsp</code>:</strong></p>
  <pre class="lang-jsp prettyprint-override"><code>&lt;nav class=&quot;navbar navbar-inverse&quot;&gt;     
      &lt;tiles:insertAttribute name=&quot;header&quot; /&gt;
  &lt;/nav&gt;
  &lt;!--  Main container  --&gt;
  &lt;div class=&quot;container-fluid text-center&quot;&gt;
      &lt;div class=&quot;row content&quot;&gt;
  &lt;!-- Right menu --&gt;     
          &lt;div class=&quot;col-sm-2 sidenav&quot;&gt;
              &lt;tiles:insertAttribute name=&quot;menu&quot; /&gt;
          &lt;/div&gt;
  </code></pre>
  <p><strong>This is my <code>tiles.xml</code>:</strong></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
  
  &lt;!DOCTYPE tiles-definitions PUBLIC
     &quot;-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN&quot;
     &quot;http://tiles.apache.org/dtds/tiles-config_2_0.dtd&quot;&gt;
  &lt;tiles-definitions&gt;
      &lt;definition name=&quot;index&quot; template=&quot;/index.jsp&quot;&gt;
          &lt;put-attribute name=&quot;title&quot; value=&quot;&quot; /&gt;
          &lt;put-attribute name=&quot;header&quot; value=&quot;/Header.jsp&quot; /&gt;
          &lt;put-attribute name=&quot;menu&quot; value=&quot;/Menu.jsp&quot; /&gt;
          &lt;put-attribute name=&quot;body&quot; value=&quot;/Body.jsp&quot; /&gt;
          &lt;put-attribute name=&quot;footer&quot; value=&quot;/Footer.jsp&quot; /&gt;
      &lt;/definition&gt;
  </code></pre>
  <p><strong>And this in my <code>web.xml</code>:</strong></p>
  <pre class="lang-xml prettyprint-override"><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;tilesDefinitions&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/tiles.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  <hr />
  <p><strong>EDIT:</strong></p>
  <p>This is part of my <code>pom.xml</code>, if need more info, please ask me.</p>
  
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.cice.adelagd&lt;/groupId&gt;
  &lt;artifactId&gt;proyectoNUS&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;proyectoNUS Maven Webapp&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.dom4j&lt;/groupId&gt;
          &lt;artifactId&gt;dom4j&lt;/artifactId&gt;
          &lt;version&gt;2.1.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
          &lt;version&gt;1.7.25&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.geronimo.specs&lt;/groupId&gt;
          &lt;artifactId&gt;geronimo-jta_1.1_spec&lt;/artifactId&gt;
          &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.2.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss&lt;/groupId&gt;
          &lt;artifactId&gt;jandex&lt;/artifactId&gt;
          &lt;version&gt;2.0.4.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.javassist&lt;/groupId&gt;
          &lt;artifactId&gt;javassist&lt;/artifactId&gt;
          &lt;version&gt;3.22.0-GA&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;
          &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt;
          &lt;version&gt;3.3.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.antlr&lt;/groupId&gt;
          &lt;artifactId&gt;antlr&lt;/artifactId&gt;
          &lt;version&gt;3.5.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.44&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;3.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
          &lt;artifactId&gt;struts2-core&lt;/artifactId&gt;
          &lt;version&gt;2.5.14.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.10.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
          &lt;version&gt;2.10.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;5.2.12.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate.common&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-commons-annotations&lt;/artifactId&gt;
          &lt;version&gt;5.0.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;finalName&gt;proyectoNUS&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;9.4.7.v20170914&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;webApp&gt;
                      &lt;contextPath&gt;/${project.build.finalName}&lt;/contextPath&gt;
                  &lt;/webApp&gt;
                  &lt;stopKey&gt;CTRL+C&lt;/stopKey&gt;
                  &lt;stopPort&gt;8999&lt;/stopPort&gt;
                  &lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt;
                  &lt;scanTargets&gt;
                      &lt;scanTarget&gt;src/main/webapp/WEB-INF/web.xml&lt;/scanTarget&gt;
                  &lt;/scanTargets&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>