24-11-2012, 01:46 PM
Section -3) Web Development
3) Web Development.ppt (Size: 2.43 MB / Downloads: 38)
Section 3 - Web Development (20%)
Create dynamic and static Web projects
Understand classpath and module dependencies
Use Page Designer to add and modify HTML, JavaScript, and JSP content
Configure Web project properties
Understand the available JSF (JavaServer Faces) development tools
Understand the available Struts development tools
Create and configure Servlets
Static Projects and Dynamic Projects
A static Web project contains only static Web content, such as HTML pages, images, sounds, and movie files.
These resources are designed to be deployed to a Web server, and do not require a J2EE application server.
The wizard allows you to select the CSS file for the project and it can build the static Web project from a template.
A dynamic Web project contains resources needed for Web applications, such as JSPs, servlets, JavaBeans, and HTML
You can specify the version of the servlet specification, target server containing EAR file, and context root within the wizard.
Page Templates
You can use templates to provide a common look and feel
They provide you with a base layout for a page
Changes to the look and feel of the template are reflected in pages that use that template
You can apply templates to individual pages, to groups of pages, or to an entire Web Site
If you make changes to the page template, the pages created from that page template are automatically updated. You can create a page template in two ways:
Create a brand new page template
Create a page template from an
existing Web page file
There are two types of page templates
Design-Time page templates
Dynamic page templates
Dynamic Templates Inheritance
Templates can extend other templates
Root templates capture shared layout information
Child templates specialize the layout for different page types
Changes to the Root template are automatically propagated to the child templates
Organize Web Pages in a Site Hierarchy
Web sites organize pages in a hierarchy
The Web Site Designer is an editor that allows you to design and maintain the site hierarchy
Graphically design the navigation between Web pages
Apply a common stylesheet and page template to Web pages
Generate and automatically update navigation links and a site map page
Open the Web Site Designer by opening the Web Site Navigation link in the Web project