decompose index.jsp, add trim-whitespace directive, add filter to ex. messages