<jsp:useBean id="formHandler" class="foo.FormBean" scope="request"/> <html> <body> <br><font size=2 color=red><%=formHandler.getErrorMsg("mysql")%></font> </html> </body>