Contents - Cultural View

Contents - Cultural View Contents - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

Java syntax 198 } void addItem(Integer item) { } See also • Java Platform, Standard Edition References [1] Owens, Sean. "Java and unsigned int, unsigned short, unsigned byte, unsigned long, etc. (Or rather, the lack thereof)" (http:/ / darksleep. com/ player/ JavaAndUnsignedTypes. html). . • Patrick Naughton, Herbert Schildt. Java 2: The Complete Reference, third edition. The McGraw-Hill Companies, 1999. ISBN 0-07-211976-4 • Vermeulen, Ambler, Bumgardner, Metz, Misfeldt, Shur, Thompson. The Elements of Java Style. Cambridge University Press, 2000. ISBN 0-521-77768-2 • Gosling, James; Joy Bill; Steele, Guy; and Bracha, Gillad (2005). Java Language Specification (http:/ / java. sun. com/ docs/ books/ jls/ index. html) (3rd ed.). Addison-Wesley Professional. Retrieved 2008-12-03. External links • The Java Language Specification, Third edition (http:/ / java. sun. com/ docs/ books/ jls/ ) Authoritative description of the Java language • Java SE 6 API Javadocs Java: View Technologies and Frameworks Various Java Web frameworks have appeared in recent years. Some of them are in direct competition, while others are complementary technologies. It is therefore necessary to understand where exactly each technology/framework fits into the J2EE scheme of things. This page lists the View technologies. These are the frameworks which are used for defining the web pages and the server-side programs which handle the requests (clicks) generated by the web pages. At a glance HTTP Paradigm Component Paradigm Templating Struts Wicket Tiles Tapestry SiteMesh JSF Facelets • Struts is relatively easier to use for beginners because it contains the familiar HTTP paradigm of Request/Response. However, the Component based frameworks are architecturally superior, and usually recommended for creating more complex web applications. • Wicket, Tapestry and JSF are competing technologies. • Tiles is a templating framework which is designed to work with Struts. • SiteMesh can be used with any JSP. Click

Java: View Technologies and Frameworks 199 • Facelets is designed to work with JSF. • Wicket and Tapestry have their own native templating. • Click uses HTML based velocity templates and plain old Java objects. JSP is optional. Servlet API • This is the foundation of almost all Java View technologies. • It provides the basic framework for writing Java classes, called 'Servlets' that can respond to HTTP Requests, JSP create Cookies and maintain Sessions. • Built on top of the Servlet API, JSP provides for a HTML centric Server programming model. • Java code is embedded in the JSP files and is executed when a request is received. Struts • Built on top of the Servlet API, Struts provides for decoupling between the Controller and the View. • Requests are received by a Java Class (Controller) which can decide which View to display. • The actual View is written as a JSP page. • An XML configuration file is used to specify the "Page Navigation", i.e. the flow of the request to the appropriate Controller, and which View to display based on the outcome of the Controller. • Competitor: Though Struts does not have any direct competitor in its league, Component View Technologies (like Wicket, Tapestry) are generally accepted as superior. Tiles • This is a HTML templating framework based on the "Composite" model. • It allows for the HTML page to be broken up into multiple pagelets, called Templates, Definitions and Composing pages. • At run time the pagelets are stitched together to generate the final HTML. Pages are written in JSP. • Competitor: SiteMesh SiteMesh • SiteMesh is a HTML templating framework based on the "Decoration" model. • It allows for the creation of a 'decoration' template which is then applied to any other HTML to generate a new HTML. • The newly generated HTML contains elements from the original HTML blended into the template. • This allows for the original HTML to be very simple and devoid of any formatting or layout specification. The template, in turn, is devoid of any actual information. • Blending the two allows for a consistent look and feel for all web pages. • Competitor: Tiles

Java syntax 198<br />

}<br />

void addItem(Integer item) {<br />

}<br />

See also<br />

• Java Platform, Standard Edition<br />

References<br />

[1] Owens, Sean. "Java and unsigned int, unsigned short, unsigned byte, unsigned long, etc. (Or rather, the lack thereof)" (http:/ / darksleep. com/<br />

player/ JavaAndUnsignedTypes. html). .<br />

• Patrick Naughton, Herbert Schildt. Java 2: The Complete Reference, third edition. The McGraw-Hill Companies,<br />

1999. ISBN 0-07-211976-4<br />

• Vermeulen, Ambler, Bumgardner, Metz, Misfeldt, Shur, Thompson. The Elements of Java Style. Cambridge<br />

University Press, 2000. ISBN 0-521-77768-2<br />

• Gosling, James; Joy Bill; Steele, Guy; and Bracha, Gillad (2005). Java Language Specification (http:/ / java. sun.<br />

com/ docs/ books/ jls/ index. html) (3rd ed.). Addison-Wesley Professional. Retrieved 2008-12-03.<br />

External links<br />

• The Java Language Specification, Third edition (http:/ / java. sun. com/ docs/ books/ jls/ ) Authoritative<br />

description of the Java language<br />

• Java SE 6 API Javadocs<br />

Java: <strong>View</strong> Technologies and Frameworks<br />

Various Java Web frameworks have appeared in recent years. Some of them are in direct competition, while others<br />

are complementary technologies. It is therefore necessary to understand where exactly each technology/framework<br />

fits into the J2EE scheme of things. This page lists the <strong>View</strong> technologies. These are the frameworks which are used<br />

for defining the web pages and the server-side programs which handle the requests (clicks) generated by the web<br />

pages.<br />

At a glance<br />

HTTP Paradigm Component Paradigm Templating<br />

Struts Wicket Tiles<br />

Tapestry SiteMesh<br />

JSF Facelets<br />

• Struts is relatively easier to use for beginners because it contains the familiar HTTP paradigm of<br />

Request/Response. However, the Component based frameworks are architecturally superior, and usually<br />

recommended for creating more complex web applications.<br />

• Wicket, Tapestry and JSF are competing technologies.<br />

• Tiles is a templating framework which is designed to work with Struts.<br />

• SiteMesh can be used with any JSP.<br />

Click

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!