tags:

views:

64

answers:

1

I am migrating an ADF application to run in Websphere 7.

Basically I am moving to jstl 1.2

I have created a new project and I am now at the point where I can run jsps.

I started getting errors with the taglibs. Then I found out that I have to replace all my c taglib declarations with the new uri of java.sun.com/jsp/jstl/core instead of java.sun.com/jstl/core

I did this to every one of my jsp files. Now when I publish and attempt to run it I get this error.

[Servlet Error]-[/index.jsp]: com.ibm.ws.jsp.JspCoreException: /index.jsp(742,56) /included.jsp(4,58) JSPG0240E: Attempt to redefine the prefix "c" to "http://java.sun.com/jstl/core", when it was already defined as "http://java.sun.com/jsp/jstl/core" in the current scope.

Now each page has the new uri. Why would it try to redefine it to the old uri?

A: 

Turns out the new stuff is very specific in regards to syntax

Notice this if you don't have spaces between the "@" and the "taglib" part of the text it blows up!

Also you have to have the space between the "c" and the end of the tag "%>"

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

If you don't do this it causes big ol stupid errors that say nothing about how to fix the issue.

mugafuga