Example of Fetching Result for the given rollnoHere, you will learn that how to fetch result for the given rollno. I am assuming that there is a table as given below:Example of Fetching Result for the given rollnoIn this example, we have create three files
index.htmlThis page gets rollno from the user and forwards this data to servlet which is responsible to show the records based on the given rollno. Search.javaThis is the servlet file which gets the input from the user and maps this data with the database and prints the record for the matched data. In this page, we are displaying the column name of the database along with data, so we are using ResultSetMetaData interface. web.xml fileThis is the configuration file which provides information of the servlet to the container. |
Example of Fetching Result for the given rollnoHere, you will learn that how to fetch result for the given rollno. I am assuming that there is a table as given below:Example of Fetching Result for the given rollnoIn this example, we have create three files
index.htmlThis page gets rollno from the user and forwards this data to servlet which is responsible to show the records based on the given rollno. Search.javaThis is the servlet file which gets the input from the user and maps this data with the database and prints the record for the matched data. In this page, we are displaying the column name of the database along with data, so we are using ResultSetMetaData interface. web.xml fileThis is the configuration file which provides information of the servlet to the container. |
No comments:
Post a Comment