How the struts framework does identifies the client language and there by
uses the Message Resources for Internationalization..
request.getHeader("accept-language") is giving the string as below
accept-language-pl,en-us;q=0.7,de;q=0.3
I need to identify if my request is from polish /English language directly.
is there facility inside the framework ?
CODE
Enumeration e=request.getHeaderNames();
while(e.hasMoreElements()){
strTemp=(String)e.nextElement();
System.out.println(strTemp + "-"+request.getHeader(strTemp) );
}