File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Is re-evaluation possible in SimpleTags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Is re-evaluation possible in SimpleTags?" Watch "Is re-evaluation possible in SimpleTags?" New topic
Author

Is re-evaluation possible in SimpleTags?

Musa Ali
Greenhorn

Joined: Jun 19, 2013
Posts: 2
Hi!

Before JSP 2, there was an option in the custom tag libraries, "EVAL_BODY_AGAIN" and others like that which made the server re-evaluate the body of the tag after you change it. So you could write a code in a custom tag that outputs other custom tags. You could also use this for a sort of recursion.

I wish to know if this functionality is possible in SimpleTags. Is it?

I know that if your custom tag (which extends SimpleTagSupport) writes other custom tags, they are not evaluated. Not even the JSTL ones. I know that invoke() evaluates the body and writes the result to a supplied writer. One of my guesses was that if we change the body and call invoke again it would work. But SimpleTags store the body as a JspFragment and i could find no way to change it.

I would love to hear everyone's thoughts on this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is re-evaluation possible in SimpleTags?