9. Regard the first selection that expresses a layer as JSP.
Be in only need a variety of expression that output a type, and output the ability when the type is supported by an onefold controller and back end use XML/XSLT.
We often hear a few controversies to say, why be you choose XML/XSLT and JSP serves as show a skill. The viewpoint of the person that selects XML/XSLT is, JSP " allows you to mix model and view together " , and XML/XSLT won't have this kind of problem. Regretful is, this kind of point of view is not complete and proper, or at least unlike is white with black the clarity that divides in that way. Actually, XSL and XPath are programming language. XSL is Turing those who finish (Turing-complete) , although it does not accord with the programming language that most person defines, because it is based on regulation, and do not have the control tool that programmer is used to.
Since gave this kind of flexibility,present problem is, development staff can use this kind of flexibility. Although everybody agrees with JSP to make develop personnel to join the action of " of " similar model easily in view, and actually, make a few same things likely also in XSL. It is very difficult that although undertake visitting a database from inside XSL,such thing is met, but we once had seen a few unusually complex XSLT style watches carry out complex changeover, this is model code actually.
However, the shows a skill the mainest reason that should choose JSP to serve as first selection is, JSP is support is the widest now, also be most the J2EE view technology that is understood extensively. And introduce as what define the new character of mark library, JSTL and JSP2.0 oneself, found JSP to become more easy, and do not need any Java code, and can open the depart of model and view clarity. In environment of a few development (like WebSphere Studio) joined pair of JSP (the support that includes exchange to try) powerful support, and a lot of development staff discovery use JSP undertake developing wanting to compare use XLS simple, the feature of etc of graphical design tool of JSP of a few support (it is especially below such JSF frame) make development staff OK see with place namely the development that the means of earning has JSP, and accomplish not easily sometimes to XSL.
The last the matter that should consider to use JSP carefully is rate issue. The function test of relative speed of the comparative XSL that makes in IBM place and JSP shows: Below most circumstance, JSP is in when generating same HTML, should compare XSL several times faster, using the XSL that has compiled even also is such. Although this is not a problem below most circumstance, but in performance demand very high case falls, this can become an issue.
However, this also cannot say, you also do not use XSL forever. Below a few circumstances, XSL can represent a group of fixed data, and can be based on the optimal solution that the ability that diverse modal list will come to show these data with different kind is indication view. However, this is a kind of exceptional circumstance only, is not current regulation. If you just generate HTML to convey each page, so fall in most circumstance, XSL is a kind of needless technology, and, the issue that the development staff place that it gives you brings is far the problem that can solve than it is much.
Previous 1 2 3 45 6 7 Next