change ftl to jsp, add messages support