Senthilvel,
>
> <%
> Locale locale = renderRequest.getLocale();
> ResourceBundle res = portletConfig.getResourceBundle (locale);
> String language = locale.getLanguage();
> out.println(language);
> %>
You can use at least two different ways: you could use the Java
processor:
http://www.orbeon.com/ops/doc/processors-javaThe Java code would contain something like this:
ExternalContext externalContext
= (ExternalContext)
pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT);
String language = externalContext
.getRequest()
.getLocale()
.getLanguage();
Then you would output the result as XML.
You could also probaly access this by calling Java from XSLT, using
the oxf:unsafe-xslt processor and Saxon's mechanisms to call Java
code:
http://www.saxonica.com/documentation/extensibility/functions.htmlYou would be trying to write the equivalent of:
org.orbeon.oxf.pipeline.StaticExternalContext
.getStaticContext()
.getExternalContext()
.getRequest()
.getLocale()
.getLanguage()
I think the best solution would be for the oxf:request processor to
support outputting locale information, but this is a little bit of
code to write in RequestGenerator.java.
-Erik
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws