Pessoal,
Não sei como recuperar uma List (criada na interface) e apresentar ao usuário através de uma página JSP. Quanto ao vetor pac[] eu alimentei com um select no BD.
public interface InterfacePaciente{
List todosPacientes(String pac[]) throws EOFException;
}
public List todosPacientes(String pac[]) {
List<Paciente> list = new ArrayList<Paciente>();
for (int i = 0; i < pac.length; i++) {
list.add(new Paciente(pac[i]));
}
return list;
}
Segue a parte do JSP onde estou com a dúvida
<%
List pacientesList = ?????? AQUI ESTÁ A MINHA DÚVIDA ?????????
if (pacientesList != null) {
for (Iterator i = pacientesList.iterator(); i.hasNext();) {
Paciente paciente = (Paciente) i.next();
%>
