Web site LaF manager
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."
Also in Java Today , JavaBeans follow a
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.
In today's java.net News Headlines
- JXTA 2.2.1 RC
- Lomboz Open Sourced
- JDebugTool 3.4
- GeoTools 2.0-B2
- Excelsior JET 3.6 beta 1 for Linux/x86
- Microsoft, Nokia Aim for Mobile Domain
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
News RSS feed.
Current and upcoming
- March 12-14 San Diego Software Symposium
- March 15-19 Software Developer Conference West
- March 19-21 Gateway Java Software Symposium
- March 22-26 Game Developers Conference, 2004
- March 23-25 7th Jini Community Meeting
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
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.