jsp页面部分代码
<frameset frameborder="no" rows="100px, * , 30px">
<frame name="top" scrolling="no"
src="${pageContext.request.contextPath}/ui_topUI.action">
<frameset cols="180px, *" frameborder="no">
<frame name="left" scrolling="no"
src="${pageContext.request.contextPath}/ui_leftUI.action">
<frame name="right" scrolling="no"
src="${pageContext.request.contextPath}/ui_rightUI">
</frameset>
<frame name="bottom" scrolling="no"
src="${pageContext.request.contextPath}/ui_bottomUI.action">
</frameset>
此时eclipse报红色感叹号,错误为javax.servlet.jsp.jspException can not reslove a type
从网上查得知,缺少jsp-api.jar
我最初是把这个jar包加到了工程WEB/INF/lib目录下,运行又报了错
空指针异常
继续往上搜索答案,终于找到原因了
不能直接把这个jar包加到了工程WEB/INF/lib目录下,而是需要引用tomcat/lib下面的jsp-lib.jar包
再次运行,成功