![]() |
String compare with Form field
I am new to JSP and am having trouble comparing string with the value in a form field submitted.
The following is the code that I am executing through Tomcat and is not giving me the desired result: Code: java Code:
<%You will notice that even though the correct string "compareme" is submitted in the form, the string comparison still fails. I have tried appending .toString() and .trim() to myvar but that has not helped either. I am obviously missing something very basic in JSP. Please help |
Re: String compare with Form field
Ok, posting the code once again for increased legibility:
Code: java Code:
<% |
| All times are GMT +5.5. The time now is 03:08. |