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:
09: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
10: import com.sun.portal.desktop.taglib.DesktopTaglibException;
11: import com.sun.portal.providers.ProviderException;
12: import com.sun.portal.providers.containers.jsp.tab.JSPTabContainerProvider;
13:
14: public class GetStartTabNameTag extends BaseDesktopTagSupport {
15: public int doStartTag() throws JspException {
16: JSPTabContainerProvider tcp = (JSPTabContainerProvider) getCurrentObj();
17: String result = null;
18: try {
19: result = tcp.getStartTabName();
20: } catch (ProviderException pe) {
21: throw new DesktopTaglibException(pe);
22: }
23: processResult(result);
24: return SKIP_BODY;
25: }
26:
27: }
|