advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

Reviews : WebWork: The New Framework on the Block :

Tag Libraries

WebWork has an extensive tag library that is used in rendering output to the users. Most of the tags in WebWork are built to support JSP pages, velocity templates, and FreeMarker templates. However there are some tags that are specific to the one of the above languages and cannot be used universally. Though WebWork supports all three languages listed above, it gives additional emphasis for FreeMarker and encourages developers to use FreeMarker instead of JSP and velocity.

Tags in WebWork can be broadly classified as general tags and HTML tags. General tags are used to manipulate the general flow of the user interface pages and allow the developer to add conditional logic into them. Built-in tags, like if-else, iterator, and sort, can help control the output to the user interface. Other general tags allow the developer to create new beans, set and get properties on beans, push values on to the stack, and support internationalization. HTML tags help the programmer to access data and display them in HTML to the user interface. Apart from having representations for the common HTML controls, HTML tags have additional representations for commonly used UI functions. HTML tags are extensively used as part of templates and themes.

OGNL

Object Graph Navigation Language (OGNL) is an expression language used to access properties of Java objects. WebWork uses OGNL to access data in Java objects and servlet variables. OGNL allows the developer to access servlet variables that are in session scope, application scope, and request scope. Unlike simple tags, OGNL also allows the developer to evaluate expressions before they are rendered to the user interface.

Themes and Templates

One of the important features of WebWork is its support for themes and templates. Templates are small pieces of code written in FreeMarker, JSP, or velocity that are rendered to the UI using HTML tag libraries and themes are a collection of templates that are combined together to provide some common functionality. WebWork has a number of templates written in FreeMarker, but developers are free to build new templates in JSP or velocity. Template engines for JSP and velocity templates are included in WebWork, but WebWork recommends using FreeMarker templates instead. WebWork also has a set of built-in themes that can be used for most UI rendering schemes, and developers also have the flexibility to extend from existing themes or built new themes. WebWork comes packaged with a simple theme, an xhtml theme, and a css-xhtml theme. It is recommended that you use one of these themes or extend the simple theme rather than build a new theme from scratch

Type Conversion

HTTP parameters are usually received and transmitted as strings without any type information defined in them. A field could be an integer, a currency, a data, or a double, but when it is transmitted over HTTP, all of them are converted to strings. It is the responsibility of the receiving application (an action or a controller, etc.) to parse the information into the right data type. WebWork provides a simple conversion library that can convert request parameters into common data types like integer, long, double, array, dates, etc. It can convert these data types back into strings before they are transmitted. Apart from these inbuilt conversions, WebWork allows users to define their own data types and do conversions. For example, suppose you enter the height of a person in feet and inches. The information can be passed as "5,11" and the converter can parse the string to generate a Height object with feet and inches as separate fields.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 Internet.com eBook Library
 IBM Software Construction Toolbox
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 38
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

Mozilla's Ubquity Mashup: For The Masses?
iPhone Users Just Want to Have Fun
Oops! I Fixed the Linux Kernel
Jim Zemlin: The New Center of Linux Gravity
Microsoft's Novell Investment Tops $340M
Fedora 10 Takes Shape
IBM Gives a Mobile Voice to Developers
Inadequate Tools Send Software Down the Drain
USB 3.0 One Step Closer to Reality
Would-Be Linux Contributors May Get a Leg Up

State of the Semantic Web: Know Where to Look
A 3D Exploration of the HTML Canvas Element
Setting Up and Running Subversion and Tortoise SVN with Visual Studio and .NET
Java/JRuby Developers, Say Open 'Sesame' to the Semantic Web
Interpreting Images with MRDS Services
DevXtra Editors' Blog: Executives Avoiding Cloud Computing in Droves
Q&A with James Reinders on the Intel Parallel Studio Beta Program
The Pros and Cons of Outsourcing Enterprise Emails
Hosting Options: Shared or Dedicated Server
Movin' On Up: How to Hop to a New Host

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



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