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