1
2
3
4
5 package net.sf.wfnm.web.taglib;
6
7 import net.sf.wfnm.web.NotifyFactory;
8
9 import javax.servlet.http.HttpServletRequest;
10 import javax.servlet.jsp.JspException;
11 import javax.servlet.jsp.tagext.TagSupport;
12
13
14 /***
15 * This tag allows to notify that a page has been reached. This tag should be used with J2EE implementations prior to
16 * 1.4 only. For J2EE 1.4 implementations, the raccomanded way to notify that a page has been reached is the
17 * PageNotifierFilter, which into a J2EE 1.4 environment can be configured to handle both FORWARD and REQUEST.
18 *
19 * @author <a href="mailto:malbari@users.sourceforge.net">Maurizio Albari</a>
20 * @version 1.0.6
21 */
22 public class NotifyTag extends TagSupport {
23 /***
24 * Implements the start tag method.
25 *
26 * @return always SKIP_BODY in order to skip the body
27 *
28 * @throws JspException if something fails
29 */
30 public int doStartTag() throws JspException {
31 NotifyFactory.notifyPage((HttpServletRequest) pageContext.getRequest());
32
33 return SKIP_BODY;
34 }
35 }