Re: Nested Tags Question

2004-08-24 Thread Kris Schneider
You can't use one tag as an attribute value for another tag...

Quoting kalyan inuganti <[EMAIL PROTECTED]>:

> Hi,
> I have some thing like - 
> 
> 
>   
>dayName="dobDay" yearName="dobYear" dayValue=" value='${registrationForm.dobDay}'/>"
> monthValue=" value='${registrationForm.dobMonth}'/>"
> yearValue=" value='${registrationForm.dobYear}'/>" /> 
>   
>  
>dayName="dobDay" yearName="dobYear" /> 
>  
>   
> However, the value that is being passed to the
> date:complete tag for dayValue, monthValue, and
> yearValue are the exact strings eg.  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 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Nested Tags Question

2004-08-24 Thread Helios Alonso
Would it work?


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 -
>
> 
>   
>dayName="dobDay" yearName="dobYear" dayValue=" value='${registrationForm.dobDay}'/>"
> monthValue=" value='${registrationForm.dobMonth}'/>"
> yearValue=" value='${registrationForm.dobYear}'/>" />
>   
>  
>dayName="dobDay" yearName="dobYear" />
>  
>   
> However, the value that is being passed to the
> date:complete tag for dayValue, monthValue, and
> yearValue are the exact strings eg.  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 
D.O.Tech   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Nested Tags Question

2004-08-24 Thread Kris Schneider
Yes. In that case, "aux" will be a page-scoped variable whose value is the
result of trimming the string produced by the  tag.

Quoting Helios Alonso <[EMAIL PROTECTED]>:

> Would it work?
> 
> 
> 
> 
> 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 -
> > >
> > > 
> > >   
> > >> > dayName="dobDay" yearName="dobYear" dayValue=" > > value='${registrationForm.dobDay}'/>"
> > > monthValue=" > > value='${registrationForm.dobMonth}'/>"
> > > yearValue=" > > value='${registrationForm.dobYear}'/>" />
> > >   
> > >  
> > >> > dayName="dobDay" yearName="dobYear" />
> > >  
> > >   
> > > However, the value that is being passed to the
> > > date:complete tag for dayValue, monthValue, and
> > > yearValue are the exact strings eg.  > > 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 
> >D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Nested Tags Question

2004-08-24 Thread kalyan inuganti
Guys - Thanks for the response but in the below
example,




the othertag is literally taking the String "${aux}"
instead of its value. I do have
true 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
>  tag.
> 
> Quoting Helios Alonso <[EMAIL PROTECTED]>:
> 
> > Would it work?
> > 
> > 
> > 
> > 
> > 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 -
> > > >
> > > > 
> > > >test='${registrationForm.dobYear
> > !=
> > > > ""}'>
> > > >  
>  > > > dayName="dobDay" yearName="dobYear"
> dayValue=" > > > value='${registrationForm.dobDay}'/>"
> > > > monthValue=" > > > value='${registrationForm.dobMonth}'/>"
> > > > yearValue=" > > > value='${registrationForm.dobYear}'/>" />
> > > >   
> > > >  
> > > >  
>  > > > dayName="dobDay" yearName="dobYear" />
> > > >  
> > > >   
> > > > However, the value that is being passed to the
> > > > date:complete tag for dayValue, monthValue,
> and
> > > > yearValue are the exact strings eg.  > > > 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 
> > >D.O.Tech   
> 
> -- 
> Kris Schneider 
> D.O.Tech   
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Nested Tags Question

2004-08-24 Thread Kris Schneider
For JSP 1.2 and earlier,  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  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,
> 
> 
> 
> 
> the othertag is literally taking the String "${aux}"
> instead of its value. I do have
> true 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
> >  tag.
> > 
> > Quoting Helios Alonso <[EMAIL PROTECTED]>:
> > 
> > > Would it work?
> > > 
> > > 
> > > 
> > > 
> > > 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 -
> > > > >
> > > > > 
> > > > >> test='${registrationForm.dobYear
> > > !=
> > > > > ""}'>
> > > > >  
> >  > > > > dayName="dobDay" yearName="dobYear"
> > dayValue=" > > > > value='${registrationForm.dobDay}'/>"
> > > > > monthValue=" > > > > value='${registrationForm.dobMonth}'/>"
> > > > > yearValue=" > > > > value='${registrationForm.dobYear}'/>" />
> > > > >   
> > > > >  
> > > > >  
> >  > > > > dayName="dobDay" yearName="dobYear" />
> > > > >  
> > > > >   
> > > > > However, the value that is being passed to the
> > > > > date:complete tag for dayValue, monthValue,
> > and
> > > > > yearValue are the exact strings eg.  > > > > 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 
> > > >D.O.Tech   
> > 
> > -- 
> > Kris Schneider 
> > D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: String concatenation

2004-08-24 Thread Felipe Leme
BTW, trying to concatenate 2 strings using a + is a common mistake - I
think it would worth some sort of FAQ/note on the specification about
how to correctly do it.

On Mon, 2004-08-23 at 14:58, Keith wrote:

> 
> 
> There's no JSTL concatenation operator (that I know). Whatever you want the separator
> between them to be, just put it there. In this instance, it's a space.
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]