aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts URI nuttiness" Watch "Struts URI nuttiness" New topic
Author

Struts URI nuttiness

Tony Smith
Ranch Hand

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

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:

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.


Merrill
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
 
jQuery in Action, 2nd edition
 
subject: Struts URI nuttiness