What is the difference between action_name.do and /action_name.do?
Joined: Feb 26, 2010
Hi all, I'm new to struts can any one tel me the difference between the subject cited above?
1) Is it necessary to write the action name attribute in JSP preceded with slash.
2)if I write the action_name not followed by the ".do" then is this is mapped properly in the struts-config.xml ?
Joined: Jul 03, 2010
1. Not necessary to write the action name attribute in JSP preceded with slash.
2. Actually action name does not suffixed with .do in struts-confix.xml. you will be identify the action with .do suffixed action name.
.do suffixed action name will be filtered by the Filter Class.In which Filter class is defined in web.xml file.