implicit objects: out
1. out
- If you look our example, we used "out" object to print REQUEST, and we used to print SESSION here, that indicates that out is an implicit object which is instance of JSPWriter class.
- So whenever you want to write any kind of statement to the jsp page, you are going to use the out implicit object.
- You can also use expression to display, and other way is out is the implicit object.
- We know that every jsp page at the end is converted into a html, and it is rendered to the client. So a jsp is converted to a servlet but ultimately when a page is rendered to the end client it is nothing but an html page because your browser , web browser can understand only html language. So it is goint to send html page to your web browser. A simple html terms when you want to display on your page , what you do that you write that text whatever you want to be displayed in the body element of the html.
- Similarly this is java way of displaying the text on the web page , so there is dynamic text which needs to be displayed on your html page you definately can not use simple html because html static but not dynamic. When you want dynamic to print on the page, you can use the "out " implicit object
No comments:
Post a Comment