Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic question JSP

Status
Not open for further replies.

conrai

Programmer
Nov 21, 2004
10
FI
Hi! I hope you won't throw me out of this forum because of this question but somehow I couldn't find the answer to this question:

I have created the following hello world basic JSP page:

<html>
<head><title>Hello World</title></head>
<body>
<h2>Hello World</h2>
<%
out.print("<p><b>Hello World!</b>");
%>
</body>
</html>

and i uploaded it to my server. To tell the truth I'm not sure, if it supports JSP, BUT I think it should as it supports among others Apache 1.3.29, MySQL, php, perl...

Anyway, i uploaded the page to the server and linked to it from a plain html site. But instead of giving out "Hello World!" it just gives out <% out.print("<p><b>Hello World!</b>"); %>

What am I doing wrong? I would simply like that the jsp/java code within the <% .. %> tags is executed.
What configuration does the JSP site require?
Can I link a single JSP site with any html page?



Would be nice if you could provide some lightening answers :) for a very beginner.

br,
conrad
 
//The file contains the following statement should be named with an extension of jsp like basic.jsp
<html>
<head><title>Hello World</title></head>
<body>
<h2>Hello World</h2>
<%
out.print("<p><b>Hello World!</b>");
%>
</body>
</html>
 
You must have a servlet container such as Tomcat ( or Resin in order to execute JSP pages, and also a Java SDK (not just JRE) must be installed. Apache http server cannot run JSP pages.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top