| Author |
Clarification on JSTL 1.1 TLD files
|
sudha swami
Ranch Hand
Joined: Apr 24, 2007
Posts: 177
|
|
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: 56167
|
|
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 ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
sudha swami
Ranch Hand
Joined: Apr 24, 2007
Posts: 177
|
|
Hi, It is a JSP 2.0/Servlet 2.4 Container. regards sudha
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56167
|
|
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: 177
|
|
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: 14670
|
|
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: 177
|
|
|
thanks
|
 |
 |
|
|
subject: Clarification on JSTL 1.1 TLD files
|
|
|