You are here:   HomeJava Server Pages
by Dinesh Thakur Category: JSP Elements

In the below JSP program the aim is to understand how JSP communicates with the database. The designing is done by HTML.



 
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

             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 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

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

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

Cookies are the small textual information which allocate the memory at client side by remembering client data across the multiple requests during a session. The web resource programs of web application create cookies at server side but these cookies come to client side along with the response and allocate memory at client side. Cookies of client side go back to their web application along with the request given by clients (browser windows to web resource programs).



 
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

In this example we will explain the get status method() this method is referred  to HttpServletResponse interface. The status we set will be diaplayed.

 

Page 7 of 9



Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes 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.



What's New and Popular





Search Content







Advance Courses



Basic Courses



Advertise with Us