Just a simple question -- if I want to use an ampersand (or other character that is significant in XML), do I need to escape it with an entity in the web.xml ?

For instance, is this valid:

<context-param>
<param-name>dbConnectUrl</param-name>
<param-value>
jdbc:mysql://localhost:3306/eprice?user=eprice&amp;password=pass
</param-value>
</context-param>

(Note entity used in querystring of URL.)

Also, is okay to have the URL there on its own line, or will the whitespace before and after the URL be added to any getServletContext().getInitParameter() calls?


Thanks!

Erik


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to