You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Andy <an...@fritter.net> on 2005/05/31 15:29:37 UTC

c:out problem


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


RE: c:out problem

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
"Andy" <an...@fritter.net> wrote on 05/31/2005 09:52:36 AM:
>
> Thanks, *grin*, I'll check the FAQ first next time.

Probably won't help, given we have 1 question there ;-)

I'm planning on increasing that count next weekend, though we'd be in 
great shape if everyone on this list posted 1 FAQ (+ answer) each on [ 
http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]. Please, 
feel free to use the wiki.

-Rahul

RE: c:out problem

Posted by Andy <an...@fritter.net>.
Thanks, *grin*, I'll check the FAQ first next time.

>-----Original Message-----
>From: Rahul P Akolkar [mailto:akolkar@us.ibm.com]
>Sent: 31 May 2005 14:22
>To: Tag Libraries Users List
>Subject: Re: c:out problem
>
>
>See Question 1 on Taglibs Wiki FAQ [
>http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]
>
>-Rahul
>
>
>"Andy" <an...@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
>>
>



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


Re: c:out problem

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
See Question 1 on Taglibs Wiki FAQ [ 
http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]

-Rahul


"Andy" <an...@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
>