Types of Comments in JSP

There are two types of comments are allowed in the JSP. These are hidden and output comments. A hidden comments does not appear in the generated output in the html, while output comments appear in the generated output. Example of hidden comment: <%– This is hidden comment –%> Example of output comment:<!– This is output comment –> In JavaServer … Read more

Life Cycle Methods in JSP

  Life-cycle methods of the JSP are: jspInit(): The container calls the jspInit() to initialize the servlet instance. It is called before any other method, and is called only once for a servlet instance. _jspService():The container calls the _jspservice() for each request and it passes the request and the response objects. _jspService() method cann’t be … Read more

What is JSP Implicit Objects

Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated servlet. The implicit objects re listed below: request :It represents the request made by the client. The request implicit object is generally used to get request parameters, … Read more

What is the Benefit of Having JdbcRowSet Implementation?

What is the Benefit of Having JdbcRowSet Implementation? Why do we Need a JdbcRowSet like Wrapper Around ResultSet The JdbcRowSet implementation is a wrapper around a ResultSet object that has following advantages over ResultSet This implementation makes it possible to use the ResultSet object as a JavaBeans component. A JdbcRowSet can be used as a … Read more

What is the Difference Between Connected RowSet and Disconnected RowSet?

What is a Connected RowSet? or What is the Difference Between Connected RowSet and Disconnected RowSet? or Connected vs Disconnected RowSet, which one should I use and when? Connected RowSet A RowSet object may make a connection with a data source and maintain that connection throughout its life cycle, in which case it is called … Read more