You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mu...@fantasymail.de on 2007/07/04 13:19:22 UTC
service method in BaseEngine
Has anyone an idea why the following code will not work?
public void service(WebRequest webRequest, WebResponse webResponse) throws IOException {
if (webRequest.getServerName().startsWith("en.")){
this._locale=new Locale("en","");
}
else {
this._locale=new Locale("de","");
}
...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: service method in BaseEngine
Posted by Ma...@bmw.ch.
I wonder, why it even compiles ;). _locale is a private member! Try
using setLocale() instead.
> -----Original Message-----
> From: munich@fantasymail.de [mailto:munich@fantasymail.de]
> Sent: Wednesday, July 04, 2007 1:19 PM
> To: Tapestry users
> Subject: service method in BaseEngine
>
> Has anyone an idea why the following code will not work?
>
> public void service(WebRequest webRequest, WebResponse
> webResponse) throws IOException {
>
>
> if (webRequest.getServerName().startsWith("en.")){
> this._locale=new Locale("en","");
>
> }
> else {
> this._locale=new Locale("de","");
> }
>
> ...
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org