Posts Tagged ‘web’

In-memory cache’s can be extremely useful for small web applications where you don’t want to full-blown cache system like ehCache or simply can’t afford one. I recently had such a requirement and I must say that I kind of made a mess of it. The requirement was to cache User objects so that we didn’t [...]

Wednesday, March 11th, 2009 at 14:37 | 5 comments
Categories: Java

We always want to know who is on our website, how many users are logged in and how many visitors are present. Not only is the information useful, it also looks good. :) I tried looking for pluggable solutions to track users but couldn’t find any. Having implemented spring security in a few web apps, I decided to see if there was an easy way to do this.

Thursday, February 19th, 2009 at 13:27 | 14 comments
Categories: Spring Security

More often than not people come to the spring forums asking about PropertyEditor’s. PropertyEditors are needed when you want to convert a string value to an object. Say for example, your command object contains a reference to a User object and the list of user’s is shown in the jsp with the value of the [...]

Saturday, February 14th, 2009 at 10:35 | 6 comments
Categories: Spring
Tags: , ,

I hate writing pagination code. Infact I hate it so much, I try not to paginate my lists at all. ( I know, i know, very bad on my part) . Writing pagination code totally destroys the code reuse in an application, developers generally just copy paste the very same pagination code all over the [...]

Friday, February 13th, 2009 at 15:47 | 39 comments
Categories: Ajax, Spring

More often than not you are required to secure your login pages and certain admin resources using secured socket layer (SSL) or TLS. This can be quite a task if you go around manually redirecting all your http requests to https and then configuring your server. Whats worse is that another team member may forget [...]

Wednesday, February 11th, 2009 at 18:28 | 1 comment
Categories: Tips & Tricks
TOP