how to quote nested tags

2001-06-21 Thread Felix von Delius
A collegue asked me a question that I can't answer. Maybe someone reading this list can help. The question is how to nest tags in a way that they expand to their attribute values. An example: assume I have the following tags: my:foo a='value' / my:bar b='other' / my:baz c='stuff' / When I want

Re: how to quote nested tags

2001-06-21 Thread Oleg V Alexeev
Hello Felix, Thursday, June 21, 2001, 2:03:49 PM, you wrote: FvD my:foo a='my:bar b=stuff/' / FvD ^-^ FvD ^---^ You can use in tag attributes only run time expressions - not another tag. -- Best regards, Oleg

RE: how to quote nested tags

2001-06-21 Thread Lacerda, Wellington (AFIS)
] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 12:04 PM To: [EMAIL PROTECTED] Subject: how to quote nested tags A collegue asked me a question that I can't answer. Maybe someone reading this list can help. The question is how to nest tags in a way that they expand to their attribute

Re: how to quote nested tags

2001-06-21 Thread Roland Huss
Lacerda, Wellington (AFIS) [EMAIL PROTECTED] writes: In the current spec it is not allowed to use a tag inside another tag. If you need to use results from a tag processing in another tag, currently you must expose it as a bean in some scope and then access that bean in the other tag. Or

Re: how to quote nested tags

2001-06-21 Thread Felix von Delius
On Thu, Jun 21, 2001 at 12:19:08PM +0200, Lacerda, Wellington (AFIS) wrote: In the current spec it is not allowed to use a tag inside another tag. If you need to use results from a tag processing in another tag, currently you must expose it as a bean in some scope and then access that bean in

RE: how to quote nested tags

2001-06-21 Thread Lacerda, Wellington (AFIS)
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 12:47 PM To: [EMAIL PROTECTED] Subject: Re: how to quote nested tags On Thu, Jun 21, 2001 at 12:19:08PM +0200, Lacerda, Wellington (AFIS) wrote: In the current spec it is not allowed to use a tag inside

Re: how to quote nested tags

2001-06-21 Thread Felix von Delius
On Thu, Jun 21, 2001 at 12:41:26PM +0200, Roland Huss wrote: Lacerda, Wellington (AFIS) [EMAIL PROTECTED] writes: Or you nest your tags like my:foo my:bar my:baz stuff /my:baz /my:bar /my:foo and let them evaluate their body (instead of

Re: how to quote nested tags

2001-06-21 Thread Felix von Delius
On Thu, Jun 21, 2001 at 12:57:03PM +0200, Lacerda, Wellington (AFIS) wrote: On your doStartTag you create the object you want to store, then use the implicitly defined pageContext object to store it: MyBean someBean = pageContext.setAttribute(theNameYouExposed, someBean,

RE: how to quote nested tags

2001-06-21 Thread Lacerda, Wellington (AFIS)
of the page. Wellington -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 2:06 PM To: [EMAIL PROTECTED] Subject: Re: how to quote nested tags On Thu, Jun 21, 2001 at 12:57:03PM +0200, Lacerda, Wellington (AFIS) wrote: On your doStartTag you

Re: how to quote nested tags

2001-06-21 Thread Felix von Delius
On Thu, Jun 21, 2001 at 02:31:10PM +0200, Roland Huss wrote: What's about writing a wrapper tag which introduces a bean like this: new:evaluator id=evalBean my:foo a='bar' /new:evaluator new:evaluator id=evalBean my:bar b=%= evalBean.toString() %/ /new:evaluator my:baz b=%=

Re: how to quote nested tags

2001-06-21 Thread Roland Huss
[EMAIL PROTECTED] (Felix von Delius) writes: I guess that would work, thanks. But that brings me to another idea - wouldn't it be easier to define a Bean to keep that temporary value? Like this: jsp:useBean id=tempBean class=some.strange.JavaBean jsp:setProperty name=tempBean

Re: how to quote nested tags

2001-06-21 Thread frank waldheim
* Lacerda, Wellington (AFIS) [EMAIL PROTECTED] 2001-06-21 (12:19:08): In the current spec it is not allowed to use a tag inside another tag. apparently resin doesn't care much about that restriction. where did you read that? but it deals with 'request time attributes' (2.13.1 1.2spec). in a

Re: how to quote nested tags

2001-06-21 Thread Felix von Delius
On Thu, Jun 21, 2001 at 03:47:26PM +0200, Roland Huss wrote: [EMAIL PROTECTED] (Felix von Delius) writes: jsp:useBean id=tempBean class=some.strange.JavaBean jsp:setProperty name=tempBean property=str value=x:foo a='bar' / / /jsp:useBean x:baz b='jsp:getProperty

RE: how to quote nested tags

2001-06-21 Thread Lacerda, Wellington (AFIS)
Indeed, it just takes the literal expression of the tag. Wellington -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 4:35 PM To: [EMAIL PROTECTED] Subject: Re: how to quote nested tags On Thu, Jun 21, 2001 at 03:47:26PM +0200, Roland

Re: how to quote nested tags

2001-06-21 Thread Martin Cooper
: Re: how to quote nested tags * Lacerda, Wellington (AFIS) [EMAIL PROTECTED] 2001-06-21 (12:19:08): In the current spec it is not allowed to use a tag inside another tag. apparently resin doesn't care much about that restriction. where did you read that? but it deals with 'request time

RE: how to quote nested tags

2001-06-21 Thread Lacerda, Wellington (AFIS)
that if it is not something off-spec, some addition. Wellington -Original Message- From: frank waldheim [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 4:07 PM To: '[EMAIL PROTECTED]' Subject: Re: how to quote nested tags * Lacerda, Wellington (AFIS) [EMAIL PROTECTED] 2001-06-21 (12:19:08