|
From: Tim K. <tim...@vi...> - 2005-08-10 15:27:00
|
Hi,
I just wanted to pass this along, to see if a clarification could be
inserted in the spring:transform document - to note that spring:transform
should not be used to enclose any jsp body. I was kind of running around in
circles a bit because I did something like this.
<spring:bind path="foo.bar">
<spring:transform value="${status.value}" var-"valueString">
<c:out value="${valueString"/>
</spring:transform>
</spring:bind>
And I was baffled for a while why I was getting no output, and no helpful
statements from the logs. It wasn't until I walked thru the TransformTag
source and noticed that it was returning BODY_SKIP that I took a closer look
at the example jsp given in spring:transform document when I saw that the
transform tag is closed immediately (does not wrap the jsp in question).
So the example is indeed correct, but with virtually all other jsp tags
wrapping the affected JSP in question, it's easy to assume that
spring:transform works similarly, and I thought maybe it'd be helpful to
future users if a note was added to head off any confusion on that. Just
my two cents.
-tim
|