0

the same code is working perfectly fine in another non-maven project

errors-img link
maven dependencies-img link

<sql:setDataSource var="db" driver="com.mysql.cj.jdbc.Driver" url="jdbc:mysql://localhost:3306/uu" user="root" password="#Akshpnwr123#"/>

<sql:query var="rs" dataSource="${db}">select * from students</sql:query>

<c:forEach items="${rs.rows}" var="student">

    ${student.id} : ${student.s_name} : ${student.password} : ${student.s_course} <br>

</c:forEach>
hiddeneyes02
  • 2,562
  • 1
  • 31
  • 58

0 Answers0