User-submitted Servlets Projects

90
7444 reads
Shopping Cart Example
The Shopping Cart example below demonstrates how to use sessions to store data between requests. The example allows the user to add items to a shopping cart, and then view the contents of the cart.
Shopping Cart Example

Run It Now!
96
2341 reads
Session Authorization Servlet Example
The servlet example below demonstrates how to implement session authorization with servlets. The example allows the user to login with thier name and logout of the session.
Session Authorization Servlet Example

Run It Now!
110
1298 reads
Kernel9's picture

Submitted by

Kernel9
The Color Test Example
The color test example below demonstrates how to use servlets to build web pages. The example allows the user to select multiple colors and print the colors as output.
The Color Test Example

Run It Now!
109
1745 reads
The Auto-Refresh Example
The auto-refresh example below demonstrates how to create a save data using sessions after each refresh page. The example increments the counter of the number of times the servlets been accessed in
The Auto-Refresh Example

Run It Now!
172
2427 reads
Kernel9's picture

Submitted by

Kernel9
The Online Gas Purchase Store Example
The online gas purchase store example below demonstrates how to use session in servlets. This example accepts purchase details from user and adds them into the current purchases table.
The Online Gas Purchase Store Example

Run It Now!
99
1509 reads
Kernel9's picture

Submitted by

Kernel9
The Simple Input Count Example
The simple input count example below demonstrates how to use HTML with servlets to build web applications. The example takes input as integers from user and prints Hello world accordingly.
The Simple Input Count Example

Run It Now!
152
1433 reads
Servlet Generate Exception Example
The servlet generate exception example below demonstrates how to throw an exception in servlets. The example throws a null pointer exception

Run It Now!
101
1864 reads
Servlet Error Page Example
Servlet Error Page Example
Servlet Error Page Example

Run It Now!
113
1519 reads
CodeDude's picture

Submitted by

CodeDude
Hollistic Counter Example
The hollistic counter example below demonstrates how to save data using servlets. The example allows the user to view the number of times the servlet has been accessed as output.
Hollistic Counter Example

Run It Now!
85
1288 reads
Dice Roller Example
The dice thrower example below demonstrates how to use programming logic in servlets. The example allows the user to view different random results of the dice as output.
Dice Roller Example

Run It Now!