This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "*.do in web.xml file  ?" Watch "*.do in web.xml file  ?" New topic

*.do in web.xml file ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1400
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 !!!
I agree. Here's the link:
subject: *.do in web.xml file ?
jQuery in Action, 3rd edition