• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mapping a servlet to multiple urls.

 
kamal krishna bhatt
Ranch Hand
Posts: 41
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can we map a servlet to the number of urls in web.xml but condition is url name should be fully qualified i.e. like http://x.x.x.x/abc/pqr and can we write all these urls in a separate file and fill them in to web.xml.
 
Stoian Azarov
Ranch Hand
Posts: 113
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

HTH
 
kamal krishna bhatt
Ranch Hand
Posts: 41
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya that is right but it is not working when i give URL as <url-pattern>http://x.x.x.x/project1/test</url-pattern>
....
works fine only when i give URL as <url-pattern>/test</url-pattern>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right. You do not include the protocol and domain in the mapping. Just the path relative to the deployed application.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic