Attribute name invalid for tag form according to TLD异常解决办法_gaigai_百度空间
2014-04-01 15:51
489 查看
body{ font-family: "Microsoft YaHei UI","Microsoft YaHei",SimSun,"Segoe UI",Tahoma,Helvetica,Sans-Serif,"Microsoft YaHei", Georgia,Helvetica,Arial,sans-serif,宋体, PMingLiU,serif; font-size: 10.5pt; line-height: 1.5;}html, body{ }h1 { font-size:1.5em; font-weight:bold;}h2 { font-size:1.4em; font-weight:bold;}h3 { font-size:1.3em; font-weight:bold;}h4 { font-size:1.2em; font-weight:bold;}h5 { font-size:1.1em; font-weight:bold;}h6 { font-size:1.0em; font-weight:bold;}img { border:0; max-width: 100%;}blockquote { margin-top:0px; margin-bottom:0px;}table { border-collapse:collapse; border:1px solid #bbbbbb;}td { border-collapse:collapse; border:1px solid #bbbbbb;}Attribute name invalid for tag form according to TLD异常解决办法_gaigai_百度空间
一般出现这种问题,都是form表单的name属性作怪,因为在Html:FORM里面没有name属性,吧这个属性去掉就OK
确保引入标签库:<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html:form name="loginForm" action="hello.jsp" method="post" onsubmit="return login(this)">
1 Struts标签<html:form>中有个属性name,设置这个属性,就会带来这样的错误。所以我建议大家尽量不要设置这个属性,设置了action后,name会自动生成一个action对应的actionform。
2 onsubmit是小写的,注意taglib是区分大小写的
下面的是错误的写法:
<html:form name="loginForm" action="hello.jsp" method="post" onSubmit="return login(this)">
来自为知笔记(Wiz)
Attribute name invalid for tag form according to TLD异常解决办法
在Eclipse中开发Struts应用程序时,当调用JSP时遇到Attribute name invalid for tag form according to TLD异常,解决办法是将JSP文件中<htm:form></html:form>修改为<form></form>.笔者试途添加JSTL类库,未能解决问题,也可能是Struts包中相关类库未添加.一般出现这种问题,都是form表单的name属性作怪,因为在Html:FORM里面没有name属性,吧这个属性去掉就OK
确保引入标签库:<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html:form name="loginForm" action="hello.jsp" method="post" onsubmit="return login(this)">
1 Struts标签<html:form>中有个属性name,设置这个属性,就会带来这样的错误。所以我建议大家尽量不要设置这个属性,设置了action后,name会自动生成一个action对应的actionform。
2 onsubmit是小写的,注意taglib是区分大小写的
下面的是错误的写法:
<html:form name="loginForm" action="hello.jsp" method="post" onSubmit="return login(this)">
来自为知笔记(Wiz)
相关文章推荐
- Attribute name invalid for tag form according to TLD异常解决办法
- Attribute name invalid for tag property according to TLD异常错误
- STRUTS开发问题? Attribute name invalid for tag form according to TLD
- Attribute name invalid for tag property according to TLD 异常
- 一个Struts的莫名问题解决方法:Attribute class invalid for tag present according to TLD - 巴士飞扬-专注编程,网站,专业技术
- Attribute onSubmit invalid for tag form according to TLD
- Struts的莫名问题解决方法:Attribute class invalid for tag present according to TLD
- Struts的莫名问题解决方法:Attribute class invalid for tag present according to TLD
- Attribute class invalid for tag text according to TLD这个struts错误怎么解决啊
- Struts标签问题:Attribute id invalid for tag form according to TLD
- Attribute listkey invalid for tag checkboxlist according to TLD
- iterator标签用begin属性报错:Attribute var invalid for tag iterator according to TLD
- Attribute theme invalid for tag head according to TLD
- Attribute theme invalid for tag head according to TLD
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions报错解决办法
- org.apache.jasper.JasperException: xxxx.jsp(118,24) Attribute style invalid for tag formatNumber according to TLD
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions异常原因及解决方法
- Attribute class invalid for tag present according to TLD
- Attribute theme invalid for tag head according to TLD
- 解决:According to TLD or attribute directive in tag file, attribute value does not accept any express。