The ItmCls is retrieved from the previous page, and equals RRXXX.
String webCls = request.getParameter("ItmCls");
String itmCls = webCls.substring(0,2);
if (itmCls == "RR") {
<perform actions here>
} else {
<do this>
}
Some reason the condition will not test true. I have outputed itmCls on the web page to double check its value and it does equal RR. I then created a dummy var String test = "RR" and replaced itmCls with test in the condition and it worked. Am I missing something simple?
String webCls = request.getParameter("ItmCls");
String itmCls = webCls.substring(0,2);
if (itmCls == "RR") {
<perform actions here>
} else {
<do this>
}
Some reason the condition will not test true. I have outputed itmCls on the web page to double check its value and it does equal RR. I then created a dummy var String test = "RR" and replaced itmCls with test in the condition and it worked. Am I missing something simple?