This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts URI nuttiness

 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this in several of my JSPs:

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

When I rebuild the application I am told, "JspTranslate: This absolute uri (http://java.sun.com/jstl/fmt) cannot be resolved in either web.xml or the jar files deployed with this application."

I have standard.jar, struts.jar, struts-el.jar, and jstl.jar in my classpath.

standard.jar includes c.tld and fmt.tld so I am at a loss. I didn't see a core.tld anywhere. There are nothing that refers to the URIs in my web.xml. Adding configs didn't change the result.

If I swap the order of the @taglib's above, I get the same error, but on "core" taglib line.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is very important that the URL match the J2EE version you are using. If your web application uses Servlet V2.4, the url is:

http://java.sun.com/jsp/jstl/core

If your web application uses Servlet V2.3, the url is:

http://java.sun.com/jstl/core

You can tell which version your web application is using by looking at the URI of the DTD at the beginning of your web.xml file.
 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using version 2.3.

A little more information - this project compiled fine until yesterday. I did an update from the code manager and things broke instantly. My co-worker on this project is using an identical development environment.

I just checked and verified that none of Websphere's project files were overwritten from the code manager.
[ May 11, 2006: Message edited by: Tony Smith ]
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have entries for these taglibs in your web.xml file? If so, what is the taglib-uri value there?

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic