473,320 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to call CachedRowSet in JSP?

Hi All,

I tried CachedRowSet and it is working in my java class.

crs.setCommand("SELECT * from test");
System.out.println("Connection establishing ......");
crs.execute();
System.out.println("Size: " + crs.size() + " records");
// display records in cachedrowset
while (crs.next())
{
System.out.println(crs.getRow());
System.out.println(crs.getString(1));
System.out.println(crs.getString(2));
System.out.println(crs.getString(3));
System.out.println(crs.getString(4));

}

How to call this method from JSP, it should display only 10 rows when I click the PREVIOUS and NEXT button?



Thanks in advance...

Regards,


V. Prasath
Jun 25 '07 #1
5 2481
r035198x
13,262 8TB
Hi All,

I tried CachedRowSet and it is working in my java class.

crs.setCommand("SELECT * from test");
System.out.println("Connection establishing ......");
crs.execute();
System.out.println("Size: " + crs.size() + " records");
// display records in cachedrowset
while (crs.next())
{
System.out.println(crs.getRow());
System.out.println(crs.getString(1));
System.out.println(crs.getString(2));
System.out.println(crs.getString(3));
System.out.println(crs.getString(4));

}

How to call this method from JSP, it should display only 10 rows when I click the PREVIOUS and NEXT button?



Thanks in advance...

Regards,


V. Prasath
You will be surprised by the amount of notes written in the docs for this interface.
Jun 25 '07 #2
You will be surprised by the amount of notes written in the docs for this interface.
Hi,

I have already read that document, eventhough i can't able to understand that. So you will help me about my problem.

Thanking you,


V. Prasath
Jun 26 '07 #3
r035198x
13,262 8TB
Hi,

I have already read that document, eventhough i can't able to understand that. So you will help me about my problem.

Thanking you,


V. Prasath
When next button is clicked use a for loop and call the next method 10 times if you want the next 10 records. When back is clicked you now want to call the previous method 10 times e.t.c
Jun 26 '07 #4
When next button is clicked use a for loop and call the next method 10 times if you want the next 10 records. When back is clicked you now want to call the previous method 10 times e.t.c
Hi i am newbie in CachedRowSet, so can u explain with example code?

V. Prasath
Jun 26 '07 #5
r035198x
13,262 8TB
Hi i am newbie in CachedRowSet, so can u explain with example code?

V. Prasath
Use the docs, they relly explain each method. Post your attempt to display the first 10 records.
Jun 26 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jeremy | last post by:
Hi, can anybody tell me where/how to get Sun's implementation of CachedRowSet?? I've found (old-ish) articles saying it's available as rowset.jar from the Early Access part of the developer...
0
by: brent | last post by:
Hi there... I have a stateless Session Bean issuing a select for a BLOB column. This bean is using a CachedRowSet. It seems to work for all other columns types other than a BLOB. Selecting a...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
13
by: mitchellpal | last post by:
i am really having a hard time trying to differentiate the two..........i mean.....anyone got a better idea how each occurs?
13
by: shsingh | last post by:
I have a class A containing some map as data variables. I creat an object of class A on heap by allocatiing memory by using "malloc". This will return me the required memory but the object is not...
3
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and filter out some values with RExx) and save the...
1
by: prasath03 | last post by:
Dear all, I need a sample coding about CachedRowSet using in jsp without bean class. That code displays 10 records per page from the database when i click the Previous and Next button or link. ...
1
by: prasath03 | last post by:
I'm new to JSP, and am trying this sample code for instantiating a bean for use in a disconnected ResultSet, i placed the rowset.jar under WEB-INF/lib directory but i get the following error: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.