Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Manually calling a BodyTagSupport tag from inside another custom tag.  RSS feed

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a Spring ErrorsTag to display stuff, and calling it from a BodyTagSupport tag I wrote (ErrorsTagWrapper extends BodyTagSupport).
That wrapper is only doing String substitution.

Now, the question I have and can't find documentation for. My ErrorsTagWrapper is called from another piece of Java. Should I be calling doAfterBody()? How do you programatically call a BodyTagSupport tag from Java, instead of JSP?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!