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:
11: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
12: import com.sun.portal.desktop.taglib.DesktopTaglibException;
13: import com.sun.portal.providers.Provider;
14: import com.sun.portal.providers.ProviderException;
15:
16: public class GetContentTag extends BaseDesktopTagSupport {
17: public int doStartTag() throws JspException {
18: Provider p = (Provider) getCurrentObj();
19: StringBuffer sb = null;
20: try {
21: sb = p.getContent((HttpServletRequest) pageContext
22: .getRequest(), (HttpServletResponse) pageContext
23: .getResponse());
24: } catch (ProviderException pe) {
25: throw new DesktopTaglibException(pe);
26: }
27:
28: if (sb != null) {
29: processResult(sb.toString());
30: }
31: return SKIP_BODY;
32: }
33: }
|