Which is exactly what "escaping" the character (by preceding it with a "backslash" [\] ) does.
However; I notice from your initial question that you are passing information from one JSP to another. In this case you also need to be careful when building URLs. If you are using a GET request with parameters on the end of the URL you really need to "URL encode" any dangerous or unusual characters. There's plenty of information on tghe web about this, for example http://sislands.com/coin70/week6/encoder.htm