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: import javax.servlet.http.HttpServletRequest;
09: import javax.servlet.http.HttpServletResponse;
10: import java.net.URL;
11:
12: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
13: import com.sun.portal.providers.Provider;
14: import com.sun.portal.providers.ProviderException;
15:
16: public class IsPresentableTag extends BaseDesktopTagSupport {
17: public int doStartTag() throws JspException {
18: Provider p = (Provider) getCurrentObj();
19: boolean isPresentable = false;
20: isPresentable = p
21: .isPresentable((HttpServletRequest) pageContext
22: .getRequest());
23: processResult(new Boolean(isPresentable));
24: return SKIP_BODY;
25: }
26: }
|