replacing java code with JSP tags