jQuery in Action, 2nd edition*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JSTL
 
Similar Threads
Duplicate code
How to use array of beans in jsp
[JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed
Validation error: Failed to convert property value of type [java.lang.String] to required type [int]
Need help with JSTL: setting end attribute dynamically of "substring" tag