View Single Post
  #1 (permalink)  
Old 05-15-2007, 06:54 PM
Freddie Freddie is offline
Member
 
Join Date: May 2007
Posts: 42
Freddie is on a distinguished road
working with servlets
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:
Code:
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:

Code:
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
Reply With Quote
Sponsored Links