1
2
3
4
5 package net.sf.wfnm.web.taglib;
6
7 import net.sf.wfnm.NavigationContextFactory;
8
9 import javax.servlet.jsp.JspException;
10 import javax.servlet.jsp.tagext.TagSupport;
11
12
13 /***
14 * This tag allows to notify that a page has to be ignored by the WFNM framework.
15 *
16 * @author <a href="mailto:malbari@users.sourceforge.net">Maurizio Albari</a>
17 * @version 1.0.6
18 */
19 public class IgnoreTag extends TagSupport {
20 /***
21 * Implements the start tag method.
22 *
23 * @return always SKIP_BODY in order to skip the body
24 *
25 * @throws JspException if something fails
26 */
27 public int doStartTag() throws JspException {
28 NavigationContextFactory.getInstance().setIgnorePage(true);
29
30 return SKIP_BODY;
31 }
32 }