Martin,
I do not believe that what you suggest would work.
My understanding is that when a jsp is compiled, all
the custom taglibs and the jsp are compiled into one huge
servlet. So at runtime, the container knows nothing about
custom tags or taglibs, just servlets. Since the doAfterBody()
method would be invoked at run time, there is no means to translate
the Body's Output into servlet code, and then re-execute it.
The jsp spec does mention that Body Content of a Body tag can be
processed, however,
I am not sure that this means it can be processed as another Taglib
rather,
just as text.
regards,
Nick
[EMAIL PROTECTED] wrote:
>
> You should be able to do this by creating a custom tag that writes your
> initial output (the <struts:text> tags you suggested from your example) to
> the body, and then returns EVAL_BODY_TAG from doAfterBody() to cause the
> body to be reevaluated. Take a look at the JSP spec (e.g. the section on
> Actions with Body) for more on this.
>
> Hope this helps.
>
> --
> Martin Cooper
> Tumbleweed Communications
>
> At 08:22 AM 2/27/01 -0600, Young, Wayne wrote:
> >Does anyone know how to create a tag that produces struts tags & then
> >recursively processes them.
> >
> >Something like:
> ><app:databyschema schema="test"/>
> >is processed and returns
> ><struts:text property="field1" size="16" maxlength="16"/>
> ><struts:text property="field2" size="16" maxlength="16"/>
> >which is then processed to HTML.
> >
> >Any help would be appreciated.
> >
> >Thanks.
> >
> >Wayne
> >[EMAIL PROTECTED]