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:
13: import com.sun.portal.desktop.util.Integers;
14:
15: public class GetEditTypeTag extends BaseDesktopTagSupport {
16: public int doStartTag() throws JspException {
17: Provider p = (Provider) getCurrentObj();
18: int editType = 0;
19: try {
20: editType = p.getEditType();
21: } catch (Throwable t) {
22: return processException(new DesktopTaglibException(t),
23: Integers.get(0));
24: }
25: processResult(Integers.get(editType));
26: return SKIP_BODY;
27: }
28: }
|