千山鸟飞绝 万径人踪灭
勤练内功,不断实践招数。争取早日成为武林高手

我的评论

re: JSP下获取手机号码 笑口常开、财源滚滚来! 2009-09-17 20:34  
//取手机号
String mobile = "" ;
String MO="";
String temvit = "";
String version = "";

Enumeration headerNames = request.getHeaderNames();
while(headerNames.hasMoreElements()) {
String headerName = (String)headerNames.nextElement();
if (headerName.equals("x-up-calling-line-id")) {
temvit=request.getHeader(headerName);
if (temvit.substring(0,3).trim().equals("861")) {
mobile=temvit.substring(2,13);
}
if (temvit.substring(0,2).trim().equals("13")) {
mobile=temvit;
}
}

if (headerName.equals("user-agent")) {
MO=request.getHeader(headerName);
}

if (headerName.equals("x-up-calling-line-id")) {
temvit=request.getHeader(headerName);
if (temvit.substring(0,2).trim().equals("13")) {
mobile=temvit;
}
}
}

转载自http://www.cnwzz.net/art/33/200811/12-269.html
re: log4j配置祥解 笑口常开、财源滚滚来! 2009-08-29 19:32  
谢谢了。收藏了。