Hi, I'm implementing the searchCriteria. What I did was parse through the criteria then compare the values of the values to match with each and every record of the specific column in the database. It seems to work but if the following fields is within the criteria, it doesn't. Carrier Price Duration Available seat From a dos prompt output, Field value output seem correct. But when I use JBuilder, the output in the IDE reveal that there is some trailing character after the value which I think is the reason that cause the .equals of String to fail. Can anyone advice why is this? Is it due to the encoding? I'm using .getByte(String enc) to solve the deprecated method. Thanks so much for any advice. Cheers.
posted 15 years ago
Oops! While I'm writing, I thought of .trim() and when yo try immediately. Problem solved now. Sorry. Cheers. Han Ming