Skip to main content

Web site LaF manager

Posted by daniel on March 11, 2004 at 8:18 AM PST

The java.net project SiteMesh makes it easier to style your web application.

At last November's ApacheCon, Will Iverson gave a talk on using Tomcat to build Desktop Applications. That's right. While many are arguing here on java.net for building fat clients for web applications to move away from the browser, Will was giving a talk on how to move towards the browser for desktop applications. One piece was using SiteMesh to style the documents that the browser was presenting

Today Will's Introduction to SiteMesh appears in the java.net Featured Articles. He shows you how to easily decorate a page and add styling that pulls content (including meta tags )from the original page and presents it out easily. Will reports, "I've found that it lets me centralize a tremendous amount of code, moving it out of my presentation layer and into my decorators, without having to learn a new programming language or templating system."


In
Also in Java Today
, JavaBeans follow a getX() and setX() naming convention for property accessors but, as John Zukowski shows in his tip Reflecting JavaBeans Components , you can use reflection to dynamically access properties of a class. This tip shows you how to get the PropertyDescriptor for a property by getting the JavaBean's class, getting the corresponding BeanInfo and looking through an array of PropertyDescriptor objects for the one you want. You next get and invoke the reader method for that property.

You can Read And Write Microsoft Excel Spreadsheets Using Jakarta POI . As Santosh Shanbhag writes, the POI API "is so simple and easy to use that there is hardly any detailed explanation required." The POI Excel API is HSSF. His quick introduction shows you how to create an HSSFWorkbook and then to create workbook sheets in the form of HSSFSheet objects in it. Next you can create rows, freeze panes, and splitpanes and start moving your objects around. Within a row you will want to create cells and then populate the cells with data, create an Excel like formula for a cell, or format a cell to a given style. Shanbhag completes the tutorial with a nice example of creating an Excel Spreadsheet from a JTable.


In today's Weblogs , Duane Gran asks Do we need to lobby for Java these days? He points to Rick Ross' recent post but wonders if it's true that "we need a lobby for developers to be a decision making partner with Sun with regard to the Java Platform." Duane just isn't sure we could find consensus on open sourcing Java.

Attention webloggers There is some sort of glitch in the system that is being addressed. For now to create a new
entry you should login and then go to the weblog home page.


In today's Projects and Communities , the JavaPedia page on Refactoring points to tools, books, articles and examples for making code "more readable, more modular, more reliable, etc." without changing it's behavior.

The Patterns community notes that Martin Fowler describes the Decorated Command which is " really just the decorator pattern applied to commands" also called interceptors and as a form of AOP.


In today's java.net News Headlines
:

Registered users can submit news items for the href="http://today.java.net/today/news/">java.net News Page using
our news submission
form
. All submissions go through an editorial review by news director
Steve Mallet before being posted to the site. You can also subscribe to
thejava.net
News RSS feed
.


Current and upcoming
Java Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e"> events submission
form. All submissions go through an editorial review before being
posted to the site.


Archives and Subscriptions: This blog is delivered weekdays as the
Java
Today RSS feed
. All java.net members can subscribe to the email
updates for the site at the href="https://java-net.dev.java.net/servlets/ProjectMailingListList">
java-net Mailing Lists page. You must be logged in to subscribe
to
the javanet_Daily and javanet_Weekly lists. Also, once this page
is no longer featured as the front page of
java.net
it will be archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.