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.container;
06:
07: import javax.servlet.jsp.JspException;
08: import java.util.List;
09:
10: import com.sun.portal.providers.containers.ContainerProvider;
11: import com.sun.portal.providers.ProviderException;
12: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
13: import com.sun.portal.desktop.taglib.DesktopTaglibException;
14:
15: public class GetSelectedChannelsTag extends BaseDesktopTagSupport {
16: public int doStartTag() throws JspException {
17: ContainerProvider cp = (ContainerProvider) getCurrentObj();
18: List selectedChannels = null;
19: try {
20: selectedChannels = cp.getSelectedChannels();
21: } catch (ProviderException pe) {
22: throw new DesktopTaglibException(pe);
23: }
24: processResult(selectedChannels);
25: return SKIP_BODY;
26: }
27: }
|