Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I do a URL-mapping for something besides a Servlet?

 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to make a URL-mapping in the web.xml file for a directory, not a servlet. Is that possible? If so, can someone give me an example?
I'm trying to set it up so that my Servlet doesn't have to use an absolute pathname when uploading files, so the application can be more portable.
Thanks in advance for any help,
g.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic