struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Signorelli" <mario.signore...@pimm.it>
Subject how to solve case sensitive variable into a criteria
Date Fri, 18 Jul 2003 10:42:42 GMT
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

      


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message