作者:断雁难飞_920 | 来源:互联网 | 2023-10-13 08:30
Iamnewtoajax.Iamusingajaxandjsptoretrievedatafromdatabase.Whennewdatainsertedint
I am new to ajax. I am using ajax and jsp to retrieve data from database. When new data inserted into the database the new data will be displayed automatically in the Jsp page.So in the ajax code I set the Timeout()
. In the jsp page against every data row there is a checkbox. If I check the checkbox the checkbox is changed when the page is reload. But I want to remain unchanged the checkbox when the page is reloaded...
我是ajax的新手。我正在使用ajax和jsp从数据库中检索数据。当新数据插入数据库时,新数据将自动显示在Jsp页面中。所以在ajax代码中我设置了Timeout()。在每个数据行的jsp页面中都有一个复选框。如果我选中该复选框,则在重新加载页面时会更改复选框。但是当我重新加载页面时,我希望保持不变复选框...
<%
rs.close();
con.close();
}
catch(Exception e)
{
e.printStackTrace();
}
%>
1 个解决方案