Re: jstl not working for me
Louis Moore <lrm718-/[email protected]> Tue, 24 May 2005 11:20:19 -0700 (PDT)
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Sorry if this is too obvious, but did you forget to add the taglib declaration to your jsp? <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> That's bitten me before, cuz it doesn't give you any helpful error messages or anything. -Lou --- Gene McCullough <[email protected]> wrote: > I have this code in my jsp (ought to look familiar, > i think i robbed it > from app-crud at one point) > > <logic:present name="header"> > <tr> > <logic:iterate id="eachHeader" > name="header" property="nested"> > <td> > <logic:present name="eachHeader" > property="attributes.sort"> > <keel:command link="true" > name="eachHeader" > property="attributes.sort"> > <strong><bean:write > name="eachHeader"/></strong> > </keel:command> > </logic:present> > > <logic:notPresent name="eachHeader" > property="attributes.sort"> > <strong><bean:write > name="eachHeader"/></strong> > </logic:notPresent> > </td> > </logic:iterate> > </tr> > </logic:present> > > That produces the desired results. > > Adding the following directly beneath in the same > page produces the > empty output. Any suggestions? > > <c:if test="${! empty header}"> > <tr> > <c:if test="${! empty header.map['nested']}"> > not empty > </c:if> > <c:if test="${empty header.map['nested']}"> > empty > </c:if> > </tr> > </c:if> > I also tried with header.map.nested, as in the > menubar.jsp, with the > same results. the struts tags above can find the > outputs, can you see > what I'm doing wrong with the jstl? > > TIA > gene > http://keelframework.org/documentation.shtml > Keelgroup mailing list > [email protected] > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > http://keelframework.org/documentation.shtml Keelgroup mailing list [email protected] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com