Monthly Archives: April 2007

Prototype + X-JSON + Struts 2

I wrote a little action today which makes use of this so I thought I’d share it. The idea is to pass a JSON String back from the server side to a page which makes the call using Prototype and evaluates the response. The only thing unusual that’s happening is that the String from the [...]

Are JSPs dead?

That’s supposed to be a rhetorical question, of course they’re dead. They died a long time ago when it dawned on us that they were nothing but untestable, overweight slobs that only ever existed because of ASP. Anybody who ever used JSPs has at some point, sworn by them, marveled at how great [...]

Google Guice too self-righteous, stick with Spring

I like Guice, it’s a nice little tool that gets you all excited by doing Dependency Injection using annotations. That’s where it ends though, it really does. Once you’re past the high of using @Inject in a couple of your classes and on to doing something a little more complex, you realize that [...]

JavaRss.com hacked by the devil

OK, so JavaRss.com isn’t the most creative site of all, it just contains RSS feeds from all the major Java websites like java.net, javaworld.com and so on. Still, it’s a nice enough site to go to if you’re looking to do some reading about the latest trash being produced by the OS community, self-righteous [...]

Struts 2 Form Control Templates

This, like many other areas of Struts 2 has remained virtually unchanged after it’s port from Webwork. The idea is that you can template the look of your controls in a fine-grained or application-wide level. Suppose you have a fetish for good practice and want to precede every occurrence of an input tag [...]

Struts 2 and Zero Configuration for Actions and Results

Struts 2 (WebWork on drugs?) comes equipped with some pretty nice features, one of them being Zero Configuration where you don’t have to write any XML configuration or muck around with property files to get your application up and running. You simply specify a path to your action packages and Struts will read the classes, [...]