• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

JSP Hello World

roly

Guest
I have Apache on my computer and I just installled ApacheJServ for Java Serverlets. Can anyone give me an JSP hello world to test that it works?
 
try this:
PHP:
<HTML>
<BODY>
Hello!  The time is now <%= new java.util.Date() %>
</BODY>
</HTML>

it prints the date
 
here ya go

Code:
<html>
<head>
<title>JSP Hello World </title>
</head>
<body>
<h2>The following output is from JSP code </h2>
<p> <% out.println ("Hello World"); %> </p>
</body>
</html>

the php thing from the other guy is just code format, using php code instead of regular you can get pretty colors :D

see

PHP:
<html>
<head>
<title>JSP Hello World </title>
</head>
<body>
<h2>The following output is from JSP code </h2>
<p> <% out.println ("Hello World"); %> </p>
</body>
</html>
 
Last edited:
Back
Top