GeeCON Prague 2014*
The moose likes Struts and the fly likes *.do in web.xml file  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "*.do in web.xml file  ?" Watch "*.do in web.xml file  ?" New topic
Author

*.do in web.xml file ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1376
What is the meaning of *.do in web.xml file in servlet-mapping's url-pattern tag?
Satish SN
Ranch Hand

Joined: Apr 19, 2005
Posts: 70
Hi Krishan,

Servlet-Mapping is useful in hiding ur real servelet class names by simply adding the *.do as mapping the user cannot know which servlet it is pointing to.


Satish SN<br />SCJP 1.4 & SCWCD 1.4
Kalyana Sundaram
Ranch Hand

Joined: Mar 18, 2005
Posts: 94
It says that whenever container recieves a request that ends in .do, that request should be forwarded to the ActionServlet.

The ActionServlet being a controller analyzes the request uri and decides what to do next

hope this helps !!!


Only those who will risk going too far can possibly find out how far one can go !!!
 
GeeCON Prague 2014
 
subject: *.do in web.xml file ?