I am trying to join 2 tables relationed by their classes and methods, and then send to my JSP to show them joined. Aclaration: in my servlet I execute this:
Vector listap = objp.SearchPerson(name);
for(int i=0;i<listap.size();i++){
objperson = (cPerson) listap.elementAt(i);
objDistrict .SearchIdDistrict (objperson.getIdDistrict );
District =objDistrict.getNombre();
}
but i can´t go on, because I am trying to send to my jsp an array that contain person and his District .
In my servlet send to jsp like this:
req.setAttribute("listap",listap);
req.getRequestDispatcher("/manPerson.jsp").forward(req,res);
But as you can read I send person and I want to send name of the District
thanks