• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The end tag "</c:choose" is unbalanced

 
Anil Deshpande
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the choose.jsp file. The code is as follows



The problem is at the last line.

The exact message is
org.apache.jasper.JasperException: /choose.jsp(21,0) The end tag "</c:choose" is unbalanced
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1735)
.............
....... and so on.

The tags have been matched properly. I am unable to understand where is the exact problem?

Please help me.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing is wrong, your code is okay.
 
krishna bala
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please check this entry is there in web.xml or not

<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
krishna bala wrote:can you please check this entry is there in web.xml or not

Firstly, the JSTL should not be declared in the web.xml. Secondly, that's a really old version of the JSTL.
 
Anil Deshpande
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it guys.

If you see the code at the line 8 carefully, you will see that </c:when> is not terminated properly. I terminated it properly. Then the code started working fine.

Thanks a lot for replying.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic