JiveJdon Community Forums
在线283人   首页   主题总表   培训咨询   精华   查搜   注册    登陆
首页 » 论坛 » J2EE/JavaEE/JEE/EJB/JSF等技术讨论
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 4 回复 / 1
 发表新帖子   回复该主题贴
Javalga

悄悄话
发表文章: 139
注册时间: 2004年08月26日 15:40
初作struts 报错误 2005年04月16日 13:43 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection

以下为Struts in action 中的例子配置:运行时报上面的错误
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<form-beans>
<form-bean name="RegisterForm" type="com.sxf.struts.actionform.RegisterForm" />
</form-beans>
<action-mappings type="org.apache.struts.action.ActionMapping">
<action path="/struts" type="com.sxf.struts.action.register" name="RegisterForm" input="/register.jsp">
<forward name="success" path="/success.html" />
<forward name="failure" path="/failure.html" />
</action>
</action-mappings>
</struts-config>


以下为register.jsp文件:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="ht" %>
<ht:form action="struts.do">
UserName:<ht:text property="username"/><br>
enter password:<ht:password property="password1"/><br>
re-enter password:<ht:password property="password2"/><br>
<ht:submit value="Register"/>
</ht:form>
这个问题怎么解决啊??????????
是配置的问题吗???
Javalga

悄悄话
发表文章: 139
注册时间: 2004年08月26日 15:40
Re: 初作struts 报错误 2005年04月16日 13:46 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
regiser.jsp

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="ht" %>
<ht:form action=
"struts.do">
UserName:<ht:text property=
"username"/><br>
enter password:<ht:password property=
"password1"/><br>
re-enter password:<ht:password property=
"password2"/><br>
<ht:submit value=
"Register"/>
</ht:form>

以下为配置文件:


<?xml version=
"1.0" encoding="UTF-8"?>
<!DOCTYPE Struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<form-beans>
<form-bean name=
"RegisterForm" type="com.sxf.struts.actionform.RegisterForm" />
</form-beans>
<action-mappings type=
"org.apache.struts.action.ActionMapping">
<action path=
"/struts" type="com.sxf.struts.action.register" name="RegisterForm" input="/register.jsp">
<forward name=
"success" path="/success.html" />
<forward name=
"failure" path="/failure.html" />
</action>
</action-mappings>
</struts-config>


这个错误到底是怎么回事啊?
Javalga

悄悄话
发表文章: 139
注册时间: 2004年08月26日 15:40
Re: 初作struts 报错误 2005年04月16日 13:47 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
regiser.jsp

<!--<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="ht" %>
<ht:form action=
"struts.do">
UserName:<ht:text property=
"username"/><br>
enter password:<ht:password property=
"password1"/><br>
re-enter password:<ht:password property=
"password2"/><br>
<ht:submit value=
"Register"/>
</ht:form>-->

以下为配置文件:


<!--<?xml version=
"1.0" encoding="UTF-8"?>
<!DOCTYPE Struts-config PUBLIC
"-//Apache Software //Foundation//DTD Struts Configuration //1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<form-beans>
<form-bean name=
"RegisterForm" type="com.sxf.struts.actionform.RegisterForm" />
</form-beans>
<action-mappings type=
"org.apache.struts.action.ActionMapping">
<action path=
"/struts" type="com.sxf.struts.action.register" name="RegisterForm" input="/register.jsp">
<forward name=
"success" path="/success.html" />
<forward name=
"failure" path="/failure.html" />
</action>
</action-mappings>
</struts-config>-->


这个错误到底是怎么回事啊?
Javalga

悄悄话
发表文章: 139
注册时间: 2004年08月26日 15:40
Re: 初作struts 报错误 2005年04月16日 14:02 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
晕死,这个论坛这个都处理不了啊,code标记没有效果啊
banq

悄悄话
发表文章: 9316
注册时间: 2002年08月03日 17:08
Re: 初作struts 报错误 2005年04月16日 15:30 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
Cannot find ActionMappings or ActionFormBeans collection

很明显,你试图使用Jsp的Collection相关标签 ,但是没有发现ActionFormBeans的Collection,

注意标签中name和property用法。
这个主题有 4 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
正在读取,请等待...
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
 

手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com
anti spam