从结果集中检索数据到jsp页面 [英] retrieving data from the resultset into the jsp page

查看:61
本文介绍了从结果集中检索数据到jsp页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frnds,

我在我的web项目中做一些与数据库相关的操作,我使用mysql 5.0,我在我的动作类中有以下代码 -

hi frnds,
im doing some db related operations in my web project,im using mysql 5.0,i have the following piece of code in my action class-

展开 | 选择 | Wrap | 行号

推荐答案


嗨frnds,

即时通讯在我的web项目中有一些与数据库相关的操作,我使用mysql 5.0,我的动作类中有以下代码 -
hi frnds,
im doing some db related operations in my web project,im using mysql 5.0,i have the following piece of code in my action class-
展开 | 选择 | Wrap | 行号



你可以在JSP中编写相同的代码。或者在其他类中提取结果,然后将结果作为属性发送到JSP。
You can write that same code in a JSP. Or extract the results in some other class and then send the results to the JSP as an attribute.



hi r035198x,

thanx for your reply again again ..... ive选择了第二个解决方案,即使用setAttribute

这是我已经完成的 -

hi r035198x,
thanx for ur reply yet again.....ive opted for the 2nd solution i.e using setAttribute
this is wat ive done-

展开 | 选择 | Wrap | 行号



hi r035198x,

thanx for you reply again again ..... ive选择了第二个解决方案,即使用setAttribute

这是我已经完成的 -

hi r035198x,
thanx for ur reply yet again.....ive opted for the 2nd solution i.e using setAttribute
this is wat ive done-

展开 | 选择 | Wrap | 行号


这篇关于从结果集中检索数据到jsp页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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