Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Iterating over map in jsp using jstl  RSS feed

 
Irus Albert
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an object X which has two properties say 'a' and 'b'



I am iterating over this map in my jsp as follows



I just printed key since my code was giving error here itself. It says
"property 'a' not readable on type java.lang.String"

I am confused because I am only printing my key values but the error is saying something about a property that is in my list.
 
Stefan Evans
Bartender
Posts: 1834
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well is there somewhere in your JSP you are trying to render property 'a'?

It will only look for property 'a' if you ask it to.
I would direct my attention to other parts of the JSP code.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!