I've added a Christmas Tree to this site to decorate a little for the holidays. Hope you don't mind. Like all new additions, I had to make room for it and adjust some margins so it didn't hide behind anything. Feel free to steal it if you like. The CSS to make it a background is available with a good ol' Ctrl+U. You should be glad this is all I did - the first one I tried was animated... Happy
Holidaze!
I feel obliged to report on security in web applications now I've written a chapter on it. DevX has an article on how to Set Up a Certificate Authority for Java-based Systems. Along the same topic of security, Lance sent me this humorous story about a hotshot security manager.
I requested a new feature today for Roller - the ability to receive e-mail notification when comments have been posted. I mentioned this wouldn't be too hard using the mailer tag library. So I got slightly motivated and did it myself. I think to add it to Roller, we should make it a little more configurable, but here's what I added above the form in weblog/comment-form.jspf:
... define mailer and c taglibs of course ...
<c:if test="$\{param.method == 'update'\}">
<mt:mail server="smtp.domain.com">
<mt:setrecipient type="to">[email protected]</mt:setrecipient>
<mt:from><c:out value="${param.email}"/></mt:from>
<mt:subject>Comment: <bean:write name="blogEntry"
property="title" scope="request" /></mt:subject>
<mt:message><c:out value="${param.content}"/>
<c:out value="${param.name}"/>
<c:out value="${param.url}"/>
</mt:message>
<mt:send>
Doh! An error has occurred sending comments notification!<br />
<mt:error id="err">
<jsp:getProperty name="err" property="error"/>
</mt:error>
</mt:send>
</mt:mail>
</c:if>
I had to put those \'s in their in order to get past Velocity. The one pain with the mailer tag library is everything comes through with the spacing as set in the JSP. That's why the name and url variables are squished all the way over to the left.
I heard about Jenerator on the mailing list this morning. Sounds cool.
The Jenerator Version 0.9 is a code generator (Licensed under the Academic Free License version 1.1) and hosted on SourceForge, which takes meta information from different mediums, applies XSL templates and generates code. Unlike other code generators, which use JavaDoc custom tags to define and describe what is to be generated, Jenerator uses XML based Descriptor files.
It's got a heck of a list of features too: supports regeneration, EJBs, VOs, Unit Tests for JUnit and Cactus, Ant's build file, JDO source descriptor, and Servlets. While all this sounds good, I probably won't even download it - I'm just not interested as I really like how XDoclet works right now. I might change my mind in a few weeks, but I've learned too much to give it up now.
I, like Charles, was unsure of what Maven did. James has made it clear and I have seen the light - I think. In my AppFuse project, I have a lib directory that contains all the various third-party jars I'm using in my build process. Among these are XDoclet, Struts, Cactus, JSTL, Hibernate, JUnitDoclet, etc. The problem is that this directory is ~16MB and if I add it to CVS, I've got a monster project. The zipped up version of AppFuse's source is 14MB! That's enough to scare off folks right there.
It sounds to me that Maven can help me out in 2 ways. It can be used to download and install these jars as part of the build process. Slick if it can! Can it get me nightly builds from CVS? The 2nd feature seems to be building a project website for me. That's cool and definitely better than my simple readme file. However, can I make my site look like this (my site) rather than this (Maven site)? The good news I see is that the generated website does use XHTML and a DOCENGINE:
<!DOCENGINE html PUBLIC "-//CollabNet//DTD XHTML 1.0 Transitional//EN"
"http://www.collabnet.com/dtds/collabnet_transitional_10.dtd">
The bad news is that it's not a standard DOCENGINE and even after I override the doctype and charset, it still does not validate. Of coure, this may not be a big deal, but if this were to be more "standard" it would be easier to convince folks like me to jump on the bandwagon. If there's templates I can modify, show me, and I'll dig like a miner that's struck gold.
Konstantin Priblouda has put together a small demo showing hibernate in action:
- XDoclet generated mappings & service descriptor for JBoss (.sar file) - these were mentioned by Marc Fleury at his presentation. The basically are Service ARchives and allow for pluggability/removeability in JBoss.
- Session bean accessing hibernate.
- Small client.