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.providerContext;
06:
07: import javax.servlet.jsp.JspException;
08: import javax.servlet.http.HttpServletRequest;
09:
10: import com.sun.portal.providers.context.ProviderContext;
11:
12: import com.sun.portal.desktop.taglib.DesktopTaglibException;
13:
14: public class IsAuthlessUserTag extends BaseProviderContextTagSupport {
15: private HttpServletRequest m_request = null;
16:
17: public void setRequest(String request)
18: throws DesktopTaglibException {
19: m_request = (HttpServletRequest) resolveParameter(request);
20: }
21:
22: public int doStartTag() throws JspException {
23: ProviderContext pc = getCurrentProviderContext();
24: boolean result = false;
25: result = pc.isAuthless(m_request);
26: processResult(new Boolean(result));
27: return SKIP_BODY;
28: }
29: }
|