01: /**
02: * $Id: UtilContextTag.java,v 1.5 2004/07/31 01:25:26 sorensen Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.wireless.taglibs.util;
14:
15: import javax.servlet.jsp.*;
16: import javax.servlet.jsp.tagext.*;
17: import com.sun.portal.wireless.taglibs.base.*;
18:
19: /**
20: * UtilContextTag - tag that represents a UtilContext
21: *
22: * @author John Saare
23: * @version 1.0
24: * @see com.sun.portal.wireless.taglibs.base.Context
25: */
26: public class UtilContextTag extends ContextTag {
27:
28: /**
29: * Return the UtilContext
30: *
31: * @return the context
32: */
33: public Context findContext() throws Exception {
34: return UtilContext.getContext(pageContext);
35: }
36:
37: /**
38: * Reset the UtilContext
39: *
40: */
41: public void reset() {
42: Context.reset(pageContext, UtilContext.CONTEXT_CLASS_NAME,
43: UtilContext.CONTEXT_CACHE_CLASS_NAME,
44: UtilContext.CONTEXT_TYPE);
45: }
46: }
|