Filtering of special characters in FORM Submit is one more problem faced by a novice programmer in Java/JSP development. Best practice to avoid it and get the special characters filtered automatically is to use JDBC preparedStatements rather than Statements.