Re: Fwd: Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elanora, [EMAIL PROTECTED] wrote: When I use sql:query var=rs dataSource=jdbc/TestDB I get: javax.servlet.ServletException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for jdbc/TestDB I

servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread ge
Hi, Servlet works, jsp not. Why? Result of servlet: Datensätze jdbc:mysql://localhost:3306/javatestcom.mysql.jdbc.Driver javauserjavadude NameVorname 1 hello 2 hellox Result of jsp: - Results ${row.foo} ${row.bar} Servlet

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elanora, ge wrote: sql:query var=rs dataSource=jdbc:mysql://localhost:3306/javatest?user=javauserpassword=javadude select id, foo, bar from testdata /sql:query I think you want to use the name of the dataSourced, here, not the URL. You want

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread David Smith
I'm going to guess the servlet spec version in your web.xml isn't up to a level that supported the JSTL expression language. What's your web.xml look like? --David ge wrote: Hi, Servlet works, jsp not. Why? Result of servlet: Datensätze

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread eleonora46
I'm going to guess the servlet spec version in your web.xml isn't up to a level that supported the JSTL expression language. What's your web.xml look like? web.xml looks: -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC

Fwd: Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread eleonora46
Please see in text my answer. ge wrote: sql:query var=rs dataSource=jdbc:mysql://localhost:3306/javatest?user=javauserpassword=javadude select id, foo, bar from testdata /sql:query I think you want to use the name of the dataSourced, here, not the URL. You want something like

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread David Smith
This thread may be very helpful to you: http://forums.sun.com/thread.jspa?messageID=3335080 Essentially you've declared your tags for jstl 1.1, which requires servlet spec 2.4, not 2.3. Replace the DOCTYPE and web-app with this in your web.xml: web-app

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread eleonora46
Please see in text This thread may be very helpful to you: http://forums.sun.com/thread.jspa?messageID=3335080 The thread is about EL- I do not use xpression Language. Essentially you've declared your tags for jstl 1.1, which requires servlet spec 2.4, not 2.3. Replace the DOCTYPE and

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread David Smith
The thread is about EL- I do not use xpression Language. What do you think ${row.foo} is? It's the expression language which isn't being interpreted by your jsp page. Also did you reload your webapp or tomcat afterwards so it pick's up the change? As soon as I copy