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 Anto Paul <an...@gmail.com> on 2004/09/27 06:52:16 UTC
Putting custom tag inside a custome tag
Hi all,
Is it possible to put a custom tag inside another custom tag. Both
tags rtexprvalue is true. I tried
<custom:shipping state='<bean:write name="state"/>'/>
But it prints as <bean:write name="state"/>.
Thanks in advance.
Anto Paul
--
To strive,to seek,to find and not to yield
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: Putting custom tag inside a custome tag
Posted by Helios Alonso <ha...@atg.com.uy>.
Try
<custom:shipping state="${state}"/>
The ${state} is the var you want to "write" with bean:write.
At 11:48 27/09/2004 +0530, you wrote:
>It is a parameter to be passed.
>
>rgds
>Anto Paul
>
>
>On Sun, 26 Sep 2004 22:27:22 -0700, Martin Cooper <mf...@gmail.com> wrote:
> > On Mon, 27 Sep 2004 10:22:16 +0530, Anto Paul <an...@gmail.com> wrote:
> > > Hi all,
> > > Is it possible to put a custom tag inside another custom tag.
> >
> > No, it's not. It is not legal JSP syntax, and is also not legal XML
> > syntax. You'll need to use something like:
> >
> > <custom:shipping>
> > <bean:write name="state"/>
> > </custom:shipping>
> >
> > --
> > Martin Cooper
> >
> >
> > > Both
> > > tags rtexprvalue is true. I tried
> > > <custom:shipping state='<bean:write name="state"/>'/>
> > >
> > > But it prints as <bean:write name="state"/>.
> > >
> > > Thanks in advance.
> > > Anto Paul
> > >
> > > --
> > > To strive,to seek,to find and not to yield
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> > >
> > >
> >
>
>
>
>--
>To strive,to seek,to find and not to yield
>
>---------------------------------------------------------------------
>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: Putting custom tag inside a custome tag
Posted by Anto Paul <an...@gmail.com>.
It is a parameter to be passed.
rgds
Anto Paul
On Sun, 26 Sep 2004 22:27:22 -0700, Martin Cooper <mf...@gmail.com> wrote:
> On Mon, 27 Sep 2004 10:22:16 +0530, Anto Paul <an...@gmail.com> wrote:
> > Hi all,
> > Is it possible to put a custom tag inside another custom tag.
>
> No, it's not. It is not legal JSP syntax, and is also not legal XML
> syntax. You'll need to use something like:
>
> <custom:shipping>
> <bean:write name="state"/>
> </custom:shipping>
>
> --
> Martin Cooper
>
>
> > Both
> > tags rtexprvalue is true. I tried
> > <custom:shipping state='<bean:write name="state"/>'/>
> >
> > But it prints as <bean:write name="state"/>.
> >
> > Thanks in advance.
> > Anto Paul
> >
> > --
> > To strive,to seek,to find and not to yield
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> >
> >
>
--
To strive,to seek,to find and not to yield
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: Putting custom tag inside a custome tag
Posted by Martin Cooper <mf...@gmail.com>.
On Mon, 27 Sep 2004 10:22:16 +0530, Anto Paul <an...@gmail.com> wrote:
> Hi all,
> Is it possible to put a custom tag inside another custom tag.
No, it's not. It is not legal JSP syntax, and is also not legal XML
syntax. You'll need to use something like:
<custom:shipping>
<bean:write name="state"/>
</custom:shipping>
--
Martin Cooper
> Both
> tags rtexprvalue is true. I tried
> <custom:shipping state='<bean:write name="state"/>'/>
>
> But it prints as <bean:write name="state"/>.
>
> Thanks in advance.
> Anto Paul
>
> --
> To strive,to seek,to find and not to yield
>
> ---------------------------------------------------------------------
> 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