• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL test expressions  RSS feed

 
damian croft
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm trying to write an EL test Expression as follows:

But the JSP page just spits back the following error:
An exception occured trying to convert String "pageCount.count" to type "java.lang.Double"

Why does it need to convert it to a Double?

If I do the following:


It tells me:
An exception occured trying to convert String "startNumber" to type "java.lang.Long"

What do I need to do to get this to work?
Thanks for any help you can give me on this one.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you quoting pageCount.count and startNumber? That makes them string literals rather than scoped variable references.
[ March 30, 2005: Message edited by: Bear Bibeault ]
 
damian croft
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course, you're right.
You mean I should do it something like:

??

(Still, doesn't work, but maybe it's more along the right lines.???)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!