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 / mayookh mitra

We can use both. *.do and do.* both are valid in struts. As
a matter of fact anything is valid when we are using the url
mapping.

*.do or routes all requests with a .do extension to the
specified page. And in the other case do.* directs all
request urls ending with a do.(html,jsp,whatever)to the
specified page

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we group related actions in one group in Struts?

568


What are Struts2 core components?

571


What is struts.devmode?

581


Which components are available using actioncontext map?

728


What is the use of resourcebundle.properties file in Struts Validation framework?

582






Is struts action class singleton?

556


how to get the last 10 elements using logic:iterate in struts with hiernate from database.

4044


What is actionmapping?

604


Can we have more than one struts-config.xml file for a single struts application?

537


How action-mapping tag is used for request forwarding in struts configuration file?

590


What is package name in struts xml?

565


What is Custom Type Converter in Struts2?

632


What is the purpose of @key annotation annotation?

606


Describe the two types of formbeans.

587


List the important attribute and elements of action mapping under struts.

532