title: Undefined attribute name (role) , eclipse
body: <p>I have a following file structure</p>
  
  <p>WebContent->bootstrap-></p>
  
  <p>js</p>
  
  <p>css</p>
  
  <p>img</p>
  
  <p>WebContent->index.jsp</p>
  
  <p>None of the following two urls are helping to resolve undefined attribute error.</p>
  
  <p><a href="https://stackoverflow.com/questions/12988208/undefined-attribute-name-data-toggle">Undefined attribute name (data-toggle)</a></p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script type="text/javascript" src="bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container"&gt;
  
  &lt;button type="submit" class="btn btn-default"&gt;Submit&lt;/button&gt;
  &lt;span class="label label-primary"&gt;Primary&lt;/span&gt;
  &lt;span class="label label-success"&gt;Success&lt;/span&gt;
  &lt;span class="label label-info"&gt;Info&lt;/span&gt;
  &lt;span class="label label-warning"&gt;Warning&lt;/span&gt;
  &lt;span class="label label-danger"&gt;Danger&lt;/span&gt;
  &lt;a href="#"&gt;Inbox &lt;span class="badge"&gt;42&lt;/span&gt;&lt;/a&gt;
  
  
  &lt;/div&gt;
  &lt;div class="jumbotron"&gt;
    &lt;h1&gt;Hello, world!&lt;/h1&gt;
    &lt;p&gt;...&lt;/p&gt;
    &lt;p&gt;&lt;a class="btn btn-primary btn-lg" role="button"&gt;Learn more&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div class="dropdown"&gt;
    &lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"&gt;
      Dropdown
      &lt;span class="caret"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"&gt;
      &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
      &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
      &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
      &lt;li role="presentation" class="divider"&gt;&lt;/li&gt;
      &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Eclipse version details are listed below.
  Spring Tool Suite </p>
  
  <p>Version: 3.6.1.RELEASE
  Build Id: 201408250818
  Platform: Eclipse Luna (4.4)</p>
  
  <p>Copyright (c) 2007 - 2014 Pivotal Software, Inc.
  All rights reserved. Visit <a href="http://spring.io/tools/sts" rel="nofollow noreferrer">http://spring.io/tools/sts</a></p>
  
  <p>This product includes software developed by the
  Apache Software Foundation <a href="http://www.apache.org" rel="nofollow noreferrer">http://www.apache.org</a></p>