PDA

View Full Version : Setting up new jsp directory


mike67
28-09-2009, 21:45
Here is the situation.
I have Apache2 and Tomcat6 setup and running on a linux OS. I have it running on port 8009 with 1 domain and my static web pages are being served up just fine.

Now I can go to www.mydomain.com/examples/jsp and pull in the Tomcat example jsps and run them fine also.

However now I want to set up a different directory to put my specific jsp pages in and call it something other then /examples/jsp/ ...

Nothing I have tried so far has worked. Even just trying to give the /examples/jsp/ a different alias I am getting a status 404 error.

Is there a good white paper or other tutorial on this? I am sure I am probably missing like 1 or 2 things that I shouldn't be missing, but I have no idea what those could be. I have been searching but just have not found anything.

Thanks in advance.

Kees de Kooter
28-09-2009, 23:12
This is not a matter of setting up some directory. jsp != php!!

Please read the getting started with web application section (http://java.sun.com/javaee/5/docs/tutorial/doc/bnadr.html) of the Java EE 5 tutorial.

kjkoster
29-09-2009, 08:27
Dear mike67,

Check out this servlet tutorial (http://www.jsptube.com/servlet-tutorials/simple-servlet-example.html) to get started.

Also, "a linux OS" does not happen to be Ubuntu or Debian? And tomcat6 is not that debian APT package I hope. Because if it is I recommend using a Tomcat from tomcat.apache.org. The APT package is not at all for novice users and breaks POLA in many ways.

Kees Jan