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.util;
06:
07: import javax.servlet.jsp.JspException;
08: import javax.servlet.jsp.JspWriter;
09: import javax.servlet.ServletContext;
10: import java.io.IOException;
11:
12: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
13: import com.sun.portal.desktop.taglib.DesktopTaglibException;
14: import com.sun.portal.desktop.DesktopRequestThreadLocalizer;
15:
16: public class SContentTag extends BaseDesktopTagSupport {
17: public int doStartTag() throws JspException {
18: try {
19: JspWriter out = pageContext.getOut();
20: out.print(DesktopRequestThreadLocalizer.getRequest()
21: .getContextPath());
22: } catch (IOException ioe) {
23: throw new DesktopTaglibException(ioe);
24: }
25: return SKIP_BODY;
26: }
27: }
|