Advertisements

Chris wrote:
> I'm just starting to use the Java Standard template library,
> and I'm having a problem with my expessions being output
> correctly by the cut tag.
>
> I've followed all of the instructions for installing JSTL,
> and I am using it under Tomcat 5.0.
>
> Here is the relevant snippet from my JSP:
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %
> <c:set var="browser" value="${header['User-Agent']}"/>
> <cut value="${browser}"/>
>
> When the page is rendered, I get the output
> "${browser}" instead of the evaluated expression. What am I
> doing wrong?
> Thanks in advance

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!