what is the difference between *.do & /do.*/?
So what is the diffenence btn extension mapping & path
mapping.What is those difference in work effect?

Answer Posted / kartheeswari

If we specify *.do in <url-pattern>, the ActionServlet
specified in <servlet-class> will respond to all the
request whicheverr comes from the client.

if we specify do.*, ActionServlet class respond only to the
request comes from the resource with "do" primaryname and
with any extension. like do.html, do.jsp, do.do

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert struts to spring mvc?

717


What is difference between lookupdispatchaction and dispatchaction?

842


What is container struts2?

726


What is the actionform?

741


Which interceptor is responsible for file upload support?

783


What is the purpose of action-mappings tag in struct-config.xml?

759


What is the purpose of '@customvalidator'?

775


What is the front controller in struts2?

681


State an example of struts configuration file as an action parameter for action servlet.

733


What are the two types of validations supported by validator framework?

768


What is the use of execAndWait interceptor?

743


Explain how can we upload files in struts2 application?

802


What is the purpose of @element annotation annotation?

767


What is lookupdispatchaction?

751


What is http redirect?

753