It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center。
7年前关闭。
我需要在浏览器上执行语言检查,并通过使用java和wicket告诉使用哪种语言。我尝试检查浏览器的语言环境,但无法正常工作
7年前关闭。
我需要在浏览器上执行语言检查,并通过使用java和wicket告诉使用哪种语言。我尝试检查浏览器的语言环境,但无法正常工作
最佳答案
这可能对您有帮助
Enumeration headerNames = request.getHeaderNames();
while(headerNames.hasMoreElements()) {
String headerName = (String)headerNames.nextElement();
out.println(headerName);
out.println(request.getHeader(headerName));
}
07-24 20:45