Skip to content

Category Archives: Xml

SVN Log History By User to HTML

Most SVN users who use the command line client understand how to create a log in XML format: svn log –xml -v svn://some/url > svnlog.xml But this dumps the whole log, and I really just want to see a specific user. Plus, I hate XML and definitely do not want to read it. Here is [...]

HSQLDB Integration Into Spring Security

Adding a database back end to Spring Security seems deceptively simple. And to be fair, there are several ways to do it. The way I had in mind looked like a shortcut. In my application there is basically one table for all users. It contains the values I need for username, password, role, and the [...]

Spring Security -> Replacing Acegi

Astute readers of my last Acegi article will note that Acegi has been assimilated into the Spring project, and is now called Spring Security. This next example is how I was able to get Spring Security running on my webapp. I decided early on that I did not want to mess up the other developers [...]

Acegi 1.0.8 Example (Life Without the SecurityEnforcementFilter)

Note; This was my first day of adding Acegi to an existing webapp. You can find a lot of Acegi security framework examples on the web these days. Unfortunately, nearly all of the examples use Acegi use the pre 1.0 version, which is before someone removed the SecurityEnforcementFilter.. The official description of this event follows: [...]

Marshalling and Unmarshalling Xml – Step by Step tutorial with Castor in 10 mins

If you want a simple way to marshall / unmarshall your pojo -> Xml files, Castor could be very handy. Before reading the docs on the setup and overview and breaking your nerves on it’s rich feature set, lets get going in less than 10 minutes. Castor is extremely powerful but if your purpose is [...]

Groovy Ant Script- First Blush

Most every Java developer these days has written an ant script. Some of us have had the great fortune of writing a lot of ant scripts. And as cool as it is, it gets extremely tedious writing XML. Enter Groovy‘s AntBuilder. I’ve been writing some groovy scripts lately and have wanted to take a look [...]

Shameless Self Promotion

I’ve added an extensive article to the wiki about parsing XML with Digester. The article is cut from two articles I found useful, covering the basics of parsing with Digester. Then I also added how to add custom Rules to handle more complex parsing situation. I’ve been working with Digester for a few months now [...]