JSP Hello World !

User Rating:  / 7

Write "Hello World" with JSP

View source
<TITLE>hello jsp</TITLE>
<!-- the variable, message, is declared and initialized -->
String message = "Hello, World, from JSP";
<!-- the value of the variable, message, is inserted between h2 tags -->
<h2><font color="#AA0000"><%= message%></font></h2>
<h3><font color="#AA0000">
<!-- the java.util.Date method is executed and the result inserted between h3 tags -->
<%= new java.util.Date() %> 

You have no rights to post comments





© Developerpages