Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JSTL

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my page I have the following tag:



I am getting an error that states:

Error: javax.el.ELException
Problems calling function 'fn:length'


Apparently I have my syntax wrong(?). Any help ASAP would be greatly appreciated. Thank you.

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry guys, I found my problem. The syntax was correct the object sent to the JSP page did not contains a req.reqItems property and that is the reason it bombed. I inserted a beginning and ending <c:choose...> <c:when...> tags and resolved my problem that way.

Thanks anyway. Regards.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please look at your original post: see how what you thought would work didn't? It makes it *really* hard to even know what the question was.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did notice that. Should the FONT and BOLD tags have gone on the outside of the original tags?

Thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They shouldn't be there at all.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. I was trying to point out where the problem was from a visual perspective. So I'll not do that in the future.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic