Apache Tomcat and jsp
Posted on 2006-06-29
I installed the following:
JavaTM 2 Platform Standard Edition
Development Kit 5.0
I then installed Apache Tomcat 5.x
I also loaded the Apache JDK 1.4 Compatability Package
I got some java servlets up and running ok. I can invoke them from a html page.
Now I want to run jsp pages.
I have a simple html page with the following line:
<form id="form2" method="get" action="simple.jsp">
The simple.jsp is as follows:
<title>Simple JSP Page</title>
Host Name: <%= request.getRemoteHost() %>
IP Address: <%= request.getRemoteAddr() %>
When I submit the form to call this jsp page, the browser wants to open the actual jsp file in an editor, rather than invoking it.
I guess apache is not responding to this request.
When I look at /conf/web.xml fine in apache it does include the following:
<!-- The mapping for the JSP servlet -->
Can anyone tell me where I am going wrong?