我從ajax響應中獲得了arraylist。在通過ArrayList獲取ajax的響應後,如何將值分配給textbox
?jjsp在從ajax得到響應後迭代arraylist值
while(rs1.next())
{
pabean.setAge(rs1.getString("patient_age"));
pabean.setDalerg(rs1.getString("patient_drug_allergies"));
pabean.setPmhistory(rs1.getString("patient_past_medical_history"));
pabean.setDiet(rs1.getString("patient_diet"));
pabean.setFhistory(rs1.getString("patient_family_history"));
pabean.setTobbaco(rs1.getString("patient_smoke"));
pabean.setDhistory(rs1.getString("patient_drug_history"));
pabean.setAlco(rs1.getString("patient_alcohol"));
pabean.setSleep(rs1.getString("patient_sleep"));
pabean.setGhistory(rs1.getString("patient_ob_gyn_history")
pabean.setPatient_details_id(rs1.getInt("patient_details_id"));
//uid = rs.getInt("patient_details_id");
}
addressLists1.add(pabean);
session.setAttribute("pagup", addressLists1);
out.println(addressLists1);
尊敬的Rushant Patel..Can您可以幫助我們理解您的問題,發佈一點您的代碼? –
我得到了ajax的響應arraylist對象,但我怎樣才能將它的值分配給文本框而不刷新頁面? –
你可以把你的反應? – yashhy