How to write first JSP Hello World example?

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

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









Related Tutorials/Questions & Answers:
Advertisements