如何从数据库中检索数据并使用jdbc连接将其显示在jsp文本字段中 [英] how to Retrieve data from database and display it in a jsp text fields using jdbc connection

查看:65
本文介绍了如何从数据库中检索数据并使用jdbc连接将其显示在jsp文本字段中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从数据库中检索数据并将其显示在jsp中的表格中,但我不知道如何在文本字段中显示它



eg-



1.当我搜索索引号时。

2.结果(姓名,地址,年龄)必须来到textfeilds在我的jsp



如果任何人可以给我一点样品,那将非常有用,谢谢

解决方案

< blockquote> http://docs.oracle.com/javase/tutorial/jdbc/ [ ^ ]



玩得开心。


你可以阅读 JSP数据库访问的入门示例 [ ^ ]


试试

从Servlet和JSP页面访问数据库 [ ^ ]

i Retrieve data from database and display it in tables in a jsp but i do not have an idea to how to display it on text feilds

eg-

1. when i search a index number.
2. the result (name , address, age) must come to the textfeilds which are in my jsp

if any one can give me a little sample it will be very help full thanks

解决方案

http://docs.oracle.com/javase/tutorial/jdbc/[^]

Have fun.


You can read JSP Starter Sample for Database Access[^]


Try
Accessing Databases from Servlets and JSP Pages[^]


这篇关于如何从数据库中检索数据并使用jdbc连接将其显示在jsp文本字段中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆