File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Confusion in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Confusion in web.xml

c shah

Joined: May 12, 2011
Posts: 10
I wrote <?xml version="1.0" encoding="ISO-8851-1" ?> in web.xml and tried to compile but i got Http 404 error saying the requested resource is not available.Then i changed it to <?xml version="1.0" encoding="ISO-8859-1" ?> and then compiled.
It worked perfectly.Can anyone please tell me how that encoding attribute affects the application
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12678
The problem came up before: see this set of messages.

When I searched for ISO-8851-1 it led to a page having to do with Butter standards so I think wherever you read 8851 instead of 8859 was a misprint.


Java Resources at
I agree. Here's the link:
subject: Confusion in web.xml
Similar Threads
Non-English characters
Looking for your help in fixing a issue in tag library.
Unable to Run a Servlet in Apache Tomcat
Ansi encoding XML files?
EL not working in my jsp