REST and XML using Spring MVC and Groovy

Mattias Hellborg Arthursson

There’s one particular thing Groovy is really good for and that is working with XML. When I started playing around with the REST support in the latest version of Spring MVC I wanted to try using Spring for the controller infrastructure and delegate to Groovy for producing XML responses. It turned out this wasn’t as [...]

Tags: , , , ,

JXPath simplifies Java queries

Ulrik Sandberg

Consider a company that contains many departments. Those departments contain employees, those employees have names, telephone numbers, and so on. To query a collection of companies and find, for example, all departments of companies in California with more than 10 employees, you could write something like this:   for (Iterator companies = database.getCompanies().iterator(); companies.hasNext();) { [...]

Tags: , , , , , ,