我按照步骤来的为什么报错呢? /users/Users_login.jsp (line: 2, column: 40) File "/struts-tags" not found description The server encountered an internal error that prevented it from fulfilling this request.

来源:2-6 页面调用

Jack_LL

2016-03-31 22:34

/users/Users_login.jsp (line: 2, column: 40) File "/struts-tags" not found

description The server encountered an internal error that prevented it from fulfilling this request.


写回答 关注

2回答

  • 城堡日记
    2016-04-02 19:20:53

    我刚才试了一下,工程中要有structs.xml和web.xml文件才行 ,没有的话是会出错的


  • 城堡日记
    2016-04-02 16:35:59

    首先,你要确定  包含struts-tags的jar包加入classpath  
    其次  <%@ taglib prefix="s" uri="/struts-tags" %> 这个标签,手动写一下,prifix=“”里面的内容,用alt+/ 添加(看看eclipse能不能有提示)。
     第三,以上还是不行的话,换一个tomcat试试。

使用Struts2+Hibernate开发学生信息管理功能

Strust2+Hibernate整合开发案例,Java Web开发技能更上一层楼

80694 学习 · 797 问题

查看课程

相似问题