I have a tag inside which a few other tags can be used OR can be used in
any order. An end user decides which tag ('s info) to display or in what
order. For example,
example 1:
<example:A>
<example:b/>
<example:c/>
<example
/>
</example:A>
example 1:
<example:A>
<example
/>
<example:b/>
</example:A>
I hope to write a SINGLE JSP page that can display info in the above examples' way.
I am trying to write a custom tag which is used in the following way:
<example:A>
<example:generate/>
</example:A>
The job of the generate tag is dynamically creating a string such as
<example
/><example:b/>
and inserting it into the body of tag A and evalute its body.
I have tried both simple tags and classic tags but have failed to
create a solution. I cannot find a way to manipulate the tag body and
evaluate it dynamically.
Am I doing the right thing? Is it possible for me to create a solution based
on the current JSP specification? Any other ways of doing this type of thing?
Really hope to hear from JSP/tag experts on this forum.
Thanks very much in advance!!
Pete.