问答详情
源自:2-6 页面调用

我按照步骤来的为什么报错呢? /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.

/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.


提问者:Jack_LL 2016-03-31 22:34

个回答

  • 城堡日记
    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试试。