编译没出错
运行报以下错
Exception in thread main java.lang.ArrayIndexOutOfBoundsException 0
原因
用了主方法的参数,运行的时候没有输入参数
tomcat启动报错
Parse error in application web.xml file at jndi ......
Invalid <url-pattern> ......in servlet mapping
原因之一
web.xml文件中
<url-pattern></url-pattern> 之间少了 /
Struts出现No getter method for property XX of bean org.apache.struts.taglib.html.BEAN
没有定义get/set方法
定义的变量首字母要小写