This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet deployment descripter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet deployment descripter" Watch "servlet deployment descripter" New topic

servlet deployment descripter

abani patra
Ranch Hand

Joined: Oct 11, 2011
Posts: 70
I am creating a web application using some init param for servlet.
I am using tomcat 6.
When I am using a '&' character in init param value tag I am getting error.
What may be the reason.

Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

What is the error? Could you post the code of the init here?

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Properly you need to encode the "&" character.
& a m p ;
Or try the unicode definition: \u0026
I agree. Here's the link:
subject: servlet deployment descripter
It's not a secret anymore!