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.tab;
06:
07: import javax.servlet.jsp.JspException;
08: import javax.servlet.http.HttpServletRequest;
09: import java.net.URL;
10:
11: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
12: import com.sun.portal.desktop.taglib.DesktopTaglibException;
13: import com.sun.portal.providers.ProviderException;
14: import com.sun.portal.providers.containers.jsp.tab.JSPTabContainerProvider;
15:
16: public class GetTabURLTag extends BaseTabContainerTagSupport {
17: public int doStartTag() throws JspException {
18: JSPTabContainerProvider tcp = (JSPTabContainerProvider) getCurrentObj();
19: URL result = null;
20: try {
21: result = tcp.getTabURL(getCurrentTab(),
22: (HttpServletRequest) pageContext.getRequest());
23: } catch (ProviderException pe) {
24: throw new DesktopTaglibException(pe);
25: }
26: processResult(result);
27: return SKIP_BODY;
28: }
29:
30: }
|