Re: Does a static directory now always take precedence to a url-pattern?

2007-12-30 Thread Mark Thomas
Tad Woods wrote: > However, looking at the Tomcat Manager, my web app now appears twice, once > under "/root" and again under "/". That makes sense if the directories under > the appBase are now automatically added as Contexts. Try using ROOT. Case is important. > So, why not just do the followin

RE: Does a static directory now always take precedence to a url-pattern?

2007-12-30 Thread Tad Woods
I first changed my configuration as follows, moving what was under "public_html" under "root". This works, and the does take precedence again over directories of the same name as the pattern, which is good. However, looking at the Tomcat Manager, my web app now appears twice, once under "/roo

RE: jdbc sql update doesn't work

2007-12-30 Thread Martin Gainty
first you need to configure your DataSource in /WEB-INF/web.xml as in this example javax.servlet.jsp.jstl.sql.dataSource jdbc:mysql://hostname:Port/DBName,com.mysql.jdbc.Driver,username,password Martin _

Re: jdbc sql update doesn't work

2007-12-30 Thread Alan Chaney
What steps have you taken to debug this problem? For example: 1. Enable debug logging. 2. Insert debugging statements into the code and follow the control flow 3. Break down the problem into its components. - test the SQL statements with a command line program (psql if you are using Postgresq

RE: jdbc sql update doesn't work

2007-12-30 Thread rameau rameau1982
The logs don't say anything because there's no errors. It simply doesn't update the database without giving errors. > Date: Sun, 30 Dec 2007 10:38:45 +> From: [EMAIL PROTECTED]> To: > users@tomcat.apache.org> Subject: Re: jdbc sql update doesn't work> > rameau > rameau1982 wrote:> > hi!> >

Re: jdbc sql update doesn't work

2007-12-30 Thread Pid
rameau rameau1982 wrote: > hi! > When trying to do an update on my database via JDBC it doesn't do > anything. I give you the sources and if somebody can help me it would be > great! thank's! > PS: everything else works perfectly. What do the logs say? p > -

jdbc sql update doesn't work

2007-12-30 Thread rameau rameau1982
hi!When trying to do an update on my database via JDBC it doesn't do anything. I give you the sources and if somebody can help me it would be great! thank's! PS: everything else works perfectly. _ La vida de los famosos al desnudo en

RE: javax.servlet.ServletException

2007-12-30 Thread rameau rameau1982
Well, the index.html is in the context root directory, not inside the web-inf. After doing the deployment, when you access in your browser to the path: localhost:8080/practica3/ it presents you automatically the index.html. You don't need to put the wellcome file tag in the web.xml because tomc