<% String companyName=request.getParameter("cname"); String companyAddress=request.getParameter("caddress"); String city=request.getParameter("city"); String country=request.getParameter("country"); String zip=request.getParameter("zip"); %> <sql:setDataSource var="snapshot" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/dmd" user="root" password="root"/> <sql:update dataSource="${snapshot }" var="result"> insert into dmd.company(companyName,companyAddress,city,country,zip) values('?','?','?','?','?'); </sql:update>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)