<%@ taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c” %>
<%@ taglib uri=”http://java.sun.com/jsp/jstl/sql” prefix=”sql” %>
<sql:setDataSource var=”con” driver=”oracle.jdbc.driver.OracleDriver” url=”jdbc:oracle:thin:@localhost:1521:xe” user=”system” password=”manager” />
<sql:update dataSource=”${con}” sql=”INSERT INTO student VALUES (8, ‘ggg’, 44)”/> <c:out value=”Record inserted successfully.” />
i tried to insert one record into student table to my oracle database. but it showing unable to get connection error ?
user26702756 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.