Your servlets need to be in a package when using jdk1.4 (ie
demo.DemoParserUploadServlet)

> -----Original Message-----
> From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, October 11, 2002 5:17 AM
> To: Tomcat Users List
> Subject: Re: SV: com.oreilly.servlet - upload example not working?
> 
> 
> Just redeploy the class file or jar file and define the servlet with 
> your new app.
> But if you've already deployed it once, then there is no problem for 
> other apps to access the servlet cause you can just make a 
> url request 
> to the servlet from another app right ?
> 
> J�rgen Ramskov wrote:
> 
> >>it's a sevlet right? so you have to define the servlet in the
> >>web.xml of your webapp. plus you must move the jar to the 
> WEB-INF/lib 
> >>rather than what you stated.
> >>    
> >>
> >
> >If I want the cos.jar package to be available to all webapps, then I 
> >thought I could add it it /shared/lib?
> >
> >the upload.war is an example app that comes with the 
> package. It has a 
> >structure like this:
> >
> >/meta-inf/ (contains a manifest file)
> >/upload/
> >-> /WEB-INF/
> >-> /WEB-INF/web.xml
> >-> upload.html
> >-> /WEB-INF/classes/
> >-> /WEB-INF/classes/DemoParserUploadServlet.class (and more)
> >
> >The web.xml file has this (and more, but I think this is the 
> relevant 
> >part)
> >info:
> ><web-app>
> >  <servlet>
> >    <servlet-name>
> >        parserupload
> >    </servlet-name>
> >    <servlet-class>
> >        DemoParserUploadServlet
> >    </servlet-class>
> >      <init-param>
> >        <param-name>
> >            uploadDir
> >        </param-name>
> >        <param-value>
> >            .     <!-- Current dir, replace with /tmp or 
> c:\temp maybe -->
> >        </param-value>
> >      </init-param>
> >  </servlet>
> >
> >Greetings
> >Joergen
> >
> >--
> >To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> >For 
> additional commands, 
> e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to