Skip to content.

Manageability

Sections
Personal tools
You are here: Home » blog » archive » Principle of Duality in JSPs

Principle of Duality in JSPs

20020907075656

You've heard of the wave-particle duality in Physics right. Look at an elementary particle from one perspective and it looks like a wave, in another it looks like a particle. Let me try a different analogy, the Fourier transform, look at a wave from the wavelength domain as opposed to the frequency domain. It's not the same, however, let me get to my point. Sometimes it helps to look at the same thing from different perspectives.

Okay, so what does it have to do with JSPs? There are essentially 2 kinds of ways to build a web page. One is the template style, that is you write the HTML and at certain places embed code. The other style (program style) is to write code that builds up the HTML. The template style is much easier, however the program style is more powerful.

The swing like frameworks (Echo, Swinglets, WingS etc.) all have a program style to it. The traditional frameworks (JSP, Velocity, Tapestry, XMLC) have a template style to it. The JSF however supports both styles.

Created by admin
Last modified 2003-10-20 03:33 AM
visitors
reading
 
 

Powered by Plone

This site conforms to the following standards: