jsp calling a servlet (or at least that's the goal)

2008-03-12 Thread Kimberly Begley
Hi, I am stuck. I am running tomcat 5 and am trying to call a servlet from a jsp. My servlet class resides in WEB-INF/classes/packagename. My web.xml looks like this ?xml version=1.0 encoding=ISO-8859-1? web-app servlet servlet-nameUploadUnzipTest/servlet-name

Re: jsp calling a servlet (or at least that's the goal)

2008-03-12 Thread Kimberly Begley
it's in CATALINA_HOME/webapps/test On Wed, Mar 12, 2008 at 10:14 PM, Mark Thomas [EMAIL PROTECTED] wrote: Kimberly Begley wrote: and my jsp form calls it like this: form action=/servlet/UploadUnzipTest enctype=multipart/form-data method=post What is the context path your app is deployed

Re: jsp calling a servlet (or at least that's the goal)

2008-03-12 Thread David Smith
Keep in mind it's the browser that calls the servlet, not really your jsp and the browser knows nothing of tomcat contexts. Your form ... tag should have an action of /test/servlet/UploadUnzipTest. In the jsp, you can compute this as form

Re: jsp calling a servlet (or at least that's the goal)

2008-03-12 Thread Kimberly Begley
Oh thanks so much! That got rid of my 404 error - now I have a 405 to tackle though - glad to be done with the 404 though - I thought I had tried every combination but I guess not!! Thanks Kimberly On Wed, Mar 12, 2008 at 10:21 PM, David Smith [EMAIL PROTECTED] wrote: Keep in mind it's the