String sql = "SELECT ID, NAME, SALARY FROM EMPLOYEE";
public List<Employee> getAllEmployees(Connection con){
List<Employee> elist = new ArrayList();
try{
//prepared statement
//
//
}catch(){
//exception
}
return elist;
}
Guys, I have a java class which selects List of values from DB. So far my code is running good I did debugging and I can see my query in eclipse console. Now I need to display java returned value(LIST) with different data types in jsp page. I am stuckI somehow I need to loop javaclass return value or something and display in jsp page. Please help me I have spent 2 hrs and can't come up with anything. i am uisng struts 2.0 and Employee class contains setter/getter