Now I am calling the particular record of the table through a separate html file, which has 1 textfiled & 1 search button. When I insert the record in the textfield "java" & click on submit button only the "heading tag is displaying. That is
Title Author Price
It is not retrieving any data from the database. Find my jsp code as follows.I think so problem might be with query. Can anybody please help me out.
Thanks in advance.
<html> <head> <title> an example of a simple model </title></head>
<body> <center> <font color = "blue" size ="6"> a listing of books </font> </center> <br><br> <%@ page import = "java.sql.*"%>
DB code inside a JSP is bad, except possibly, when this is a homework assignment. In a professional application this would lead to [insert many bad things here] but if this is a school project, most teachers/professors wouldn't care (or notice).
Like professional software development, it helps to know your audience.