there are two solutions:
- the first one: ask the user about his country then display the appropriate page depending on his answer.
- the second solution is using the following code:
Locale userLocale = request.getLocale();
if(userLocale.getCountry().equalsIgnoreCase("US")){
//display US Page
}else{
//display the other page
}
but remeber that the getLocale() method may return null or return the server Locale depending on the
Servlet Container Implementation. so, you can not depend on the second solution.