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.desktop.taglib.DesktopTaglibException;
12: import com.sun.portal.providers.ProviderException;
13: import com.sun.portal.providers.containers.jsp.table.JSPTableContainerProvider;
14:
15: public class GetPopupWindowWidthTag extends
16: BaseTableContainerTagSupport {
17: public int doStartTag() throws JspException {
18: JSPTableContainerProvider tcp = (JSPTableContainerProvider) getContainer();
19: int result = -1;
20: try {
21: result = tcp.getPopupWindowWidth(
22: (HttpServletRequest) pageContext.getRequest(),
23: getChannelName());
24: } catch (ProviderException pe) {
25: throw new DesktopTaglibException(pe);
26: }
27: processResult(new Integer(result));
28: return SKIP_BODY;
29: }
30:
31: }
|