Really basic working hibernate example, part 1
Someone wanted me to post a really basic example of how to use a hibernate DAO. Well, here it is.
Uploading files without using spring forms
UTF-8 – why the Internet is a bad place
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.
Sending your own custom headers
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…
Using joda time instead of Javas own
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…