Results 1 to 2 of 2
- 10-15-2009, 02:12 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
JSTL-EL: ServletException : Unable to convert to string "${foo}"
Hi,
I have a JSP (web.xml is 2.3 DTD) that I have added my own tag to.
The page unfortunately is full of scriplets and I need to pass a scriplet variable to my new tag. My tag is EL enabled (i.e. it uses the ExpressionEvaluationManager to process its args)
so I have something like:
<% MyTopicClass mytopic = (MyTopicClass)iterator.next();
pageContext.setAttribute("topic", topic);
%>
<mytag:footag topicvalue="${topic}"/>
Now I get
Unable to convert string "${topic}" to class MyTopicClass for attribute topicitem...
It as though the ${} sytax is being completely ignored. I read on another forum that you shol use web.xml 2.4 schema rather than 2_3 DTD, but I know of another project that uses JSTL-EL with no issues that is using the 2_3 web.xml.
Any suggestions.
- 10-15-2009, 06:57 PM #2
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
genjar - "Unable to resolve:"
By angryboy in forum New To JavaReplies: 0Last Post: 06-28-2009, 06:48 AM -
final String currentWorld = "Java Forums"; String.format("Hello %s", currentWorld);
By mcfrog in forum IntroductionsReplies: 0Last Post: 04-02-2009, 07:02 PM -
Convert " ü " into simple " u "
By nitinb4u in forum New To JavaReplies: 4Last Post: 02-23-2009, 08:35 AM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
setting JSTL locale "java.util.MissingResourceException"
By sabelosimelane in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 09-04-2008, 04:12 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks