1 Reply Latest reply on Dec 15, 2006 5:13 PM by 475314

    500 Internal Server Error

      This code doesn't and syntax error.. but on browser when it runs I receive an error message (500 Internal Server Error: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "null"):
      <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
      <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
      <%@ page contentType="text/html"%>
      <sql:setDataSource var="db" driver="oracle.jdbc.driver.OracleDriver"
      user="scott" password="tiger" />
      <sql:query var="employees">select * from emp</sql:query>
      <c:forEach var="columnName" items="${employees.columnNames}">
      <th><c:out value="${columnName}"/></th>
      <c:forEach var="row" items="${employees.rows}">
      <tr><c:forEach var="column" items="${row}">
      <td><c:out value="${column.value}"/></td>