Reputation: 333
I want to run a .jsp file on a live server. Here is the content of test.jsp:
<html>
<head><title>A Comment Test</title></head>
<body>
<p>
Today's date: <%= (new java.util.Date()).toLocaleString()%>
</p>
</body>
</html>
When I want to run it at tests.bendali.co.za/test.jsp, all I get is the file content. Do I need to install Apache Tomcat on the server for it to work?
Thanks in advance.
Upvotes: 0
Views: 2201
Reputation: 691973
Yes, you need a servlet/JSP engine in order to run JSPs.
JSPs are compiled into servlets and executed at server-side, and generate HTML that is then sent to the browser. Without a JSP engine, you can't use JSPs.
Upvotes: 2