holger1306
16.06.2007, 17:26:03
Angeblich ist es ganz einfach, folgendes jsp-script in php umzuwandeln. Von jsp hab in null Ahnung. Kann das hier jemand ?
<body>
<p>Hello world. Welcome to our XHTML MP tutorial.</p>
</body>
</html>
<%
String acceptHeader = request.getHeader("accept");
if (acceptHeader.indexOf("application/vnd.wap.xhtml+xml") != -1)
response.setContentType("application/vnd.wap.xhtml+xml");
else if (acceptHeader.indexOf("application/xhtml+xml") != -1)
response.setContentType("application/xhtml+xml");
else
response.setContentType("text/html");
%>
<body>
<p>Hello world. Welcome to our XHTML MP tutorial.</p>
</body>
</html>
<%
String acceptHeader = request.getHeader("accept");
if (acceptHeader.indexOf("application/vnd.wap.xhtml+xml") != -1)
response.setContentType("application/vnd.wap.xhtml+xml");
else if (acceptHeader.indexOf("application/xhtml+xml") != -1)
response.setContentType("application/xhtml+xml");
else
response.setContentType("text/html");
%>