File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Simple Web.XML problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Simple Web.XML problem" Watch "Simple Web.XML problem" New topic
Author

Simple Web.XML problem

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
In the param-value statement below, I'm getting an error in the Tomcat log that says: "The reference to entity password must end with the ; delimiter".

I'm trying to store the login/dbconnection in the web.xml file.

Can anyone please tell me what's wrong?

Thanks in advance....

-- Mike

<param-value>jdbc:mysql://localhost/fooDB?user=fooUser&password=fooPassword</param-value>
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
Please close this item. I figured it out after posting.

The problem was I needed to escape the & in the web.xml.

Thanks.

-- Mike
 
 
subject: Simple Web.XML problem
 
Similar Threads
Problem with jakarta commons dbcp
Why this code to get Init Param in JSP not work?
Problems in Integrated Windows Authentication
Application Resources.properties
JDBC Parameters as Context Parameters?