1
2
3
4
5 package net.sf.wfnm.web.taglib;
6
7 import net.sf.wfnm.Config;
8 import net.sf.wfnm.NavigationContextFactory;
9
10 import javax.servlet.jsp.JspException;
11 import javax.servlet.jsp.tagext.TagSupport;
12
13
14 /***
15 * This tag reset the WFNM framework.
16 *
17 * @author <a href="mailto:malbari@users.sourceforge.net">Maurizio Albari</a>
18 * @version 1.0.6
19 */
20 public class ResetTag extends TagSupport {
21 /***
22 * Implements the start of the reset tag.
23 *
24 * @return always SKIP_BODY in order to skip the body
25 *
26 * @throws JspException if the parameters of this tags are wrong
27 */
28 public int doStartTag() throws JspException {
29 if (Config.getInstance().isEnabled()) {
30 NavigationContextFactory.getInstance().resetFramework();
31 }
32
33 return SKIP_BODY;
34 }
35 }