[
https://issues.apache.org/struts/browse/WW-2435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43075#action_43075
]
Lukasz Racon commented on WW-2435:
----------------------------------
My fault, it should have been return TRUE, return false doesn't change
anything. Code wasn't used in production since it was easier to use c:set
instead of creating another build from the trunk.
Based on
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/jsp/tagext/BodyTag.html:
doStartTag() should return EVAL_BODY_BUFFERED, so BodyContent object is created
(by JSP compiler) and set on a tag.
If BodyContent is not set on a tag the StrutsBodyTagSupport.getBody returns
empty string. In this case Set.end method would use the "top" value from OGNL
stack.
> <s:set> tag does not evaluate Body
> ----------------------------------
>
> Key: WW-2435
> URL: https://issues.apache.org/struts/browse/WW-2435
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Lukasz Racon
> Assignee: Ted Husted
> Fix For: 2.1.1
>
> Attachments: Set_useBody.patch
>
>
> <s:set> tag body is not evaluated, WW-1768 forgot to override useBody method
> to return true.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.