i am using tomcat server now
with nokia 3.0.1 browser
i have written a jsp file as below with xhtml content and also i have set mime types for xhtml in web.xml file found in conf directory...but when i call this page from the browser it is giving me error:bad content encountered.Can you tell me where exactly i should include mime settings.
Your code seems correct. But notice that you need to do several things before you can make your code works.
Have you make sure the web.xml file has been applied to the correct directary? Are you sure the web.xml is taking effect? Try to verify this by putting some static sample xhtml pages (e.g., from NMIT3.1 sample folder) under the Tomcat directary you are working on, and see if you can get them from Nokia 3.0.1 browser.
I tried with static xhtml page ..it worked.
I did a small change to my jsp page, I removed the content type.
It worked fine...
Is it ok if there in no content type in the jsp page.
I think it worked because i had already set it in the web.xml right?