01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.velocity.components;
06:
07: import com.opensymphony.webwork.components.Component;
08: import com.opensymphony.webwork.components.Reset;
09: import com.opensymphony.xwork.util.OgnlValueStack;
10:
11: import javax.servlet.http.HttpServletRequest;
12: import javax.servlet.http.HttpServletResponse;
13:
14: /**
15: * @see com.opensymphony.webwork.components.Reset
16: */
17: public class ResetDirective extends AbstractDirective {
18: public String getBeanName() {
19: return "reset";
20: }
21:
22: protected Component getBean(OgnlValueStack stack,
23: HttpServletRequest req, HttpServletResponse res) {
24: return new Reset(stack, req, res);
25: }
26: }
|