Archive for the ‘Java’ Category

Old regex in java example

Friday, January 18th, 2008

I routed an article on RegEx earlier, and I thought I’d follow it up with a simple usage of RegEx in Java. The attached file will grab a web page from the web and print the title and all the links on the page. Give it a look. It [...]

Embedding Javascript in Java webapps

Monday, January 14th, 2008

Javascript in Java Applications

There are many times when I have wanted a way to write scripts against webapps.

One of the normal cases is the need to make changes to the DB using the Managers in the application.  Using SQL is great but in complicated schemas I’d like to be able to do inserts and deletes [...]

JavaScript Validator

Thursday, January 10th, 2008

I’ve been working a lot on a re-write of the Apache Commons JavaScript validator. Primarily I wanted to enable nice highlighting of invalid fields (as opposed to the Alerts that the original used), and to add the ability to validate individual fields as the user moves through the field.

I plan to use the JavaScript [...]

Spring Bean Lifecycle

Wednesday, January 9th, 2008

So while I was trying to scrape a Groovy mess off of my heel I found a real gem in the Pro Spring book.

For those who want to read it themselves you can find what I read on pages 95-110 in the Yellow and black book called Pro Spring.

The Spring Framework provides two interfaces that [...]

How to enable server-side includes (SSI) in Jetty

Tuesday, January 8th, 2008

You can enable server-side includes (SSI) in Jetty by taking the SSI servlet from Apache Tomcat and dropping it into your Jetty app. Here’s how I did it.

Copy the servlet configuration from Tomcat’s web.xml, located in Tomcat5.x/conf, and add the servlet-mapping tag at the bottom.

<!– NOTE: An SSI Filter is also available as [...]

Things I’ve been playing with lately

Wednesday, January 2nd, 2008

Hey All,

While I was on vacation I played with my LISP interpretor. It is written in Java and is my has been my experiment project or a few years. As I learn about new stuff I put it in here. Like Unit testing, and then TDD, and SVN and ….

If any of [...]

WebWork/Struts 2 merger

Monday, April 16th, 2007

Interesting presentation on Struts Action 2.0 and Webwork merger.
Short comparison with other frameworks
Conversation on Continuations
Rapid Development (Why is RoR so popular?)

It’s a long-ish presentation (~50 minutes), but gives a good summary of some of what I’ve been reading about the direction of java web development thinking

http://www.infoq.com/presentations/struts-2-webwork-pat-lightbody

Announce: Commons Fileupload 1.2

Friday, February 16th, 2007

Did you see this recent announcement? Since we use file upload in a number of projects, this update looks interesting — particularly the “support for progress listeners”.

—–Original Message—–
From: Jochen Wiedmann [mailto:jochen.wiedmann@gmail.com]
Sent: Wednesday, February 21, 2007 11:40 AM
To: announcements@jakarta.apache.org
Subject: Announce: Commons Fileupload 1.2

Hi,

the Jakarta Commons team is glad to announce the availability [...]

a popular library for date/time in java

Friday, February 16th, 2007

It’s always shocking that native Java is so clunky in dealing with dates. One of the popular libraries that makes life more enjoyable is Joda, so if you’re dealing with a ton of dates and finally get fed up, try it out.

http://joda-time.sourceforge.net/

Hibernate Mapping cheat sheet

Saturday, December 16th, 2006

I’ve been doing a ton of Hibernate mapping recently, and it seems like I’m always looking up options to match my database architecture.

Here is a nice one page summary of the mapping options.  You will need to do some reference checks in the complete docs, but it gives you some ideas.