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.providers.Provider;
10: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
11:
12: public class GetProviderNameTag extends BaseDesktopTagSupport {
13: public int doStartTag() throws JspException {
14: String result = null;
15: Provider p = (Provider) getCurrentObj();
16: String classFullName = p.getClass().getName();
17: result = classFullName
18: .substring(classFullName.lastIndexOf('.') + 1);
19: processResult(result);
20: return SKIP_BODY;
21: }
22: }
|