页面在WEB-INF中,但struts的from标签提示路径错误
org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/aqfw/content.jsp:85 <body> <div class="ground"> <html:form action="apply.do" name="form" styleId="applyForm"> <div class="top_nr"> <div class="top_logo"><img src="images/er_03.gif" /></div> <div class="er_top"><img src="images/er_04.gif" /></div>
javax.servlet.ServletException: Must specify type attribute if name is specified org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:843) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776) org.apache.jsp.WEB_002dINF.aqfw.content_jsp._jspService(content_jsp.java:602) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.brjl.jjz.sjcj.common.StrutsPathFilter.doFilter(StrutsPathFilter.java:45) com.brjl.jjz.sjcj.common.EncodingFilter.doFilter(EncodingFilter.java:57)
有人遇到这种情况吗
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题解决了,是<html:from>标签里的 name 属性,这个属性不需要显示配置,struts会自动分配一个属性