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 Somashish Gupta <sg...@mail.etouch.net> on 2004/09/01 18:47:41 UTC
c:out inside value attribute of c:set
Hi,
Can I use a <c:out ... /> inside the value attribute of
another <c:out /> or <c:set ... /> tag.
For ex the following code
<c:set var="_id1" value="${financialBenefitStateItem.id}"
/>
<c:set var="_data1"
value="${sessionScope.modelRoot.financialBenefit.FBTypeMap['1'].FBEntries['<c:out
value='${_id1}'/>'].id}" />
doesnt seem to work. In the second line I am trying to use
c:out inside the value attribute of c:set . However it is
not evaluating that c:out.
Any clue how to solve this problem?
Thanks
Somashish
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: c:out inside value attribute of c:set
Posted by Somashish Gupta <sg...@mail.etouch.net>.
Thanks Martin,
My bad. Somehow I was thinking that I can access a
variable only through
c:out , even after setting it using c:set.
Thanks for that pointer. It worked immediately.
On Wed, 1 Sep 2004 11:03:12 -0700
Martin Cooper <mf...@gmail.com> wrote:
>I'm not sure what you're trying to accomplish with the
><c:out>
>embedded in the attribute value. Don't you just want the
>value of the
>variable you set in the first line?
>
><c:set var="_data1"
>value="${sessionScope.modelRoot.financialBenefit.FBTypeMap['1'].FBEntries[_id1].id}"
>/>
>
>--
>Martin Cooper
>
>
>On Wed, 01 Sep 2004 09:47:41 -0700, Somashish Gupta
><sg...@mail.etouch.net> wrote:
>> Hi,
>>
>> Can I use a <c:out ... /> inside the value attribute
>>of
>> another <c:out /> or <c:set ... /> tag.
>>
>> For ex the following code
>>
>> <c:set var="_id1"
>>value="${financialBenefitStateItem.id}"
>> />
>> <c:set var="_data1"
>> value="${sessionScope.modelRoot.financialBenefit.FBTypeMap['1'].FBEntries['<c:out
>> value='${_id1}'/>'].id}" />
>>
>> doesnt seem to work. In the second line I am trying to
>>use
>> c:out inside the value attribute of c:set . However it
>>is
>> not evaluating that c:out.
>>
>> Any clue how to solve this problem?
>>
>> Thanks
>> Somashish
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: c:out inside value attribute of c:set
Posted by Martin Cooper <mf...@gmail.com>.
I'm not sure what you're trying to accomplish with the <c:out>
embedded in the attribute value. Don't you just want the value of the
variable you set in the first line?
<c:set var="_data1"
value="${sessionScope.modelRoot.financialBenefit.FBTypeMap['1'].FBEntries[_id1].id}"
/>
--
Martin Cooper
On Wed, 01 Sep 2004 09:47:41 -0700, Somashish Gupta
<sg...@mail.etouch.net> wrote:
> Hi,
>
> Can I use a <c:out ... /> inside the value attribute of
> another <c:out /> or <c:set ... /> tag.
>
> For ex the following code
>
> <c:set var="_id1" value="${financialBenefitStateItem.id}"
> />
> <c:set var="_data1"
> value="${sessionScope.modelRoot.financialBenefit.FBTypeMap['1'].FBEntries['<c:out
> value='${_id1}'/>'].id}" />
>
> doesnt seem to work. In the second line I am trying to use
> c:out inside the value attribute of c:set . However it is
> not evaluating that c:out.
>
> Any clue how to solve this problem?
>
> Thanks
> Somashish
>
> ---------------------------------------------------------------------
> 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 inside value attribute of c:set
Posted by Helios Alonso <ha...@atg.com.uy>.
What about this?
><c:set var="_id1" value="${financialBenefitStateItem.id}" />
><c:set var="_data1"
>value="${sessionScope.modelRoot.financialBenefit.FBTypeMap['1'].FBEntries[_id1].id}"
>/>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org