网页显示这个错误 org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/basic.jsp at line 2017: </h2>
18:
19:
20: <html:form action="/a.do" method="post">
21:
22: your name:
23: <html:text property="name" size="16" maxlength="16" />
控制台显示
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean demoForm on action /a.do 错误 struts-config.xml 配置如下
<form-beans> <form-bean name="DemoForm" type="demo.form.DemoForm"/>
</form-beans>
<action path = "/a"
type = "demo.action.BasicAction"
name = "demoForm"
scope = "session"
>
<forward name="basicdemo" path="/jsp/add.jsp" />
</action>
怎么就不显示jsp呢
18:
19:
20: <html:form action="/a.do" method="post">
21:
22: your name:
23: <html:text property="name" size="16" maxlength="16" />
控制台显示
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean demoForm on action /a.do 错误 struts-config.xml 配置如下
<form-beans> <form-bean name="DemoForm" type="demo.form.DemoForm"/>
</form-beans>
<action path = "/a"
type = "demo.action.BasicAction"
name = "demoForm"
scope = "session"
>
<forward name="basicdemo" path="/jsp/add.jsp" />
</action>
怎么就不显示jsp呢
解决方案 »
- Exception loading sessions from persistent storage
- 看看什么叫 回复内容太短了! !!!!!!!!!!
- 有没有懂迅雷专用链的?
- 求JAVA自动替换页面内图片连接的办法
- [求助]逻辑错误,初学者求教!
- include 问题
- 做个调查,现在企业一般用JSP做WEB的多不多?
- 登陆成功后显示“登陆成功”,5秒钟后显示另外的也面(index.jsp),如何做呀?
- jsp可以做出类似csdn论坛这样的分成几部分的页面吗?要用什么技术呢?
- 你们一般用什么作jsp编辑器,请推荐一个下载地址给小弟,谢谢
- 请教struts2 token问题
- jsp 百分号中怎么引用 迭代标签中的Item项
要区分大小写的。
要加“/”吗?
还有,大小写的命名一定也要注意呀。
你的web.xml里边的servlet已经映射为*.do了
2、 <action path = "/a"
type = "demo.action.BasicAction"
name = "demoForm"
scope = "session"
>中的name改成"DemoForm"
2. form-bean中的name是唯一标示,和action中的name必需一致.