On Sun, 18 Mar 2001, James Carroll wrote:

> 
> Hi,
> 
> in my web.xml in the part that specifies:
>     <context-param>
>       <param-name>databaseURL</param-name>
>     </context-param>
> 
> this works:
>     <param-value>jdbc:mysql://localhost/db</param-value>
> 
> but this doesn't:
>  
> <param-value>jdbc:mysql://localhost/db?user=name&password=pw</param-valu
> e> 
> 
> Either the ? or the & is messing up the parser... 
> 

It's definitely the "&", which is normally the prefix for an XML escape.

Replace "&" by "&amp;" and it should work.

> Is this a bug? or is there a way of escaping the special characters?
> 
> Thanks!
> -Jim Carroll
> 

Craig McClanahan

Reply via email to