struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit_Arora" <>
Subject RE: what is .do mapping?
Date Fri, 26 Sep 2003 09:47:21 GMT
Hi Abhijeet,
  The .do is added due to the action servlet mapping as defined in the web.xml


You can use any suffix instead of the '.do' but you will have to define the same in the web.xml.
But it is a general convention to use the *.do . The other way with which you define the action
servlet mapping is using  <url-pattern>/do/*</url-pattern>

The mapping defines how your actions will work.

Hope this is of use for you

Rohit Arora

-----Original Message-----
From: Abhijeet Mahalkar []
Sent: Friday, September 26, 2003 2:38 PM
To: Struts Users Mailing List
Subject: what is .do mapping?

When invoke the jsp using 


URL and when i submit the page trhu submit button the URL gets changed to following will anybody
tell me why? and what is ".do" stands for? where do we make the entry of this.?

is it the action mapping we are using in struts -config.xml file ?

         input="/pages/UserGroupMaster.jsp" parameter="action">
      <forward name="success" path="/pages/success.jsp"/>
     <forward name="failure" path="/pages/failure.jsp"/>
     <forward name="usergroupmaster" path="/pages/UserGroupMaster.jsp"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message