jsp编译时报错,哪位给看看吧。谢谢

zhongzuo1981 2004-09-20 10:40:53
Translation of /confirmation.jsp failed: (line 2): page directive contentType at /taglibs.jsp:2 previously defined at /taglibs.jsp:2

这是啥意思啊??
...全文
83 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhongzuo1981 2004-09-23
  • 打赏
  • 举报
回复
对阿。原来是这么回事。谢谢
luckhk 2004-09-23
  • 打赏
  • 举报
回复
你是不是在看飞思新出的《精通struts》阿?
因为confirmation.jsp里边有两个<%@ include file="……" %>
<%@ include file="taglibs.jsp" %>
<%@ include file="footer.jsp" %>
所以<%@ page contentType="text/html;charset=UTF-8" language="java" %>就重复了

你把footer.jsp里的<%@ include file="taglibs.jsp" %>去掉就可以了。别的页也是
redlaputa 2004-09-21
  • 打赏
  • 举报
回复
去掉confirmation.jsp的 <%@ page contentType=""%>,
july_typhoon 2004-09-20
  • 打赏
  • 举报
回复
你静态引入的jsp里面有<%@ page contentType=""%>,把它去掉

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧