Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expression Language not evaluating generic Java Map and list as desired

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Following are my code snippets.

In my controller



YGUser.java is a Java Bean.

In my JSP Page:




UserType.java


Output:



When accessing the Map set in request attribute using EL in JSP it is not getting evaluated as desired.
Can anybody please help me in making it work or guide me in case I am wrong in using the syntax?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EL cannot evaluate enums.
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd just map it as a string

and set the string as


Sean
 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear and Sean for your guidance.I made the changes suggested by you people and it is working now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic