×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Unable to load class choose - JSTL

Unable to load class choose - JSTL

Unable to load class choose - JSTL

(OP)
Hello,

 I want to include JSTL in my struts frame work. When the particular page is open it shows Unable to load class choose
in a paruclar line

In JSP
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
.
.
<c:choose>
<c:when test="${type == 'edit'}">
<html:text property="startDate" styleClass="textbuttonborder" value="edit"/>
</c:when>
<c:otherwise>
<html:text property="startDate" styleClass="textbuttonborder"/>
</c:otherwise>

In web.xml
----------
<taglib>
  <taglib-uri>jstl/c</taglib-uri>
  <taglib-location>/WEB-INF/c.tld</taglib-location>
 </taglib>

jstl.jar is in
WEB-INF\lib
 Please let me know the problem what misktake made. what i have to do. Thanks in advance.

With regards,
balachandar.

RE: Unable to load class choose - JSTL

(OP)
Hello,

antoher one information i exatracted the jstl.jar, i cheked
it out. For in c.tld it is mapped with some class file.
but it  is not there. Can u tell me where i download the
recent jstl.jar(exact location or step by step) and also tell the solution for above question. Tahnk u,

With regards,
balachandar.

RE: Unable to load class choose - JSTL

Hi,

 Copy the c.tld under WEB-INF of the webapplication.

 In web.xml
----------
<taglib>
  <taglib-uri>/WEB-INF/c.tld</taglib-uri>
  <taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>


in the JSP page you need to define

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

make sure you have the jstl.jar in WEB-INF/lib

Cheers
Venu

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close