Option One:
Only you need to add a header in the jsp:
1 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
Option II:
Reference blog: https://blog.csdn.net/bymyself11/article/details/51944151
Programming eclipse in error: Undefined attribute name (role) Description This property is no role version does not support issues.
1 <span style="font-family:SimSun;"> 2 <ul class="nav nav-tabs" id="ul1"> 3 <li role="presentation"><a href="#">hello</a></li> 4 <li role="presentation"><a href="#">文件夹</a></li> 5 <li role="presentation"><a href="#">hhhhh</a></li> 6 </ul> 7 </span>
We just need role programmed data-role attribute to
1 <ul class="nav nav-tabs" id="ul1"> 2 <li data-role="presentation"><a href="#">hello</a> 3 </li><li data-role="presentation"><a href="#">文件夹</a></li> 4 <li data-role="presentation"><a href="#">hhhhh</a></li> 5 </ul>