Creating a String

A simple example that explains how to create string in Java server pages (JSP).

Creating a String


In jsp we create a string as we does in a java. In jsp we can declare it inside the declaration directive or a scriptlet directive.


The code of the program is given below:






    <title>How To Create a String</title>
    <h1>We are creating a String</h1>
        String create = "We have create a String";

The output of the program is given below:

Download this example.