tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy" <a...@fritter.net>
Subject c:out problem
Date Tue, 31 May 2005 13:29:37 GMT


I have another problem ! (what is going on today?) Why can't I print out the
value of a variable using c:out ? The below example was copied from
http://javaalmanac.com/egs/javax.servlet.jsp.jstl.core/attr.html


    <c:set var="name1" value="value1" scope="page" />
    <c:set var="com_mycompany_name2" value="value2" scope="request" />
    <c:set var="com_mycompany_name3" value="value3" scope="session" />
    <c:set var="com_mycompany_name4" value="value4" scope="application" />

    <%-- Show the saved values --%>
    <c:out value='${pageScope.name1}' />  <br>
    <c:out value='${requestScope.com_mycompany_name2}' /> <br>
    <c:out value='${sessionScope.com_mycompany_name3}' /> <br>
    <c:out value='${applicationScope.com_mycompany_name4}' /> <br>


All I get is -

${pageScope.name1}
${requestScope.com_mycompany_name2}
${sessionScope.com_mycompany_name3}
${applicationScope.com_mycompany_name4}

Thanks,

Andy.



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message