User-submitted Projects

198
4012 reads
The customer details example
The customer details example below demonstrates how to implement MVC pattern in servlets and JSP. The example allows the user to view all the list of details of the customers and can edit it the deta
The customer details example

Run It Now!
65
2243 reads
Using an Array List Collection
The below example demonstrates how to use ArrayList Collection in java. The below example creates an arraylist of objects of Class Game untill the user press n as input.
Run It Now!
97
1631 reads
SuperMario3's picture

Submitted by

SuperMario3
Struts1 w/ MVC2
This example demonstrates registration of product. In this example product registration page is being called through jsp and servlet is called by servlet page with different url pattern (*.do).
Struts1 w/ MVC2

Run It Now!
143
3218 reads
SuperMario3's picture

Submitted by

SuperMario3
Tags:

MVC using Servlets and JSPs
This example demonstrates Product registration and after registering display registered product. example has two links on home page.
MVC using Servlets and JSPs

Run It Now!
95
1811 reads
MVC using Servlets and JSPs
The below example demonstrates how to use Vectors (collection array) using jsp and servlet in struts. Here Vector array is used for collecting all registered users.
MVC using Servlets and JSPs

Run It Now!
127
2212 reads
Combining Servlets and JSPs
The example below demonstrates how to combine servlets with JSP. The example takes a input as integer and prints hello world accordingly.
Combining Servlets and JSPs

Run It Now!
185
1839 reads
Adrian999's picture

Submitted by

Adrian999
visitor pattern
This example demonstrates Visitor Pattern in java. In this example Visitor Pattern Represents an operation to be performed on the elements of an object structure / Visitor lets you define a new opera
Run It Now!
72
2575 reads
Handling Logic Errors in Java
The below example demonstrates how to display a logical error in the code (called a bug) The below program encounterts the bug on line 9, which actually should be: single_letter = check_word.substr
Run It Now!
27
2274 reads
Adrian999's picture

Submitted by

Adrian999
Method Reference Example
The below program demonstrates how to pass by values by references in methods. The below program defines a method named commonValue of Class Point which takes Objects of Class Point as Parameter.
Run It Now!
25
2380 reads
Adrian999's picture

Submitted by

Adrian999
Use Try-catch Blocks
The below example demonstrates how to use try-catch blocks to catch an exception. The below example encounters an Arithmetic Exception as it try's to divide 42 by 0.
Run It Now!