This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi guys. I'm having a little trouble with Tomcat 5.5.11 and Servlets...
Basically I have a web based system which allows users to login and browse/upload/download images at will
I have created the basic JSPs and file structure C:\Java\Tomcat 5.5\webapps\web Java classes are under - C:\Java\Tomcat 5.5\webapps\web\WEB-INF\classes\uk\co\domain\...
Servlets are under a folder in here called [servlets] C:\Java\Tomcat 5.5\webapps\web\WEB-INF\classes\uk\co\domain\servlets
I have written the LoginServlet and it is under the following above address and it works fine. But I have a Servlet called UploadServlet for uploading images i the same folder, mapped in the web.xml (see below) and called in the following form:
I don't think Secker had gone that for to the multi-part part. According to your description, Secker try giving the path as "/web", docBase as "web" in the Context.xml, something like this: <Context path="/web" docBase="web" ...> and calling the servlet this way: <form name="yourformname" action="/web/UploadServlet" ...>