-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
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
-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
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
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
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
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
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
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