• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clarification on JSTL 1.1 TLD files

 
sudha swami
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
sudha swami
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It is a JSP 2.0/Servlet 2.4 Container.
regards
sudha
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ;)
 
sudha swami
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic