what is .do mapping?
When invoke the jsp using http://localhost/xyz/pages/UserGroupMaster.jsp 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 ? action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false 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/ /action http://localhost/xyz/usergroupmaster.do
Re: what is .do mapping?
On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote : When invoke the jsp using http://localhost/xyz/pages/UserGroupMaster.jsp 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 ? * YES, infact it is. when you give a url like usergroupmaster.do is looks in to the struts-config.xml and matches the path attribute. After the matching ActionUserGroupMaster class is used to accomplish the task using some helper classes/beans etc and depending on the the return value (success,failure etc) corresponding page is called (success.jsp, failure.jsp etc). Hope it helps -- swan action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false 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/ /action http://localhost/xyz/usergroupmaster.do ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: what is .do mapping?
Hi swanand thanks for ur very quick reply. just guide me ... What should i do if the following code not working and not getting redirected to UserGroupMaster.jsp On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote : When invoke the jsp using http://localhost/xyz/pages/UserGroupMaster.jsp 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 ? * YES, infact it is. when you give a url like usergroupmaster.do is looks in to the struts-config.xml and matches the path attribute. After the matching ActionUserGroupMaster class is used to accomplish the task using some helper classes/beans etc and depending on the the return value (success,failure etc) corresponding page is called (success.jsp, failure.jsp etc). Hope it helps -- swan action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false 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/ /action http://localhost/xyz/usergroupmaster.do ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: what is .do mapping?
Hi Abhijeet, The .do is added due to the action servlet mapping as defined in the web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping 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 Regards, Rohit Arora -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 2:38 PM To: Struts Users Mailing List Subject: what is .do mapping? When invoke the jsp using http://localhost/xyz/pages/UserGroupMaster.jsp 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 ? action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false 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/ /action http://localhost/xyz/usergroupmaster.do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: what is .do mapping?
Hi swanand thanks for ur very quick reply. just guide me ... What should i do if the following code not working and not getting redirected to UserGroupMaster.jsp i am getting this error... org.apache.struts.action.RequestProcessor Invalid path /usergroupmaster was requested thanks in Advance abhijeet On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote : When invoke the jsp using http://localhost/xyz/pages/UserGroupMaster.jsp 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 ? * YES, infact it is. when you give a url like usergroupmaster.do is looks in to the struts-config.xml and matches the path attribute. After the matching ActionUserGroupMaster class is used to accomplish the task using some helper classes/beans etc and depending on the the return value (success,failure etc) corresponding page is called (success.jsp, failure.jsp etc). Hope it helps -- swan action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false 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/ /action http://localhost/xyz/usergroupmaster.do ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: what is .do mapping?
Hi Abhijeet, Actually i am also a bit new to struts, so i may not be able to answer everything to the point. But let me try, In your code action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false input=/pages/UserGroupMaster.jsp parameter=action try providing the full package name of the type=ActionUserGroupMaster class.for example com.dir1.dir2.somepackage.ActionUserGroupMaster It might be possible that your action class could not be found. Let me know if this was really the case, and even if it wasn't the case. thanks. swanand On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote : Hi swanand thanks for ur very quick reply. just guide me ... What should i do if the following code not working and not getting redirected to UserGroupMaster.jsp i am getting this error... org.apache.struts.action.RequestProcessor Invalid path /usergroupmaster was requested thanks in Advance abhijeet On Fri, 26 Sep 2003 Abhijeet Mahalkar wrote : When invoke the jsp using http://localhost/xyz/pages/UserGroupMaster.jsp 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 ? * YES, infact it is. when you give a url like usergroupmaster.do is looks in to the struts-config.xml and matches the path attribute. After the matching ActionUserGroupMaster class is used to accomplish the task using some helper classes/beans etc and depending on the the return value (success,failure etc) corresponding page is called (success.jsp, failure.jsp etc). Hope it helps -- swan action path=/usergroupmaster type=ActionUserGroupMaster name=UserGroupMasterActionForm scope=request validate=false 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/ /action http://localhost/xyz/usergroupmaster.do ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]