16. Assume that the information regarding the marks for all the subjects of a student in the last exam are available in a database, Develop a Servlet which takes the enrollment number of a student as a request parameter and displays the marksheet for the student.
<!-- --------------------------------------------------------------------------------------------------------------------------------- HTTP://WWW.GTUMCA.CO.CC ---share your college materials on --- [email protected] JOIN US ON FACEBOOK: with more than 1000 GTU MCA FRIENDS TWITTER @MCAGTU ---------------------------------------------------------------------------------------------------------------------------------------> <html> <head> </head> <body> <h2>to create DataSourceName(DSN) go to</h2><br> <h4><pre> ControlPanel -> Administrative too -> DataSource(ODBC) -> select SystemDSN -> select MicrosoftAccess Driver(*.mds,*.aacdb) -> click on Finish ->give DSN name as "access2003" ->click on SELECT button -> Select database ->press OK.....</pre></h4>
public class Gtu16 extends HttpServlet { public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter();