|
Loading...
|
taglibs-user@jakarta.apache.org
[Prev] Thread [Next] | [Prev] Date [Next]
Re: Nested Tags Question Kris Schneider Tue Aug 24 12:32:14 2004
For JSP 1.2 and earlier, <rtexprvalue> means an attribute can take an expression
of the form <%= ... %> as its value. It's not until JSP 2.0 that the container
provides the same level of built-in support for EL expressions. If you want to
use EL expressions for attribute values in your own tags you have to handle it
yourself and set <rtexprvalue> to false. See the following for an example:
http://www.onjava.com/pub/a/onjava/2002/10/30/jstl3.html
Quoting kalyan inuganti <[EMAIL PROTECTED]>:
> Guys - Thanks for the response but in the below
> example,
>
> <c:set var="aux"><thevaluetag/></c:set>
> <othertag attibute="${aux}"/>
>
> the othertag is literally taking the String "${aux}"
> instead of its value. I do have
> <rtexprvalue>true</rtexprvalue> for that particular
> attribute set. Any thoughts?
>
> Thanks
>
> --- Kris Schneider <[EMAIL PROTECTED]> wrote:
>
> > Yes. In that case, "aux" will be a page-scoped
> > variable whose value is the
> > result of trimming the string produced by the
> > <thevaluetag/> tag.
> >
> > Quoting Helios Alonso <[EMAIL PROTECTED]>:
> >
> > > Would it work?
> > >
> > > <c:set var="aux"><thevaluetag/></c:set>
> > > <othertag attibute="${aux}"/>
> > >
> > > At 08:18 24/08/2004 -0400, you wrote:
> > > >You can't use one tag as an attribute value for
> > another tag...
> > > >
> > > >Quoting kalyan inuganti <[EMAIL PROTECTED]>:
> > > >
> > > > > Hi,
> > > > > I have some thing like -
> > > > >
> > > > > <c:choose>
> > > > > <c:when
> > test='${registrationForm.dobYear
> > > !=
> > > > > ""}'>
> > > > >
> > <date:complete monthName="dobMonth"
> > > > > dayName="dobDay" yearName="dobYear"
> > dayValue="<c:out
> > > > > value='${registrationForm.dobDay}'/>"
> > > > > monthValue="<c:out
> > > > > value='${registrationForm.dobMonth}'/>"
> > > > > yearValue="<c:out
> > > > > value='${registrationForm.dobYear}'/>" />
> > > > > </c:when>
> > > > > <c:otherwise>
> > > > >
> > <date:complete monthName="dobMonth"
> > > > > dayName="dobDay" yearName="dobYear" />
> > > > > </c:otherwise>
> > > > > </c:choose>
> > > > > However, the value that is being passed to the
> > > > > date:complete tag for dayValue, monthValue,
> > and
> > > > > yearValue are the exact strings eg. <c:out
> > > > > value='${registrationForm.dobMonth}'/>. If i
> > print the
> > > > > same thing out on the page it prints the
> > value. It
> > > > > looks pretty obvious to me that nesting the
> > tags is
> > > > > blocking interpretation of the inner tag. Any
> > > > > suggestions please?
> > > > >
> > > > > Thanks,
> > > > > -kalyan
> > > >
> > > >--
> > > >Kris Schneider <mailto:[EMAIL PROTECTED]>
> > > >D.O.Tech <http://www.dotech.com/>
> >
> > --
> > Kris Schneider <mailto:[EMAIL PROTECTED]>
> > D.O.Tech <http://www.dotech.com/>
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Nested Tags Question kalyan inuganti 2004/08/23
- Re: Nested Tags Question Kris Schneider 2004/08/24
- Re: Nested Tags Question Helios Alonso 2004/08/24
- Re: Nested Tags Question Kris Schneider 2004/08/24
- Re: Nested Tags Question kalyan inuganti 2004/08/24
- Re: Nested Tags Question Kris Schneider 2004/08/24 <=