Bear Bibeault wrote:You can't nest one EL expression within another.
Hint 1: use <c:set> to perform string concatenation to create the variable name; then use the EL expression.
Hint 2: why are you doing something so convoluted in the first place? Figure out a simpler way to accomplish the same with better variable names or constructs.
Bear Bibeault wrote:Why would you need to? The whole thing is an EL expression. You are perhaps thinking that ${} is some sort of fetch operator? if so, that's wrong. The ${} simply encompasses the entire complex EL expression.
Stefan Evans wrote:The bodyContent variable itself doesn't change, but its not immutable. Its contents can be written to - which is what the "DO BODY" part of the lifecycle would do.
Also note that you are using constants that don't exactly fit with the Body tag.
EVAL_BODY_TAG has been deprecated. You should instead use EVAL_BODY_BUFFERED (has the same constant value, so it currently works).
The doAfterBody method should return EVAL_BODY_AGAIN rather than EVAL_BODY_TAG.
I guess thats just a really old article?