Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts 1.3.5 & JSTL 1.1

843838Jan 29 2007 — edited Jan 29 2007
Hello,
I've migrated to Struts 1.3.5 and I can't work with JSTL 1.1.X, when we use fn tag library and other funcionality. JSTL works fine with Struts 1.2.8 but not with 1.3.5. My IDE is Eclipse 3.1, JRE 1.5. and Tomcat 5.5. I put standard and jstl jars in my lib directory as well as c.tld fmt.tld and fm.tld in the WEB-INF folder. Anybody can help me?
For example, I have the following at the begining in one my jsp's:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<%@ page contentType="text/html; charset=iso-8859-1" language="java"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/fn.tld" prefix="fn"%>

.....

But instructions like <c:out value='${sessionScope.usuario.nom}' /> prints me ${sessionScope.usuario.nom}, not the value of usuario.nom.

This same example works fine with JSTL 1.0. (with jars jstl-1.0.2.jar and standard-1.0.2.jar).
Anyone can guide me where I'm wrong? Configutarion, validations headers,...?
I've tried with and without
<taglib>
<taglib-uri>/WEB-INF/c.tld</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/fn.tld</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>

in my web.xml, but the result is the same, I can't make it work.
Any comment will be wellcome.

Thanks in advance,

Joseph from Barcelona.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2007
Added on Jan 29 2007
1 comment
586 views