spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column37

Dynamic Web Sites with XML, XSLT and JSP

Applications Developer - Sharepoint
Professional Technical Resources
US-OR-Portland

Justtechjobs.com Post A Job | Post A Resume
Developer News
Microsoft Shows Some Ankle With Visual Studio
Gentoo Linux Cancels Distribution
It's Official: Windows 7 at PDC, WinHEC

The times where Web sites with static documents were successful are long over. Today the update frequency and currentness are an important factor for a site's success. There are a lot of mechanisms for producing dynamic content these days. On the server side we have CGI, PHP and servlets, the browser has JavaScript and Java applets.

All of these techniques have in common that the pages cannot be created without programming knowledge. Whereas Web design was a domain of graphics artists and layout artists, today programming specialists are also necessary for building a complete site. This mix of creativity and technology every so often leads to problems and time consuming workarounds: either the design needs to be integrated in the code, or code appears in HTML documents.

The coordination problems resulting in the tight coupling of these two disciplines should be minimized as much as possible. In the remainder of this article we introduce a method, that eases the burden of providing dynamic data and integrating it in the Web site. The basis is a Web server that supports the execution of Java Server Pages (JSP). Inside the JSPs, the dynamic data gets generated that needs to be integrated into the Web design.

Briefly put JSPs are HTML documents into which Java code can be integrated. When such a JSP is requested for the first time, it is turned into a Java servlet and compiled by the Web server, or more precisely the JSP/servlet engine. This servlet then implicitly contains the HTML code. The execution of the code generates the dynamic data and combines it with the HTML to send back to the Web browser.

This approach alone does not yet reach our goal to separate programming from design. Therefore we do not directly generate HTML but take an extra step of saving dynamic data in XML. In order to create HTML for the browser, we hand over the XML data to an XSLT (Extensible Stylesheet Language Transformation) processor, which, aside from the dynamic XML data, takes a static XSLT stylesheet.

Following the rules defined in the stylesheet the processor converts the XML into HTML. After the conversion the HTML document will be sent to the browser and displayed there. With this approach we separate the programmer, who is responsible for the creation of the JSPs and the acquisition of the dynamic data, and the graphics artist, who maintains the transformation logic in the XSLT style sheet. Only the kind of data needs to be agreed upon.

Let's look at the software.

Produced by Michael Claßen


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Controllers: Programming Application Logic - Part 2 · How to Use JavaScript to Validate Form Data · Controllers: Programming Application Logic
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Sprint Launches Mobile WiMAX Network · Albatron Downsizes with the KI780G Mini-ITX Motherboard · Can't Find a Wi-Fi Network? Make Your Own.

Created: Aug 15, 2001
Revised: Aug 15, 2001