How to write first JSP Hello World example?

Ads

 
 

Share on Google+Share on Google+

Java Coder
How to write first JSP Hello World example?
1 Answer(s)      3 months and 13 days ago
Posted in : JSP-Interview Questions

Hi,

How to make first simple JSP program which prints simple Hello World example? I want to learn to make fist JSP page which prints the Hello World example.

Thanks

Ads
View Answers

May 10, 2017 at 10:51 PM


Hi,

For making a simple JSP page you will have to make first helloworld.jsp.

In the helloworld.jsp file add following code:

<%="Hello World"%>

Above code will prints "Hello World" message on the JSP page.

You will have to deploy on the tomcat and run it on the Tomcat server.

Check complete code at JSP Hello World.

Thanks


Ads