This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:out doesn't work.

 
Ken Loh
Ranch Hand
Posts: 190
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JSTL core ( and maybe others as well) tags have not been working in my environment using JBoss 3.2.4 with integrated Tomcat. I'm using jakarta-taglibs-standard-1.1.2 .

For example and innocent such as :

prints ${name} instead of [I}Luke Skywalker[/I] !

Could anyone give me an idea of how to solve this ? (BTW, I've made sure that I've declared the taglib at the top of my every JSP that uses the tag.)

I suspect that it could be due to the versions of Tomcat that my JBoss uses. When I start my JBoss, my Eclipse's console log says Tomcat5. Is there a way for me to check which versions of Servlet and JSP Specifications that my Tomcat supports ?

Any help would be very much appreciated.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5 supports JSP 2.0.

The most likely problem is that your web app is running in "servlet 2.3 compatability mode".

Does your web.xml utilize the XML Schema declaration for a Servlets 2.4 application? Or does it still use the old Servlets 2.3 DTD?

If the latter, that's your problem.
 
Ken Loh
Ranch Hand
Posts: 190
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're absolutely spot-on. My <c ut> works now. I will also verify other core tags. If you don't hear from me in this thread again, that means everything's fine.

Thanks a lot for your great help !

For others who might encounter the same problem as mine, here's the list of sites that I've seeked help in altering my web.xml to support Servlet 2.4:
  • Taglib element's parent change.
  • Sample web.xml for 2.4 .
  • web-app tag
  • All info for Servlet 2.4 .

  • Originally posted by Bear Bibeault:
    Tomcat 5 supports JSP 2.0.

    The most likely problem is that your web app is running in "servlet 2.3 compatability mode".

    Does your web.xml utilize the XML Schema declaration for a Servlets 2.4 application? Or does it still use the old Servlets 2.3 DTD?

    If the latter, that's your problem.
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64188
    83
    IntelliJ IDE Java jQuery Mac Mac OS X
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Glad to have helped. And thank you very much for posting the results of your research for others to benefit from.
    [ April 01, 2005: Message edited by: Bear Bibeault ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic