File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts URI nuttiness Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts URI nuttiness" Watch "Struts URI nuttiness" New topic

Struts URI nuttiness

Tony Smith
Ranch Hand

Joined: Mar 15, 2005
Posts: 77
I have this in several of my JSPs:

<%@ taglib uri="" prefix="fmt" %>
<%@ taglib uri="" prefix="c"%>

When I rebuild the application I am told, "JspTranslate: This absolute uri ( 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

Joined: Feb 15, 2005
Posts: 4864
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:

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

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.

Consultant, Sima Solutions
Tony Smith
Ranch Hand

Joined: Mar 15, 2005
Posts: 77
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

Joined: Feb 08, 2006
Posts: 948
Do you have entries for these taglibs in your web.xml file? If so, what is the taglib-uri value there?

- Brent
Consider Paul's rocket mass heater.
subject: Struts URI nuttiness
jQuery in Action, 3rd edition