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:
09: import com.sun.portal.providers.context.ProviderContext;
10:
11: import com.sun.portal.desktop.context.ContextException;
12: import com.sun.portal.desktop.taglib.DesktopTaglibException;
13:
14: public class GetClientPropertyTag extends BaseProviderContextTagSupport {
15: private String m_name = null;
16:
17: public void setName(String name) throws DesktopTaglibException {
18: m_name = resolveParameter(name).toString();
19: }
20:
21: public int doStartTag() throws JspException {
22: ProviderContext pc = getCurrentProviderContext();
23: String prop = null;
24: prop = pc.getClientProperty(m_name);
25: processResult(prop);
26: return SKIP_BODY;
27: }
28: }
|