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
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
See also the posting I made a few days ago regarding validation. I've pasted
it below.
The main idea is to use the java.text.Format class to do the validation and
transformation
between Strings and objects (both ways). The XML customization you're
talking about should achieve
this double goal:
Joel Regen wrote:
David,
Wouldn't it make sense to introduce a few attributes to the template tags
that allow specification of values using references to beans? This idea is
used extensively in the other struts tags. Look at the html:link tag, for
example. It allows you to specify a bean