/**
* @see javax.servlet.jsp.tagext.Tag#doStartTag()
*/
public int doStartTag() throws JspException {
Roller roller = RollerFactory.getRoller();
WeblogEntryData entry = (WeblogEntryData)
RequestUtils.lookup(pageContext, name, property, scope);
String sourceText = null;
boolean hasSummary = Utilities.isNotEmpty(entry.getSummary());
boolean hasText= Utilities.isNotEmpty(entry.getText());
if (singleEntry) {
if (hasText) sourceText = entry.getText();
else if (hasSummary) sourceText = entry.getSummary();
} else {
if (hasSummary) sourceText = entry.getSummary();
else if (hasText) sourceText = entry.getText();
}
if (Utilities.isNotEmpty(sourceText)) {
try {
String xformed = sourceText;
if (entry.getPlugins() != null) {
RollerContext rctx =
RollerContext.getRollerContext();
try {
PagePluginManager ppmgr = roller.getPagePluginManager();
Map plugins = ppmgr.createAndInitPagePlugins(
entry.getWebsite(), rctx.getServletContext(),
rctx.getAbsoluteContextUrl((HttpServletRequest)pageContext.getRequest()),
new VelocityContext());