• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

a servlet-mapping proble using TomCat

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know what's wrong when I use servlet mapping tag to aliasing my servlet it doesn't seem to be recognized by Tom cat
my deployment descriptor is
<web-app>
<servlet>
<servlet-name>
UploadFile
</servlet-name>
<servlet-class>
webcid.UploadFile
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
UploadFile
</servlet-name>
<url-pattern>
/UploadFile
</url-pattern>
</servlet-mapping>
</web-app>
I'm using this entry to access my servlet
/examples/UploadFile
I tried with the original deploment descriptor but it was the same think
Could anybody help me with this problem ?
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

<url-pattern>
/UploadFile
</url-pattern>
I'm using this entry to access my servlet
/examples/UploadFile

If your class files are under webapps/examples
in the correct packages, then it seems correct to me...
Have to double-check though!!!
- satya
 
machines help you to do more, but experience less. Experience this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic