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.providerContext;
06:
07: import javax.servlet.jsp.JspException;
08: import java.util.Locale;
09:
10: import com.sun.portal.providers.context.ProviderContext;
11:
12: import com.sun.portal.desktop.context.ContextException;
13: import com.sun.portal.desktop.taglib.DesktopTaglibException;
14:
15: public class GetLocaleStringTag extends BaseProviderContextTagSupport {
16: public int doStartTag() throws JspException {
17: ProviderContext pc = getCurrentProviderContext();
18: String locale = null;
19: locale = pc.getLocaleString();
20: processResult(locale);
21: return SKIP_BODY;
22: }
23: }
|