即使更新后,JSP 仍显示数据库中的相同数据

发布于 2024-11-14 17:51:13 字数 106 浏览 24 评论 0原文

我的 JSP 正在显示从 mysql 数据库中选择的相同数据。我使用 DAO 和 DTO 从数据库获取这些数据并显示在 JSP 中,但即使我更改数据库中的数据,它仍然显示以前的数据。可能是什么问题?

My JSP is displaying the same data selected from a mysql database. I use a DAO and DTO for getting this data from the database and display in the JSP but even when I change the data in the database, it still displays the previous data. What could be the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昔梦 2024-11-21 17:51:13

从 db 检索数据后,您在 dao 和 dto 中设置数据,并

connection.commit(); 

在执行查询后检查您是否已给出。

After retriving the data from db have u set data in dao and dto also check if u have given

connection.commit(); 

after executing the query .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文