异常信息为
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.yourcompany.struts.action.BMainManagerSetAction.execute(BMainManagerSetAction.java:69)
===============================================================
jsp中的文件是
<%@ page language="java" contentType="text/html;charset=gbk"%>
<%@ include file="/taglibs.jsp" %>
<html>
<body>
<html:form action="bMainManagerSet.do" >
<table border=1>
<tr>
<td>总管理员帐户和密码</td>
</tr>
<tr>
<td> 总管理员帐户:</td><td><html:text property="name" size="25" /></td>
</tr>
<tr>
<td> 总管理员密码:</td><td> <html:password property="password" size="25" /></td>
</tr>
<tr>
<td><html:submit value="提交" /></td>
<td><html:reset value="重置" /></td>
</tr>
</table>
</html:form>
</body>
</html>
=============================================================
action 中的文件是
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.struts.action;
import java.util.List;
import hibernate.HibernateSessionFactory;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.hibernate.Query;
import org.hibernate.Session;