Struts URLs for perfectionists

By Peter Hilton. Published on July 29, 2005 in Web applications, Java

Many web applications inelegantly expose themselves in their URLs. While ASP.NET applications tend to have an .aspx in the URL, Struts’ default configuration gives you a .do in your URL. It is possible to reconfigure a Struts web application that uses URLs like /customer.do?method=edit&id=42 to use something like /customer/edit/42 instead. This article covers several separate techniques that you can use for different parts of the URL.

(more…)

Paranoid configuration: tamper-proof text

By Peter Hilton. Published on July 17, 2005 in Development, Java

I’ve just finished reading The Pragmatic Programmer, which is an interesting book about software development that I wish I had read years ago*. One of the books intriguing ideas is to use a secure hash, e.g. MD5, of a configuration file to prevent people tampering with system parameters after deployment (page 74). Working out when this would be useful comes later: first, where do you store the calculated hash?

(more…)

Copyright ©2005-2008, Lunatech Research B.V.