wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes c:set, problem with tlds. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "c:set, problem with tlds." Watch "c:set, problem with tlds." New topic
Author

c:set, problem with tlds.

Ramya Iyer
Ranch Hand

Joined: Jul 29, 2003
Posts: 66
org.apache.jasper.JasperException: /result1.jsp(32,0) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)


I get this problem whenever for any custom action like <c:set> <c:forEach> i set the attributes to either an el expr. or scripting expr.

For eg. <c:set var="test" value='${ID}'/> gives me this error. I checked the tld file in standard.jar, against forEach for attribute items it says rtexprvalue=true, but when I have <c:forEach var="temp" items='${employeeMap}'> I get the same error. Pls help.
Joseph Clark
Ranch Hand

Joined: Sep 10, 2005
Posts: 48
Try the core_rt tag library.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: c:set, problem with tlds.
 
Similar Threads
Javascript code exploding the JSLT validation
iterating ArrayList in forEach
How do I call JavaBean set methods from jsp?
using JSTL in struts framework
How can I c:set an int in my JSP?