tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul P Akolkar <akol...@us.ibm.com>
Subject Re: c:out problem
Date Tue, 31 May 2005 13:21:42 GMT
See Question 1 on Taglibs Wiki FAQ [ 
http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]

-Rahul


"Andy" <andy@fritter.net> wrote on 05/31/2005 09:29:37 AM:

> 
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message