I am not hugely skilled in using Tomcat and JSP but am an experience Java Developer. I inherited a project which was developed by a former placement student which is a web based documet management system which uses the Strut framework. I worked on some improvements for the first released version of the project which is in use withing the company. It has now been proposed that I go back and add some extra functionality. I have had problems just getting my application to run at all but I am that far along now. I have the problem that the images in the site are not appearing but when I look at the URLs pointed to it seems they are correct and the image files are definately there. I also think the style sheet is not working. I suspect that the folder permissions for the web application are not right but that is only a theory and I am not completely versed in how Tomcat controlls permissions and security and am still learning.
I have created my first web.xml file following the instructions on a web tutorial. I did also have IntelliJ IDEA to check my syntax in the xml file. I was trying to specify the default JSP file to be opened when navigating into the application (hardly rocket science I would have thought but everything is easy when you know how).
My web.xml stands as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd
<!-- General description of your web application -->
River is a web based document management system used for holding important documents
to be viewd within Rental Result and possibly also by Result's customers.
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
> <!-- 30 minutes -->
(Be kind it is my first one)
All the JSP's are held in a "jsp" subfolder of the root folder. The images are held in a subfolder of the jsp folder called "images". The style sheet is held in a sub folder of jsp called "styles". I wonder if the permissions to these folders are being properly set.
I created an ant build script for my project which compiles everything into a convinient war file.
I am running a Tomcat 5.5 server on a Windows 2003 Enterprise server with Ant 1.6.5 and Java EE 1.4 & JSE 1.5.
Thank you for your help.