有错?
LogIn.jsp 页面:
<html:form action="/Login.do" method="post">
struts-config.xml文件:
<action-mappings >
<action
attribute="logInForm"
name="logInForm"
path="/Login"
scope="request"
type="LogInAction"
validate="true"
input="/error.jsp"
/>
打开 http://127.0.0.1:8080/Struts_Demo/LogIn.jsp 出现如下错误
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /LogIn.jsp at line 31
28:
29:
30:
31: <html:form action="/Login.do" method="post">
32:<html:text property="userName"></html:text><br>
33:<html:password property="userPassword"></html:password><br>
34:<input type="submit" value="鐧婚檰"><br>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.LogIn_jsp._jspService(LogIn_jsp.java:87)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:759)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.LogIn_jsp._jspx_meth_html_005fform_005f0(LogIn_jsp.java:179)
org.apache.jsp.LogIn_jsp._jspx_meth_html_005fhtml_005f0(LogIn_jsp.java:132)
org.apache.jsp.LogIn_jsp._jspService(LogIn_jsp.java:78)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
这是为什么 是不是和前两个文件的这些部分有关? login的大小写也都试过了,没有用哦
其他文件还有
fail.jsp, error.jsp, success.jsp, LogInActionForm.java, LogInAction.java
相关知识
教师节送花选择这些花准没有错,老师喜欢,价格也不贵!
是在种植床内(也可用盆栽花卉组摆,摆脱了种植床的限制)对观赏花卉作规则式种植的运用形式以及形..
季节交替
带你深入了解西方兰花文化
什么是科技兰花
最不讨喜圣诞节礼物?台网络调查:鲜花玩偶上榜
芦淞园林:精细古树养护 回应市民期盼
紫色系花束。#生日花束 #花礼定制 #同城好店推荐 #紫精灵
【步骤图】烘烤玫瑰花瓣的做法
花卉是否缺水,学会判断轻松养花,教你技巧
原文链接: 有错? https://www.huajiangbk.com/newsview392237.html
| 上一篇: 山茶花常见病虫害防治 | 下一篇: 基于WEB的植物病虫害专家系统的... |
推荐分享

- 1明日花キララ:明日花绮罗年度... 17932
- 2明日花キララ(明日花绮罗)经... 10306
- 3兰花叶子扭的是什么兰 8068
- 4君子兰什么品种最名贵 十大名... 6672
- 5十大致癌花卉排行榜,哪些花卉... 6389
- 6李晓明工笔牡丹(魏紫)《牡丹... 6166
- 7家庭养花知识大全 家庭养花有... 5684
- 8家庭养花风水知识 家庭养花“... 5416
- 9花圈挽联怎么写? 4998
- 10世界上最名贵的10种兰花图片... 4861




