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.table;
06:
07: import javax.servlet.jsp.JspException;
08: import javax.servlet.http.HttpServletRequest;
09:
10: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
11: import com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider;
12:
13: public class IsPopupTag extends BaseDesktopTagSupport {
14: public int doStartTag() throws JspException {
15: JSPTableContainerProvider tcp = (JSPTableContainerProvider) getContainer();
16: String containerName = tcp.getName();
17: HttpServletRequest req = (HttpServletRequest) pageContext
18: .getRequest();
19: String channelAction = req.getParameter(containerName
20: + ".channelAction");
21: Boolean result = (channelAction != null && channelAction
22: .equals("popup")) ? Boolean.TRUE : Boolean.FALSE;
23: processResult(result);
24: return SKIP_BODY;
25: }
26: }
|