You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mario Signorelli <ma...@pimm.it> on 2003/07/18 12:42:42 UTC
how to solve case sensitive variable into a criteria
Hi to all
I'have a problem with case sensitive variable into a criteria
Criteria crit = new Criteria();
crit.addEqualTo("USERNAME", username);
crit.addEqualTo("PASSWORD", password);
Query query = new QueryByCriteria(Utenti.class, crit);
Collection lista = broker.getCollectionByQuery(query);
Into the db the username is 'a' and the password 'a' and if I put in the text login 'A' e password 'A' it doesn't find the user.
Is there any method to solve this case sensitive problem?
Thanks a lot
________________
Mario Signorelli
PIMM S.R.L.
via Lampugnano, 144
20151 - Milano
Tel. - 02/48206371
Fax. - 02/48206437