by Dinesh Thakur Category: JSP Elements

A JSP program can have two types of objects.

• Explicit objects

• Implicit objects

 
by Dinesh Thakur Category: JSP Elements

Jsp expressions known as those kind of expressions that are containing the scripting language values. To Display the expression value we create a HTML tags page that will use to fill the required fields that will be displayed according to need.

 
by Dinesh Thakur Category: JSP Elements

We know servlet program is placed in WEB-INF folder. WEB-INF is a private directory of deployed web application. So any web resource program that is placed in WEB-INF folder or its subfolder (like classes) must be configured in web.xml file to make the underlying container and server recognizing web resource program.



 
by Dinesh Thakur Category: JSP Elements

In this example we will define that about page counter every time a user visit the page will be counted. In this we made a program where i static click variable initialize and the value declare 0. If any user visit site any tym it will display the visit number. With help of for loop it will increase the visits one by one.

 
by Dinesh Thakur Category: JSP Elements

             This Example is use to get the Information about Server’s Information. Like port number, server name.

 
by Dinesh Thakur Category: JSP Elements

In this Example we will discuss about how to read text file with the JSP objects. First we create a text file that contains strings in it. In the program we use input and output stream for execute the expression.

 
by Dinesh Thakur Category: Session

We will discuss why HTTP is designed as a stateless protocol and what will happen if it comes as stateful protocol. If HTTP is stateful protocol, multiple requests given by client to web application by a single connection will be used between browser window and web server across the multiple requests. This makes clients engage connection with web server for long time even though most of its connections are idle.



 
by Dinesh Thakur Category: Session

An invisible text box of the form page is called a hidden box. When a form page is submitted, the hidden box value goes to web resource program along with the request parameter value.

 
by Dinesh Thakur Category: Session

The form page prepared using .html file is called source form page (fixed content).The form page that comes as response generated by servlet or JSP program is called dynamic form page (dynamic content). Instead of asking all the details of end user in a single form page, it is recommended to ask those details in multiple form pages.



 
by Dinesh Thakur Category: Session

• The limitation with third technique is, if cookies are restricted from coming to browser then third technique fails to perform session tracking because it uses in memory cookie to send session id to browser from web application along with response and to bring session id to web application from browser window along with request.

 

Page 7 of 9



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.