01: /**
02: * @author <a href="mailto:michael.russell@aei.mpg.de">Michael Russell</a>
03: * @version $Id: ActionBodyTag.java 6385 2007-10-25 14:02:26Z wehrens $
04: */package org.gridsphere.provider.portletui.tags;
05:
06: import javax.servlet.jsp.JspException;
07:
08: /**
09: * Represents the body of a selection on an action menu.
10: */
11: public class ActionBodyTag extends BaseComponentTag {
12:
13: public int doStartTag() throws JspException {
14:
15: // Print the string
16: try {
17: pageContext.getOut().print("<div id=\"actionbody\">");
18: } catch (Exception e) {
19: throw new JspException(e.getMessage());
20: }
21:
22: return EVAL_BODY_INCLUDE;
23: }
24:
25: public int doEndTag() throws JspException {
26:
27: try {
28: pageContext.getOut().print("</div>");
29: } catch (Exception e) {
30: throw new JspException(e.getMessage());
31: }
32:
33: return EVAL_PAGE;
34: }
35: }
|