시험해보세요.
내 index.jsp를
<%--
Document : index
Created on : Apr 17, 2013, 7:11:53 PM
Author : Prabhakar
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Detect</title>
<%
String ua = request.getHeader("User-Agent");
boolean isFirefox = (ua != null && ua.indexOf("Firefox/") != -1);
boolean isMSIE = (ua != null && ua.indexOf("MSIE") != -1);
response.setHeader("Vary", "User-Agent");
%>
</head>
<% if(isMSIE){
response.sendRedirect("ie.action");
} else if(isFirefox) {
response.sendRedirect("mozilla.action");
}else{
response.sendRedirect("default.action");
} %>
</body>
</html>
은 서버 지원 htaccess로의 어떤 종류를합니까? – SaidbakR
미안 .. 나는 내 회사에서 개발이 안되는 프로젝트에있다. 나는 모른다. 두 가지 조건 모두에 대한 해결책을 말해 준다. –
시험해보기 : http://stackoverflow.com/questions/9749109/user-agent-for-mobile -application-htaccess-file 그리고 이것 : http://www.htaccesstools.com/articles/detect-and-redirect-iphone/ – SaidbakR