to tentado usar um exemplo do livro tudo sobre jsp…
e não consigo. da esse erro de driver.
é mesmo erro de conexão??
obrigado!!
já adicionei o drive mysql mais atualizado (mysql-connector-java-5.1.10-bin.) na biblioteca
erro mostrado no navegador de internet
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: “java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/locadora?user=root&password=adm&useUnicode=true”
root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: “java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/locadora?user=root&password=adm&useUnicode=true”
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_01 logs.
a conexão é feita com essas duas jspf
1ª
<%@taglib uri='http://java.sun.com/jsp/jstl/sql' prefix='sql'%>
<%@include file="varGlobal.jspf"%>
<sql:setDataSource
var="con"
driver='${conDriver}'
url='${urlString}'
/>
2ª
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="conDriver" value="com.mysql.jdbc.Driver"/>
<c:set var="urlString" value="jdbc:mysql://localhost:3306/locadora?user=root&password=adm&useUnicode=true"/>