There is a servlet that does this in the seamspace example application. Take a look at ContentServlet.java. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083113#4083113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083113