Reputation: 57
I have built a path from Eclipse to the home directory of the jdk.
As you can see here:
Below is my index page that is first loaded when I start my server on localhost.
The jsp file is not displaying properly as it lets the user see the actual code. Is there something else I need to do?
// index.jsp //
<%@ page language="java" %>
<%@ page import="javax.servlet.http.HttpServlet" %>
<html>
<body>
<h1>Welcome! </h1>
<a href="http://localhost:8888/viewfiles" />View Files</a>
<a href="http://localhost:8888/upload.jsp" />Upload Files</a>
<p>
Today's date: <%= (new java.util.Date()).toLocaleString()%>
</p>
</body>
</html>
Upvotes: 1
Views: 762
Reputation: 1769
A couple of things to check:
Upvotes: 1