Language loading method and device in j2ee system
A technology for loading devices and languages, applied in the field of computer networks, can solve problems such as the inability to use the J2EE system normally, unable to find the modified language, and incomprehensible foreign users, so as to save memory, simplify the system language or language types, increase or Reduce simple effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0021] see figure 1 As shown, a language loading method in a J2EE system includes the following steps:
[0022] Step S101 , obtaining an IP (Internet Protocol, Internet Protocol) of a client, and obtaining address information of the client according to the IP.
[0023] There are many ways to obtain the IP of the client. In the embodiment of the present invention, the following code can be used to obtain the IP of the client:
[0024] public String getIpAddr(HttpServletRequestrequest){
[0025] String ip=request. getHeader("x-forwarded-for");
[0026] if(ip==null||ip.length()==0||"unknown".equalsIgnoreCase(ip)){
[0027] ip=request.getHeader("Proxy-Client-IP");
[0028]}
[0029] if(ip==null||ip.length()==0||"unknown".equalsIgnoreCase(ip)){
[0030] ip=request.getHeader("WL-Proxy-Client-IP");
[0031]}
[0032] i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

