问题:java.lang.IndexOutOfBoundsException: Index 0 out-of-bounds for length 0

问题情况,如图:

Index 0 out-of-bounds for length 0

错误内容详情,如图:

Index 0 out-of-bounds for length 0

解决办法:

1.DAO层应把

Index 0 out-of-bounds for length 0

改为下面这样

Index 0 out-of-bounds for length 0

2.再把Servlet层

Index 0 out-of-bounds for length 0

改为下面这样

Index 0 out-of-bounds for length 0

 

修改之后问题就解决了,如图:

Index 0 out-of-bounds for length 0

相关文章: