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

Explain how to work with error tags?

585


Describe the mvc on struts?

548


How to use dispatchaction?

572


Which class of struts is responsible to converts data types from string and vice versa?

658


What’s the utilization of resource bundle properties file in struts validation structure?

621






What is the purpose of struts.properties in struct2?

526


What is the use of jsonvalidation?

593


What are the ways in which duplicate form submission can occur?

502


Is there a particularly good ide to use with struts?

504


What are best practices to follow while developing Struts2 application?

605


How to get data from the velocity page in a action class?

565


What does execandwait interceptor?

544


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

624


What are the core classes of the struts framework?

511


What is strut web xml?

526