Really basic working hibernate example, part 2

January 30th, 2009

I’m assuming you’ve read part 1. So let’s get to it.

Read more…

sark Persistence , , ,

Really basic working hibernate example, part 1

January 30th, 2009

Someone wanted me to post a really basic example of how to use a hibernate DAO. Well, here it is.

Read more…

sark Persistence , , ,

Uploading files without using spring forms

January 30th, 2009

It’s not that hard. Really.

Read more…

sark Working with web , ,

UTF-8 – why the Internet is a bad place

January 27th, 2009

We have all been there. Character encoding is a constant source of frustration. Here’s a couple of ideas to help the world become a slightly better place.

Read more…

sark Filters , , ,

Sending your own custom headers

January 27th, 2009

It’s really easy to send custom headers, however if you wish to send the same headers for an entire application you might be out of luck. Consider for example if you are using some sort of authentication, and you do not wish the browser to cache generated pages.

You might end up having to add no-caching-headers for every controller and/or view. What happens if you forget to add them to just one page? Well, here’s one solution.
Read more…

sark Filters , , , ,

Using joda time instead of Javas own

January 27th, 2009

I know this isn’t really spring-related, but it’s very relevant to spring developers. We all know java date/calendar classes suck ass when it comes to more then simple read/write operations. But what’s the alternative?
Read more…

sark Date & Time , ,