ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Struts
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the difference between *.do & /do.*/?
So what is the diffenence btn extension mapping & path
mapping.What is those difference in work effect?
 Question Submitted By :: Laliasonu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
hi i know only about *.do.
If we declared as *.do then from the browser we give any 
url ends with .do.
ex: http://localhost/8080/../abc.do
 
Is This Answer Correct ?    0 Yes 0 No
Hari
 
  Re: 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
# 2
Hi Frns.
        In order to achieve MVC architecture feature the 
file should be extends with .do extension. Means if we are 
giving file name as "Login.do" it goes to the mixture of 
MVC architecture.
No idea about do.*.
 
Is This Answer Correct ?    0 Yes 0 No
Shanawaz`
 
 
 
  Re: 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
# 3
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
Mayookh Mitra
 
  Re: 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
# 4
hey,*.do is the extension match which is vallid in struts.
and /do is the directory match which is also valid,but we
should not mix up both like /do.*/,which is invalid.
 
Is This Answer Correct ?    1 Yes 0 No
Tirupathi Rao
 
  Re: 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
# 5
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 ?    0 Yes 0 No
Kartheeswari
 
  Re: 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
# 6
whatever Tirupathi Rao told it is correct. I am adding few
more words to this question.We need to follow either
extension matching or directory match to achieve "Front
controller" design pattern. By using this design pattern
only we can able to trap all the requests to Action classes
and forwarding control to ActionServlet class.
 
Is This Answer Correct ?    1 Yes 0 No
Ramanjaneyulu
 

 
 
 
Other Struts Interview Questions
 
  Question Asked @ Answers
 
Is Struts Action class Thread Safe? Wipro5
what is the difference between *.do & /do.*/? So what is the diffenence btn extension mapping & path mapping.What is those difference in work effect? Wipro6
what is the purpose of action servlet and action?  4
what are the actions in struts? Wipro5
what is the use of cvs in struts?  2
Even though Servlets and JSP are web based concepts .wht is the use of using Struts using then TCS6
What is Request Dispatcher and What is reuest Processor??  1
How Struts will follow the MVC? HCL3
How can I make own ActionServlet? with example TCS4
project architechture in java IBM2
how will you view ur jsp page to the client by using properties file? Wipro2
how can you switch onemodule to another module by switch action class plz explain with exapmle? Satyam1
how you implement and maintain your struts project by using MVC2 arch? Wipro2
Is struts thread safe? HCL2
What is the difference between RequestProcessor and RequestDispatcher? Ness-Technologies8
what is the difference between ServletContext and ServletConfig?  3
What is Struts Flow? CTS4
How to add ms-word file in struts at the same time how to add images  1
How do you customize ActionServlet? Ness-Technologies2
how the error can be showed in the jsp page in struts? Wipro2
 
For more Struts Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com