www.developer.com/java/article.php/1380771
|
July 3, 2002 Which Option Is Best for Your Project?With the preceding comparison matrix in mind, let's look at some scenarios that would lead you to choose JSP or XSL for your next project. From the above discussion, you might see a strong leaning toward using XSL for implementing your view. This hasn't been the industry standard approach, although XSL is an industry standard technology. It's newer than JSP. It's not as optimized yet. But it more naturally fills the responsibilities of the View. Favor XSLLet's look at reasons why you should favor implementing your view in XSL over JSP:
Favor JSPLet's look at some reasons why you might favor implementing your view in JSP over XSL:
Hybrid approachIt is not always desirable to adopt a pure JSP or a pure XSL solution. Here are a few examples of how both technologies can be used to help render the View:
SummaryGiven that MVC is the way to build a J2EE application, how do you implement the "View" or V in MVC? Many would answer, "Well, a JSP, of course" since this is an industry best practice. However, this isn't the only standards-based approach. XSL is gaining maturity and acceptance and should also be considered for this task. Additional ResourcesJSP resourcesThe definitive source of information about Java Server Pages technology can be found at http://java.sun.com/products/jsp/. XSL resourcesAn excellent tutorial and links to other XSL resources can be found at http://www.w3schools.com/xsl/default.asp. Information on the Java Transformation API for XML can be found at MVC resourcesCheck out the following link to study more about MVC:
About the Author
|