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.provider;
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.Provider;
12: import com.sun.portal.providers.ProviderException;
13:
14: public class GetTitleTag extends BaseDesktopTagSupport {
15: public int doStartTag() throws JspException {
16: Provider p = (Provider) getCurrentObj();
17: String title = null;
18: try {
19: title = p.getTitle();
20: } catch (Throwable t) {
21: return processException(new DesktopTaglibException(t), "");
22: }
23: processResult(title);
24: return SKIP_BODY;
25: }
26: }
|