O'Reilly, Barry wrote:
> Hi displaytag,
>
> I'm trying to implement the following lines in the setProperty section
> of displaytag but am not having much success. Can anyone tell me if the
> lines I have included are possible. I feel like it could be as when I
> escape some characters it almost works until I got the following error:
>
> org.apache.jasper.JasperException:
> /WEB-INF/pages/intellectualPropertyDetail.jsp(98,184) Unterminated
> <display:setProperty tag
>       
>   
[snip]
> The code I am trying to implement is as follows:
>
>     <display:setProperty name="paging.banner.no_items_found"
> value="<span class=\"pagebanner\">Catalogue entries</span> <a
> href=\"editCatalog.html?intellectualPropertyId=<c:out
> value="${intellectualPropertyForm.id}"/>\" <fmt:message
> key="intellectualPropertyDetail.addCatalog"/></a>"/>
>
>
>   
You cannot use jsp tags inside an attribute value of another tag. You 
have c:out and fmt:message in the value attribute. It might be easier to 
use a <c:choose> tag on your jsp page to choose between displaying the 
table or the link to add a new catalog rather than trying to create it 
using the no items property. If it's used in lots of places you could 
even wrap it into a tag file of its own.

Ed!

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to