The document contains questions about JSP, Servlets, and JDBC. It asks about the differences between sendRedirect() and forward, how to delete cookies in JSP, and the need for tag libraries. It also asks about maintaining sessions, the differences between JSP and Servlet lifecycles, static vs dynamic includes, and how to connect to databases from JSPs. Additionally, it inquires about the GET and POST methods, ServletContext vs ServletConfig, and how Servlets handle client requests. Finally, it poses questions about connection pooling, JDBC driver types, stored procedures, ResultSets vs RowSets, and retrieving data from a ResultSet.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
The document contains questions about JSP, Servlets, and JDBC. It asks about the differences between sendRedirect() and forward, how to delete cookies in JSP, and the need for tag libraries. It also asks about maintaining sessions, the differences between JSP and Servlet lifecycles, static vs dynamic includes, and how to connect to databases from JSPs. Additionally, it inquires about the GET and POST methods, ServletContext vs ServletConfig, and how Servlets handle client requests. Finally, it poses questions about connection pooling, JDBC driver types, stored procedures, ResultSets vs RowSets, and retrieving data from a ResultSet.
The document contains questions about JSP, Servlets, and JDBC. It asks about the differences between sendRedirect() and forward, how to delete cookies in JSP, and the need for tag libraries. It also asks about maintaining sessions, the differences between JSP and Servlet lifecycles, static vs dynamic includes, and how to connect to databases from JSPs. Additionally, it inquires about the GET and POST methods, ServletContext vs ServletConfig, and how Servlets handle client requests. Finally, it poses questions about connection pooling, JDBC driver types, stored procedures, ResultSets vs RowSets, and retrieving data from a ResultSet.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
The document contains questions about JSP, Servlets, and JDBC. It asks about the differences between sendRedirect() and forward, how to delete cookies in JSP, and the need for tag libraries. It also asks about maintaining sessions, the differences between JSP and Servlet lifecycles, static vs dynamic includes, and how to connect to databases from JSPs. Additionally, it inquires about the GET and POST methods, ServletContext vs ServletConfig, and how Servlets handle client requests. Finally, it poses questions about connection pooling, JDBC driver types, stored procedures, ResultSets vs RowSets, and retrieving data from a ResultSet.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
Download as doc, pdf, or txt
You are on page 1of 2
JSP and SERVLET Questions:
1. What is the Difference between sendRedirect() and Forward?
2. How to delete cookies in JSP? 3. What is the need of taglibraries? 4. Why we can't implement interface in JSP? Or Can I call an interface in a JSP? 5. Why we can only extend classes in JSP? 6. What is the need of implicit objects? 7. How do you maintain a Session? 8. What is the difference between JSP Lifecycle and Servlet Lifecycle? 9. What is the difference between a static and dynamic include? 10. What is a JSP and what are its advantages? 11. What is difference between script let and expression? 12. What are the different Tags used in JSPs? 13. How do you call stored procedures from JSP? 14. How can we move from one JSP page to another? 15. Can we implements interface or extends class in JSP? 16. How do you prevent the Creation of a Session in a JSP Page and why? 17. How do you restrict page errors display in the JSP page? 18. How do you connect to the database from JSP? 19. How do you pass control from one JSP page to another? 20. What is the difference between GenericServlet and HttpServlet? 21. What are the differences between GET and POST service methods? 22. What is the difference between ServletContext and ServletConfig? 23. If you want a Servlet to take the same action for both GET and POST request, what should you do? 24. Which code line must be set before any of the lines that use the PrintWriter? 25. How HTTP Servlet handles client requests? 26. When a Servlet accepts a call from a client, it receives two objects. What are they? 27. What information that the ServletRequest interface allows the Servlet access to? 28. What information that the ServletResponse interface gives the Servlet methods for replying to the client? 29. Can I invoke a JSP error page from a Servlet? 30. Difference between single thread and multi thread model Servlet 31. How can I enable session tracking for JSP pages if the browser has disabled cookies? 32. How do I perform browser redirection from a JSP page? 33. What JSP lifecycle methods can I override? 34. How can I implement a thread-safe JSP page? 35. Can a JSP page process HTML FORM data? 36. What is the page directive is used to prevent a JSP page from automatically creating a session? 37. Can you make use of a ServletOutputStream object from within a JSP page? 38. What is a session and what are the different methods of session tracking? 39. What are Cookies? How are they useful?
JDBC Questions:
40. What is Connection Pooling?
41. What are the different driver types in JDBC? 42. Which is the best driver among the 4 jdbc drivers? How can we load that driver? 43. What is metadata? 44. What is stored procedure? How do you create stored procedures? 45. What is the difference between Resultset and Rowset ? 46. What are the three statements in JDBC & differences between them? 47. How to call a Stored Procedure from JDBC? 48. What packages are used by JDBC? 49. How can you make the connection? 50. How can you retrieve data from the ResultSet? 51. How can store images in a data base? 52.