01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.components;
06:
07: import com.opensymphony.xwork.util.OgnlValueStack;
08:
09: import javax.servlet.http.HttpServletRequest;
10: import javax.servlet.http.HttpServletResponse;
11:
12: /**
13: * <!-- START SNIPPET: javadoc -->
14: *
15: * Render action messages if they exists, specific rendering layout depends on the
16: * theme itself.
17: *
18: * <!-- END SNIPPET: javadoc -->
19: *
20: * <p/> <b>Examples</b>
21: *
22: * <pre>
23: * <!-- START SNIPPET: example -->
24: * <ww:actionmessage />
25: * <ww:form .... >
26: * ....
27: * </ww:form>
28: * <!-- END SNIPPET: example -->
29: * </pre>
30: *
31: * @author tm_jee
32: * @version $Date: 2006-01-07 21:43:28 +0100 (Sat, 07 Jan 2006) $ $Id: ActionMessage.java 1924 2006-01-07 20:43:28Z plightbo $
33: * @ww.tag name="actionmessage" tld-body-content="empty" tld-tag-class="com.opensymphony.webwork.views.jsp.ui.ActionMessageTag"
34: * description="Render action messages if they exists"
35: * @since 2.2
36: */
37: public class ActionMessage extends UIBean {
38:
39: private static final String TEMPLATE = "actionmessage";
40:
41: public ActionMessage(OgnlValueStack stack,
42: HttpServletRequest request, HttpServletResponse response) {
43: super (stack, request, response);
44: }
45:
46: protected String getDefaultTemplate() {
47: return TEMPLATE;
48: }
49: }
|