aspose file tools*
The moose likes JSP and the fly likes c:out doesn't work. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "c:out doesn Watch "c:out doesn New topic
Author

c:out doesn't work.

Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
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

Joined: Jan 10, 2002
Posts: 61421
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
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

    Joined: Jan 10, 2002
    Posts: 61421
        
      67

    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 ]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: c:out doesn't work.