This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
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.

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