Monthly Archives: March 2010

Wicket – forcing page reload on browser back button…

An interesting issue arises when doing AJAX with Wicket, where you have an AJAX-enabled page with a bunch of controls that get generated/refreshed by AJAX. The user then navigates to another page, and subsequently hits the back button and returns … Continue reading

Posted in Java, Software Engineering | Tagged ajax, Java, tips, web, wicket | 7 Comments

HTML Sanitizer added to visural-common…

Cleaning HTML input to protect against cross site scripting (XSS) attacks is never fun. Doing some searching for a suitable Java-based sanitizing tool came up with a few candidates – the OWASP AntiSamy seems like the most fully featured one, … Continue reading

Posted in Java, Software Engineering | Tagged Java, open-source, security, visural-common, web, wicket, xss | Leave a comment

1 second guide – enabling gzip compression in Apache Tomcat

This is one of those note-to-self posts. Add the following attributes to the <Connector> in Tomcat’s server.xml to enable gzip compression of responses: compression=”on” compressionMinSize=”2048″ compressableMimeType=”text/html,text/xml,text/csv,text/css,text/javascript” Done.

Posted in Java, Software Engineering | Tagged Java, tips, tomcat | Leave a comment

Back to Dreamhost…

I’ve had to move this site back to Dreamhost temporarily as I FUBAR’ed my Linode instance by executing “yum update”. Fortunately I have regular word press backups happening so I didn’t really loose much, except my temper. I was having … Continue reading

Posted in General, IT | Tagged dreamhost, hosting, linode | Leave a comment