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 SetClientPropertyTag extends BaseProviderContextTagSupport {
15: private String m_name = null;
16: private String m_val = null;
17:
18: public void setName(String name) throws DesktopTaglibException {
19: m_name = resolveParameter(name).toString();
20: }
21:
22: public void setValue(String value) throws DesktopTaglibException {
23: m_val = resolveParameter(value).toString();
24: }
25:
26: public int doStartTag() throws JspException {
27: ProviderContext pc = getCurrentProviderContext();
28:
29: pc.setClientProperty(m_name, m_val);
30: return SKIP_BODY;
31: }
32: }
|