01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.taglib.provider;
06:
07: import javax.servlet.jsp.JspException;
08:
09: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
10: import com.sun.portal.desktop.taglib.DesktopTaglibException;
11: import com.sun.portal.providers.Provider;
12: import com.sun.portal.providers.ProviderException;
13:
14: public class GetRefreshTimeTag extends BaseDesktopTagSupport {
15: public int doStartTag() throws JspException {
16: Provider p = (Provider) getCurrentObj();
17: long refreshTime = 0;
18: try {
19: refreshTime = p.getRefreshTime();
20: } catch (ProviderException pe) {
21: throw new DesktopTaglibException(pe);
22: }
23: processResult(new Long(refreshTime));
24: return SKIP_BODY;
25: }
26: }
|