0

I have created a working java-bean and put it inside a map that i stored into an attribute of the session

Bean bean = new Bean(LocalDate.now(), "super event", 1000);
request.getSession().setAttribute("userMap"
            , new HashMap<String, Bean>().put("bean", bean));

Then from jsp file i try to retrieve it like this ${userMap[bean].date } or like this ${userMap[0].date } but it doesn't work.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
T4l0n
  • 595
  • 1
  • 8
  • 25

0 Answers0