1、Attribute name invalid for tag form according to TLD <html:form action="hotelAction.do?p=add" method="post" name="XX"> 去掉name属性,让struts自动关联。
2、没有strus-config.xml文件文件系统会报错启动失败? Missing configuration resource for path /WEB-INF/struts-config.xml
3、表单没有写action属性 严重:Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.struts.taglib.TagUtils.getActionMappingName(TagUtils.java:583) at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:856)
4、如果JSP页面中表单的name跟ActionForm中的userName属性名不一样则错误如下。建议去掉表单的name No getter method for property: "userName1" of bean: "com.jason.form.LoginForm"
[code="java"]1、Attribute name invalid for tag form according to TLD 去掉name属性,让struts自动关联。[/code][code="java"]2、没有strus-config.xml文件文件系统会报错启动失败?Missing configuration resource for path /WEB-IN...