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.

 Intel Go Parallel Portal
 Internet.com eBook Library
 IBM Software Construction Toolbox
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 43
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%.

Google Hopes Chrome Will Help, Not Hurt Firefox
Remember Figlets? They're Back With Zend
Microsoft Readies an App Store Competitor?
Google: Chrome Browser Will Make Money
Sam Ramji: Microsoft's Man in Open Source
Google to Shake Up Browsers With Own Launch
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

Code Around C#'s Using Statement to Release Unmanaged Resources
Writing Functional Code with RDFa
BitLocker Brings Encryption to Windows Server 2008
Network Know-How: Exploring Network Algorithms
Create a Durable and Reliable WCF Service with MSMQ 4.0
The Baker's Dozen: 13 Tips for SQL Server 2008 and SSRS 2008
Book Excerpt: Microsoft Expression Blend Unleashed
Develop a Mobile RSS Feed the Easy Way
State of the Semantic Web: Know Where to Look
A 3D Exploration of the HTML Canvas Element

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

Solutions
Whitepapers and eBooks
Intel PDF: Virtualization Delivers Data Center Efficiency
Intel eBook: Managing the Evolving Data Center
Microsoft Article: BitLocker Brings Encryption to Windows Server 2008
Symantec eBook: The Guide to E-Mail Archiving and Management
Microsoft Article: RODCs Transform Branch Office Security
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
Avaya Article: Advancing the State of the Art in Customer Service
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Avaya Article: Avaya AE Services Provide Rapid Telephony Integration with Facebook
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Seminar: Efficiencies in Hardware/Software Virtualization
HP Webcast: Disaster Recovery Planning
Go Parallel Video: Performance and Threading Tools for Game Developers
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
IBM TCO eKIT: Your IT Budget is Under Attack, Get in Control
IBM Energy Efficiency eKIT: Learn How to Reduce Costs
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Microsoft Article: Silverlight Streaming--Free Video Hosting for All
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
HP Demo: StorageWorks EVA4400
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES