Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts And JSTL  RSS feed

 
shashi pahwa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am struts html and jstl for jsp programming and facing the problem in this code:
<html:select property="singleSelect" size="10" >
<core:forEach var="val" begin="0" end="9" >
<html ption value="<core ut value=Single ${val} />" >
Single <core ut value=" ${val}" />
</html ption>
</core:forEach>
</html:select>

The error is:-
org.apache.jasper.JasperException: /html-select.jsp(46,8) jsp.error.unterminated.tag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:734)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)

Could any body help me
(edited by Cindy to disable smilies)
[ February 17, 2003: Message edited by: Cindy Glass ]
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing that does strike me is that you are using a custom tag to supply a value for the value attribute within the html ption tag - this won't work. Apart from that, there doesn't seem to be anything wrong with the actual nesting of your tags - are there others on the page?
Simon
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!