i am using jboss server.
with nokia 3.0.1 browser.
i have written a jsp file (given below)
the browser is giving an error msg: bad content type..
please help me
<% response.setContentType("application/xhtml+xml"); %>
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XHTML Mobile Profile Document</title>
</head>
<body>
<h1> Heading </h1>
<p>
Body
</p>
</body>
</html>
Perhaps you should set the content type (mime settings) in the application server's configuration files instead of within the jsp itself. For more information on mime type settings, please refer to the "Nokia Mobile Internet Toolkit XHTML Guidelines" document.
I have set the mime types as below in a file called web.xml..but still it doesnot work...is there anything to do with the browser...i mean does the browser(nokia 3.0.1) which i am using support xhtml(it accepts local xhtml files).
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
The browser has no problems viewing xhtml pages served out from an application/web server. Perhaps you could try to set the mime settings in the application server-wide web.xml too.
i tried doing that too..but i ended with messing up everything....so now i am using tomcat standalone server in my comp...but still it is not working....i had posted a question regarding this please can u help me regarding this