• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Mapping purpose  RSS feed

 
subhash uppalapati
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am wondering the exact advantages/ uses of using servlet mapping. One thing I know is that we won't be exposing our physical structure to the client but how it is going to help? What is the main thing that buys us to use servlet mapping?
Please pour in your thoughts.

Thanks,
Subhash
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Subhash,

Welcome to JavaRanch!

This is the way servlets can be configured. What kind of advantage do you expect?
 
subhash uppalapati
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry.. What I wanted to ask was that we will give different names for URL patterns and the actual file name. We conceal the identity by naming it something different in the web.xml file. What exactly we are gaining by doing this instead we can have the same name like below:

Instead of this



Why we do this?


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
subhash uppalapati wrote:Why we do this?

Who is we? It certainly isn't me.

The *.do pattern is one employed by Struts and doesn't make much sense outside of that. Guess it's just a ridiculous habit some people get into.

I use a Front Controller so my servlet mappings have little to do with the executable units. I make the look like whatever makes sense.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly we are gaining by doing this instead we can have the same name like below

Flexibility.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!