This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Clarification on JSTL 1.1 TLD files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Clarification on JSTL 1.1 TLD files" Watch "Clarification on JSTL 1.1 TLD files" New topic
Author

Clarification on JSTL 1.1 TLD files

sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,
My Current project runs on WebSphere 6.0.x. It is IBM JDK 1.4.2 complaint. We are trying to migrate to JSTL 1.1 from JSTL 1.0.
--I have downloaded the jstl.jar and standard.jar files specific to
JSTL 1.1 and put under WEB-INF/lib directory.
--WEB-INF folder has fmt.tld,core.tld,x.tld which are JSTL 1.0 complaint. --Most of the JSP files in our project has the following tag library declaration:
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>

1.Do i need to overwrite the old tld files with the latest tld files specific to JSTL 1.1?
2.Does JSTL 1.1 works fine with JDK 1.4.2 support?

Any help is appreciated.

regards
sudha
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

Originally posted by sudha swami:
My Current project runs on WebSphere 6.0.x.

First and foremost, is this a JSP 2.0 container? If not, all bets are off.

WEB-INF folder has fmt.tld,core.tld,x.tld

Regardless of which version you are using, these files have no business being there! Why did you extract the tld files from the jar files and place them in WEB-INF? Remove them. The container will locate the tld files inside the jar files.

<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>

Fix these to use the real URIs for the JSTL version that you are using.

2.Does JSTL 1.1 works fine with JDK 1.4.2 support?

Unsure. But if your container isn't running JSP 2.0, it doesn't matter.
[ December 20, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,
It is a JSP 2.0/Servlet 2.4 Container.
regards
sudha
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

What about the rest of the configuration? The TLD files in WEB-INF need to be removed. They're already in the jar files and copying them to WEB-INF is unnecessary and can lead to problems.

Is your web.xml declared correctly? This is all covered in the JSP FAQ.
sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,
Thanks alot for the info. I have removed the tld files from the WEB-INF folder. I have declared web.xml correctly.
I am not very sure whether JSTL 1.1 works fine with JDK 1.4.2 support. let me try.
regards
sudha
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I am not very sure whether JSTL 1.1 works fine with JDK 1.4.2 support.

It does.

You can also check this page to use JSTL correctly ;)


[My Blog]
All roads lead to JavaRanch
sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clarification on JSTL 1.1 TLD files
 
Similar Threads
How do I add custom tag libraries in a JSP page?
Tomcat 5.5(tried 6.0 as well)-JSTL 1.1 not resolved
ERROR : using jstl tags in websphere 4
working with JSTL
jstl problem