二维数组类型的el表达式


    
    
1 ${userText[sta.index][status.index].sex}
    @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";
        
    }

在这里插入图片描述

你可能感兴趣的:(Java,Web)