aspose file tools*
The moose likes JSP and the fly likes Problem with JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with JSTL" Watch "Problem with JSTL" New topic
Author

Problem with JSTL

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

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

Joined: Jun 21, 2005
Posts: 386

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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jun 21, 2005
Posts: 386

I did notice that. Should the FONT and BOLD tags have gone on the outside of the original tags?

Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

They shouldn't be there at all.
Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

OK. I was trying to point out where the problem was from a visual perspective. So I'll not do that in the future.
 
jQuery in Action, 2nd edition
 
subject: Problem with JSTL