Thursday, January 8, 2015

aliasNameApply_onDateValue



 aliasNameApply_onDateValue :



Other Way :
sql :
            String query = "select reg_no,dob from op_registration  where reg_no in (select distinct(reg_no)  from op_consultation  where CONSULT_BY = 'E011001000425')";
  while (this.rs.next()) {
                 RadiologyTestInfo radiologyTestInfo = new RadiologyTestInfo();
                
                radiologyTestInfo.setReg_no(rs.getString("reg_no"));
                   //radiologyTestInfo.setDob(rs.getString("DoBB"));
                   //radiologyTestInfo.setCal_dob(rs.getString("dob"));
               radiologyTestInfo.setDob(rs.getDate("dob"));
               
               
               patientViewDataList.add(radiologyTestInfo);
            }
Model /Info class file : declare way 
private Date dob;// it is set get

jsp page :
 <td><s:date name='dob' format='dd/MM/yyyy'/></td>

No comments:

Post a Comment