现在的位置: 首页 > 综合 > 正文

Java 错误(不断更新)

2013年12月03日 ⁄ 综合 ⁄ 共 344字 ⁄ 字号 评论关闭

编译没出错
运行报以下错
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方法

定义的变量首字母要小写

抱歉!评论已关闭.