Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL library poblem

 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

i have tring to use JSTL tag library ,somehow i am getting the Exception at run time.
i have added the jstl.jar file in /WEB-INF/lib directory of my application

index.jsp



Exception at runtime

HTTP Status 500 -

-type Exception report

message : descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception : org.apache.jasper.JasperException: /index.jsp(13,12) PWC6236: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
note The full stack traces of the exception and its root causes are available in the Oracle GlassFish Server 3.1.1 logs.



how can i rectify that ?


 
Pete Nelson
Ranch Hand
Posts: 147
Debian Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the right version of the JSTL for the uri you are using?

See http://dev-answers.blogspot.com/2006/12/according-to-tld-or-attribute.html for some useful advice. (I found this page by googling your error message, BTW).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can tell right away that you are using an old version of JSTL from the URI. Also, depending upon where you got your jar file(s), you may also need standard.jar.
 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Pete

i found that link very good .it really works. i just change the one line of code

from <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
to
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



hey Bear
as in my case standard.jar is not necessarily required.

thank you very much.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic