I'm not sure what to do, but I'd like to do this in jsp. I want the client to type the word to search mysql database. Example leonardo dai I'll have multiple database names, only the client that will search the data base he typed wrong leotard and did not return anything because there is no such name but want to do something he breaks all the characters and do search in the bank with all similar letters of an arraylist example words he typed that has more 5 equal words nume array list.
String reqDescricao = request.getParameter ("searchName");
String descricao = "%" + reqDescricao + "%";
EntityManagerFactory factory;
factory = Persistence.createEntityManagerFactory(AbstractWebCmd.PERSITENCE_UNIT);
AlunoDAO dao = new AlunoDAO(factory);
List<Aluno> alunos = dao.findByDescricao(descricao);
To do this in java and jsp.
I've done it so I want to change it, I want to break the word in letters and I want to bring all the words that have an example up to 5 letters in the same bank.