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: import javax.servlet.http.HttpServletRequest;
09: import javax.servlet.http.HttpServletResponse;
10: import java.net.URL;
11:
12: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
13: import com.sun.portal.desktop.taglib.DesktopTaglibException;
14: import com.sun.portal.providers.Provider;
15: import com.sun.portal.providers.ProviderException;
16:
17: public class GetHelpTag extends BaseDesktopTagSupport {
18: public int doStartTag() throws JspException {
19: Provider p = (Provider) getCurrentObj();
20: URL helpURL = null;
21: try {
22: helpURL = p.getHelp((HttpServletRequest) pageContext
23: .getRequest());
24: } catch (Throwable t) {
25: return processException(new DesktopTaglibException(t), "");
26: }
27: processResult(helpURL);
28: return SKIP_BODY;
29: }
30: }
|