01: package com.opensymphony.webwork.components;
02:
03: import com.opensymphony.xwork.util.OgnlValueStack;
04:
05: import javax.servlet.http.HttpServletRequest;
06: import javax.servlet.http.HttpServletResponse;
07:
08: /**
09: * <!-- START SNIPPET: javadoc -->
10: * Renders an HTML input element of type hidden, populated by the specified property from the OgnlValueStack.
11: * <!-- END SNIPPET: javadoc -->
12: *
13: * <p/> <b>Examples</b>
14: *
15: * <pre>
16: * <!-- START SNIPPET: example -->
17: * <-- example one -->
18: * <ww:hidden name="foo" />
19: * <-- example two -->
20: * <ww:hidden name="foo" value="bar" />
21: *
22: * Example One Resulting HTML (if foo evaluates to bar):
23: * <input type="hidden" name="foo" value="bar" />
24: * Example Two Resulting HTML (if getBar method of the action returns 'bar')
25: * <input type="hidden" name="foo" value="bar" />
26: * <!-- END SNIPPET: example -->
27: * </pre>
28: *
29: * @author Patrick Lightbody
30: * @author Rene Gielen
31: * @version $Revision: 1575 $
32: * @since 2.2
33: *
34: * @ww.tag name="hidden" tld-body-content="JSP" tld-tag-class="com.opensymphony.webwork.views.jsp.ui.HiddenTag"
35: * description="Render a hidden input field"
36: */
37: public class Hidden extends UIBean {
38: final public static String TEMPLATE = "hidden";
39:
40: public Hidden(OgnlValueStack stack, HttpServletRequest request,
41: HttpServletResponse response) {
42: super (stack, request, response);
43: }
44:
45: protected String getDefaultTemplate() {
46: return TEMPLATE;
47: }
48: }
|