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:
<html> <head> <title>How To Create a String</title> </head>
<body> <h1>We are creating a String</h1> <% String create = "We have create a String"; %> <h2><%out.println(create);%></h2> </body> </html>
The output of the program is given below:
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: March 22, 2005 If you enjoyed this post then why not add us on Google+? Add us to your Circles