- All Implemented Interfaces:
- ReplayParseEventDelegatorVisitor, OpenTagHandler
public class AfterBodyStartTagJSPExecRule
extends JSPExecRule
implements ReplayParseEventDelegatorVisitor, OpenTagHandler
This Rule fires just after the BODY start tag, emitting the result of the
replay .jsp into the resulting page at that point.
Sounds simple, BUT, it's possible there is no BODY start tag...
In case this happens, we watch *ALL* tags go by, before they've been output,
and if we see any start tags not of the following types:
html,head,base,link,meta,title,style,script
we emit our content then and there.
We also ensure we don't emit twice by storing a flag in the ParseContext once
we do emit.
Lastly, if we see a "FRAMESET" tag in the page, we hold off on inserting
our content.
- Author:
- brad