</pre><pre name="code" class="html">
<c:if test="${iphoneRequest}">
<meta name="viewport" content="user-scalable=no,initial-scale=0.5">
</c:if>
<c:if test="${!iphoneRequest}">
<meta name="viewport" content="user-scalable=no">
</c:if>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta name="format-detection" content="telephone=no">
<meta content="telephone=no" name="format-detection">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
private boolean iphoneRequest;
public boolean isIphoneRequest() {
iphoneRequest = false;
String userAgent = this.getRequest().getHeader("user-agent");
if(null!=userAgent && !userAgent.equals("")){
iphoneRequest = userAgent.contains("iPhone");
}
return iphoneRequest;
}
public void setIphoneRequest(boolean iphoneRequest) {
this.iphoneRequest = iphoneRequest;
}