I'm writing a JSR 286 portlet for IBM WebSphere Portal 6.1. I have the following code:
@ProcessAction(name="processForm")
public void processForm(ActionRequest request, ActionResponse response)
throws PortletException, IOException {
String formField1 = request.getParameter("formField1"));
System.err.println("formField1: " + formField1);
}
If the user submits '<' on the HTML form, the system outputs:
formField1: '<'
However, if the user submits '<' on the HTML form, the system also outputs:
formField1: '<'
This makes it impossible to determine which value the user actually typed into the HTML form. Is there a way around this?
I found an article here which recommends doing a straight replace, but it doesn't address the issue of distinguishing between the two different values on the form.