Basically I have a form with a textbox.
Some of the input value contains html entities (specifically <, >).
Say I input "<" and pass my values as such:
var theDescription = $("#inMaintDescription").val()
$.ajax( {
url : "Ajax.faces",
type : "GET",
cache : false,
contentType : 'application/json; charset=utf-8',
data : {
description: theDescription
However when it reaches java, it becomes
String theDescription = inRequest.getParameter(RequestConstants.AJAX_REQUEST_VARIABLE_DESCRIPTION);
theDescription is literally <
instead of <
How can I input < on my text box and the java string receives it as < ? Is string replacement on java the only way?