You could have your tag simulate being the JSP container by instantiating an
instance of org.apache.struts.taglib.html.TextTag and invoking it based upon
what the javadocs say is the invocation sequence for Tags
[http://www.javasoft.com/j2ee/j2sdkee/techdocs/api/javax/servlet/jsp/tagext/
Tag.html] and BodyTags
[http://www.javasoft.com/j2ee/j2sdkee/techdocs/api/javax/servlet/jsp/tagext/
BodyTag.html] (I think TextTag is a BodyTag).

With this way, you would not really be creating Struts tags for real, but
would be simulating what outcome you desired.

Perhaps you already considered this?

-- Stoehr


-----Original Message-----
From: Young, Wayne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 09:22 AM
To: Struts-Dev@Jakarta. Apache. Org (E-mail)
Subject: recursive tag


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]

Reply via email to