Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to load class choose - JSTL

Status
Not open for further replies.

jollyplay

Programmer
Dec 16, 2003
90
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=&quot;c&quot; uri=&quot; %>
.
.
<c:choose>
<c:when test=&quot;${type == 'edit'}&quot;>
<html:text property=&quot;startDate&quot; styleClass=&quot;textbuttonborder&quot; value=&quot;edit&quot;/>
</c:when>
<c:eek:therwise>
<html:text property=&quot;startDate&quot; styleClass=&quot;textbuttonborder&quot;/>
</c:eek:therwise>

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.
 
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.
 
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=&quot;/WEB-INF/c.tld&quot; prefix=&quot;c&quot; %>

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

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top