<table>
<c:forEach begin="0" end="2" varStatus="sta">
<tr>
<c:forEach begin="0" end="2" varStatus="status">
<td>1</td>
<td>${userText[sta.index][status.index].sex}</td>
</c:forEach>
</tr>
</c:forEach>
</table>
@RequestMapping(value = "testArray",method = RequestMethod.GET)
public String testArray(HttpServletRequest request)
{
User[][] user= new User[2][2];
User user1=new User();
User user2=new User();
user2.setSex("fhjfj");
user1.setSex("fghj");
user[0][0]=user1;
user[0][1]=user2;
request.getSession().setAttribute("userText",user);
return "test";
}
