JSP
Struts 2 Example
In this example, we are creating the struts 2 example without IDE. We can simply create the struts 2 application by following these simple steps:…
Downloading file
In this example, we are going to download the jsp file. But you may download any file. For downloading the file from the server, you…
Uploading file
There are many ways to upload the file to the server. One of the way is by the MultipartRequest class. For using this class you…
Login Form
In this example of creating login form, we have used the DAO (Data Access Object), Factory method and DTO (Data Transfer Object) design patterns. There…
Registration Form
For creating registration form, you must have a table in the database. You can write the database logic in JSP file, but separating it from…
JSP Pagination Example
We can create pagination example in JSP easily. It is required if you have to display many records. Displaying many records in a single page…
Custom URI
We can use the custom URI, to tell the web container about the tld file. In such case, we need to define the taglib element…
Attributes
There can be defined too many attributes for any custom tag. To define the attribute, you need to perform two tasks: Define the property in…
Example of JSP Custom Tag
In this example, we are going to create a custom tag that prints the current date and time. We are performing action at the start…