How can I get Record Count in JDK1.3 version

Hi,
I am using a JSP page which communicates with the database and fetches a query using a record set.
How can I display 10 records per page using JDK1.3.
Lets say the query fetches 15 records.I want the first 10 records to be displayed and a "Next" link at the bottom which when clicked should show the remaining 5 records.
Could anyone help me regarding the above issue.
Thanks in advance,
Reji

Check out the following url, it should suit ur need.
http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html
The pager tablib is free and it works well. it is well documented and explanations are provided on the website itself.
hope u find it helpful.
keep progRamming,
Satyen.

Similar Messages

  • How can I get record count with a query?

    In Client/Server pplication,the client send a query to server.
    How can server get record count by oracle call interface?
    Is it need execute "select count(*) from ...."?

    Yes.
    Either that or increment a counter for each record fetched and
    loop round until you hit the last record.
    The first method would be more efficient on large datasets.

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

  • How can I get serial numbers or the free versions of Adobe, Air, Flash Player 14, and Reader XI Pro

    How can I get serial numbers or the free versions of Adobe, Air, Flash Player 14, and Reader XI Pro that I had installed on my computer before Microsoft crashed my computer and I had to do a fresh install? I finished reinstalling Win 8.1Pro on my computer thanks to Microsoft Lvl 1 Techies corrupting my Command Structure so nothing would work. I had recently taken a picture of my installed programs (control panel, uninstall programs list) so that I would be able to reinstall everything I needed. I can't seem to find an email for the Reader which I remember paying for, the others I believe were free installs. Can anyone help me out.

    Safari Version 5.0.5  <  from your first post
    5.0.5 is an outdated version of Safari.
    There is an update available for Safari for version 5.1.1
    That may help.
    Click your Apple menu icon top left in your screen the click Software Update
    Restart your Mac after the updates are installed.
    Try full screen ...
    If you have problems using Software Update from the menu you can use the standalone installer here >  Safari 5.1.1

  • How can I get a Windows Vista 32 bit version of Photoshop, please?

    How can I get a Windows Vista 32 bit version of Photoshop, please?

    Hi Kevinhannan,
    No current Photoshop supports this configuration.
    Photoshop CS5 was the last version of Photoshop to support Windows Vista.
    Photoshop Elements 12 was the last version of Photoshop Elements to support Vista as well.
    We no longer offer Photoshop CS5 or Elements 12.
    You might look at Amazon to see if you can get either product listed above. Just be careful when purchasing, make sure you know who you're buying from!
    Regards,
    Pete

  • How can i get the count vaule from GPIB?

    I want to get the count waule from GPIB ,but I find that the vaule I get from GPIB now is the trace vaule ,
    so I ask How can i get it.

    The count of what? What kind of instrument are you using?

  • How can I get a count at the same time I am inserting into another table

    I have a requirement where I have to find out the count(number of records inserted into another table) at the same time I insert into the table:
    Like
    I am copying records from table B to A, while doing this I have to find out how many records I've inserted since I need this count in subsequent steps
    INSERT INTO A
    SELECT * FROM B
    how can I store the count into any variable while doing above statement
    Please advice

    No, Warren that doesn't work!
    SQL> set serveroutput on
    SQL> declare
      2     vCtr  number := 0;
      3  begin
      4     insert into emp2
      5     select * from emp;
      6
      7     select count(*)
      8       into vCtr
      9       from emp2;
    10
    11     dbms_output.put_line('rows created '||to_char(vCtr));
    12  end;
    13  /
    rows created 15
    PL/SQL procedure successfully completed.
    SQL> declare
      2     vCtr  number := 0;
      3  begin
      4     insert into emp2
      5     select * from emp;
      6
      7     select count(*)
      8       into vCtr
      9       from emp2;
    10
    11     dbms_output.put_line('rows created '||to_char(vCtr));
    12  end;
    13  /
    rows created 30
    PL/SQL procedure successfully completed.
    SQL>

  • How can i get records of all text messages

    How do you get records of all your texts? Everyone tells me to go to text usage for my number but it does not show up. Any ideas? I need them like now

        Hey there Amanda_x,
    I've heard your cry for help and I am here to assist. Are you looking just for the numbers that you've texted and received texts from? Or are you looking for the actual text message conversation?
    If you are just looking for the numbers that you've texted and received texts from you can retreive that information through My Verizon. Once you are signed in as the account owner you would click on "view my usage" under Manage My Account. From there you can click on Breakdown of Recent Activity and from there you can view the messaging log for your line.
    If you are looking for previous text messages that may have been deleted. That cannot be retreived through My Verizon.
    Verizon Wireless is only able to provide an average of the last 3-5 days of content, but never more than ten days from the date and time the message is delivered.  Only messages that are received may be available. We also must receive a message with your consent and have it notarized and submitted by an attorney or law enforcement official.  You can have those documents faxed to (847) 706-7276.
    Let me know if you have any additional questions.
    NicholasB_VZW
    Follow us on Twitter @VZWSupport

  • How can I get a count of records in a DB?

    If I want to get a count of the number of records in a table how do I do it?

    Generally, it's good practice to close the connection once you're done with it unless you have a reason to keep going back to it, in which case it probably becomes a performance issue. If you need to keep accessing the same connection repeatedly while your form is running (in Acrobat), I think you would be best to leave it open after initialization.<br /><br />You might consider placing the code which counts the records into a function inside a Script Object. This way, you can just call the Script Object method and retrieve the record count whenever you need it.<br /><br />Make sure you define the <b>oDB</b> variable outside the function but inside the Script Object:<br /><pre>var oDB = null;<br /><br />function GetRecordCount()<br />{<br />  if (oDB == null)<br />  {<br />    var sDataConnectionName = "<value>"; // example - var sDataConnectionName = "MyDataConnection"; <br /><br />    // Search for sourceSet node which matchs the DataConnection name <br />    var nIndex = 0; <br />    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName) <br />    { <br />      nIndex++; <br />    } <br /><br />    var oDB = xfa.sourceSet.nodes.item(nIndex); <br />    oDB.open();<br />  }<br /><br />  oDB.first(); <br /><br />  // Search node with the class name "command" <br />  var nDBIndex = 0; <br />  while(oDB.nodes.item(nDBIndex).className != "command") <br />  { <br />    nDBIndex++; <br />  } <br /><br />  // Backup the original settings before assigning BOF and EOF to stay <br />  var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction"); <br />  var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction"); <br /><br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction"); <br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction"); <br /><br />  var itemCount = 0; <br /><br />  while(!oDB.isEOF()) <br />  { <br />    itemCount++; <br />    oDB.next(); <br />  } <br /><br />  // Restore the original settings <br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction"); <br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction"); <br /><br />  return itemCount;<br />}</pre><br />You can create a script object by right-clicking on the top-level form node ("form1" by default). Say you name your script object "Utils", you can then call the function inside of it from any event script like this:<br /><pre>this.rawValue = Utils.GetRecordCount();</pre><br />Stefan<br />Adobe Systems

  • How can I get a count of ALL nodes in a JTree?

    Not sure if I am missing something here or what. Is there an easy way to determine the total number of nodes in a JTree? I thought there would be a method to return this, but I'm not seeing it in JTree or DefaultTreeModel. Do I have to start at the root and recursively get child counts? Yuck!
    Jamie

    You are absolutely right! Create a recursive method and count all your children from the root.
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • How can I get my server to NOT reveal version information?

    So running a quick security check says that my server is revealing it's version infor.....
    How can I tell it NOT to do so ?
    TIA

    http://httpd.apache.org/docs/2.2/mod/core.html#servertokens
    You can't change this setting via Server Admin so you'll need to get under the hood and edit your httpd.conf file directly.

  • How can I get my old Firefox back, this version sucks?

    This version has nothing I like. How can I go back to the old version I had? I don't know if you think I have furnished enough information or not but I would appreciate an answer. You should not force people to change their toolbar preferences and everything else they have used for years. you had a good thing and you screwed it up. WHY? don't say to improve Firefox because you didn't.

    Please see: [[Common questions after updating Firefox]]
    You can try this extension to override compatibility issues if you have those,
    * https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    If you still want to downgrade, see here:
    * http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-4.0/win32/en-US/
    * [[installing firefox]]

  • How can you get recorded audio from your palm to your computer?

    My friend has a palm treo 680 and we used it to record some stuff today, but he cannot figure out how to get it to his computer.
    Is this possible? If so, any help would be great because I really would like to get this to my computer.
    Thanks.
    -JT.
    Post relates to: Treo 680 (Cingular)

    With my TX, there was the option to "Copy to card" for voice memos (older version of the Voice Memo program that I copied to it).
    On my Centro, there is the option for sending the voice memo either by BlueTooth, Email, or SMS.  Does the 680 have either of these?
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How can i get a counter to tell me how many checkboxes have been selected?

    package arabiclanguagelearning;
    import java.awt.BorderLayout;
    import java.awt.Frame;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import java.awt.Rectangle;
    import javax.swing.JTextArea;
    import com.borland.jbcl.layout.VerticalFlowLayout;
    import javax.swing.JLabel;
    import javax.swing.*;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Toolkit;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.CheckboxGroup;
    import java.awt.event.ItemListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.KeyEvent;
    * <p>Title: Arabic Language Learning</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2007</p>
    * <p>Company: </p>
    * @author iPortal
    * @version 1.0
    public class ReadingTest extends JDialog implements ItemListener{
        //ImageIcon myImage = new ImageIcon("image.jpg");
        JPanel panel1 = new JPanel();
        JLabel jLabel1 = new JLabel();
        JLabel jLabel3 = new JLabel();
        JButton jButton1 = new JButton(new ImageIcon ("image.jpg"));
        ButtonGroup question1 = new ButtonGroup();
        CheckboxGroup question2 = new CheckboxGroup();
        JTextArea question1Text = new JTextArea();
        JRadioButton q1A = new JRadioButton();
        JRadioButton q1B = new JRadioButton();
        JRadioButton q1C = new JRadioButton();
        JTextArea question2Text = new JTextArea();
        JTextField question2TextArabic = new JTextField();
        JCheckBox jCheckBox1 = new JCheckBox();
        JCheckBox jCheckBox2 = new JCheckBox();
        JCheckBox jCheckBox3 = new JCheckBox();
        JCheckBox jCheckBox4 = new JCheckBox();
        JLabel jLabel2 = new JLabel();
        StringBuffer choices;
        //will keep a count on how many checkboxes selected for question 2
        int count;
        JLabel jLabel4 = new JLabel();
        JLabel jLabel5 = new JLabel();
        JLabel jLabel6 = new JLabel();
        JButton Submit = new JButton();
        JLabel jLabel7 = new JLabel();
        public ReadingTest(Frame owner, String title, boolean modal) {
            super(owner, title, modal);
            try {
                setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                jbInit();
                pack();
            } catch (Exception exception) {
                exception.printStackTrace();
        public ReadingTest() {
            this(new Frame(), "ReadingTest", false);
        private void jbInit() throws Exception {
            panel1.setLayout(null);
            this.getContentPane().setLayout(null);
            jLabel1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 24));
            jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
            jLabel1.setIcon(null);
            jLabel1.setText("Welcome to the reading tutorial");
            jLabel1.setBounds(new Rectangle(49, 4, 509, 67));
            jLabel3.setFont(new java.awt.Font("Tahoma", Font.PLAIN, 14));
            jLabel3.setToolTipText("");
            jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
            jLabel3.setHorizontalTextPosition(SwingConstants.CENTER);
            jLabel3.setText(
                    "Please answer the questions below after reading the text");
            jLabel3.setVerticalTextPosition(SwingConstants.TOP);
            jLabel3.setBounds(new Rectangle(48, 83, 515, 60));
            jButton1.setBounds(new Rectangle(509, 63, 98, 44));
            jButton1.setText("Hide me!");
            jButton1.addActionListener(new ReadingTest_jButton1_actionAdapter(this));
            question1Text.setBackground(Color.lightGray);
            question1Text.setFont(new java.awt.Font("Tahoma", Font.BOLD, 14));
            question1Text.setEditable(false);
            question1Text.setText("What is the first letter of the arabic alphabet?");
            question1Text.setBounds(new Rectangle(64, 158, 319, 19));
            q1A.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1A.setText("?");
            q1A.setBounds(new Rectangle(60, 189, 93, 23));
            q1B.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1B.setText("?");
            q1B.setBounds(new Rectangle(60, 214, 93, 23));
            q1C.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1C.setText("?");
            q1C.setBounds(new Rectangle(60, 241, 93, 23));
            question2Text.setBackground(Color.lightGray);
            question2Text.setFont(new java.awt.Font("Tahoma", Font.BOLD, 14));
            question2Text.setEditable(false);
            question2Text.setText(
                    "Choose the two correct words which finish the sentence.");
            question2Text.setBounds(new Rectangle(64, 281, 402, 19));
            question2TextArabic.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            question2TextArabic.setText("?? ????? ??????? ___ ???? ___ ?? ???????");
            question2TextArabic.setBounds(new Rectangle(63, 311, 404, 30));
            this.setForeground(Color.white);
            jCheckBox1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox1.setText("????");
            jCheckBox1.setBounds(new Rectangle(63, 356, 81, 23));
            jCheckBox1.addActionListener(new ReadingTest_jCheckBox1_actionAdapter(this));
            jCheckBox1.addItemListener(this);
            jCheckBox2.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox2.setText("????");
            jCheckBox2.setBounds(new Rectangle(162, 356, 81, 23));
            jCheckBox2.addItemListener(this);
            jCheckBox3.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox3.setText("??????");
            jCheckBox3.setBounds(new Rectangle(260, 356, 81, 23));
            jCheckBox3.addItemListener(this);
            jCheckBox4.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox4.setText("?????");
            jCheckBox4.setBounds(new Rectangle(359, 355, 81, 23));
            jCheckBox4.addItemListener(this);
            jLabel2.setText("jLabel2");
            jLabel2.setBounds(new Rectangle(63, 402, 234, 32));
            jLabel4.setText("jLabel4");
            jLabel4.setBounds(new Rectangle(63, 433, 254, 28));
            jLabel5.setText("jLabel5");
            jLabel5.setBounds(new Rectangle(63, 465, 194, 37));
            jLabel6.setText("jLabel6");
            jLabel6.setBounds(new Rectangle(63, 500, 258, 32));
            Submit.setBounds(new Rectangle(507, 575, 115, 52));
            Submit.setText("Submit");
            Submit.addActionListener(new ReadingTest_Submit_actionAdapter(this));
            jLabel7.setText("jLabel7");
            jLabel7.setBounds(new Rectangle(472, 480, 95, 34));
            question1.add(q1A);
            question1.add(q1B);
            question1.add(q1C);
            this.getContentPane().add(panel1, null);
            this.getContentPane().add(Submit);
            panel1.add(jLabel1);
            panel1.add(jLabel3);
            panel1.add(q1A);
            panel1.add(q1B);
            panel1.add(q1C);
            panel1.add(question1Text);
            panel1.add(question2Text);
            panel1.add(question2TextArabic);
            panel1.add(jCheckBox1);
            panel1.add(jCheckBox2);
            panel1.add(jCheckBox3);
            panel1.add(jCheckBox4);
            panel1.add(jButton1);
            panel1.add(jLabel6);
            panel1.add(jLabel5);
            panel1.add(jLabel4);
            panel1.add(jLabel2);
            panel1.add(jLabel7);
            panel1.setBounds(new Rectangle(10, 10, 623, 549));
        public void jButton1_actionPerformed(ActionEvent e) {
            this.setVisible(false);
        public void itemStateChanged(ItemEvent e) {
            int index = 0;
            char c = '-';
            Object source = e.getItemSelectable();
    //count variable works fine in this part
            if (source == jCheckBox1) {
                index = 0;
                c = 'c';
                //assign new string variable the value of text for the checkbox
                String textSelected = jCheckBox1.getText();
                jLabel2.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox2) {
                index = 1;
                c = 'g';
                String textSelected = jCheckBox2.getText();
                jLabel4.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox3) {
                index = 2;
                c = 'h';
                String textSelected = jCheckBox3.getText();
                jLabel5.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox4) {
                index = 3;
                c = 't';
                String textSelected = jCheckBox4.getText();
                jLabel6.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            //Now that we know which button was pushed, find out
             //whether it was selected or deselected.
    //count variable does not work in this section.
             if (e.getStateChange() == ItemEvent.DESELECTED) {
                 c = '-';
                 Object deselectedItem = e.getItemSelectable();
                 if (deselectedItem==jCheckBox1)
                     jLabel2.setText("You deselected checkbox 1");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox2)
                     jLabel4.setText("You deselected checkbox 2");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox3)
                     jLabel5.setText("You deselected checkbox 3");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox4)
                     jLabel6.setText("You deselected checkbox 4");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
       

    you can call your_checkbox.isSelected() to know whether it's selected for all your check boxes !
    suppose you have an jcheckbox array : JCheckBox[] myCheckBoxArray = ...;
    int counter = 0;
    for(int i=0; i<myCheckBoxArray.legth; i++){
      if(myCheckBoxArray.isSelected())
      counter++;
    }and that's all

  • I have 60+ checkboxes all with unique names, how can I get a count of how many are checked?

    The checkboxes are named 1a, 1b, 1c, 2a, 2b, 2c, etc.. up to 27a, 27b... I could add the word "bed" to the beginning of each name if it helps.
    I want to create a text field that will update the count every time a box is checked or unchecked.
    Thanks

    It would be better to add "bed." instead, so that the field names are "bed.1a", "bed.1b", ..."bed.27b". You can then easily get an array of all of the "bed" fields, check each one, and increment a counter. The custom calculate script for the text field could be something like:
    // Custom calculate script
    (function () {
        // Get an array of the bed fields
        var fa = getField("bed").getArray();
        // Initialize counter
        var sum = 0;
        // Loop through the fields and update counter
        for (var i = 0; i < fa.length; i += 1) {
            sum += fa[i].value !== "Off" ? 1 : 0;
        // Set this field's value to the sum
        event.value = sum;

Maybe you are looking for

  • CREATE SALES ORDER WITH REFERENCE TO INVOICE USING RECORDING

    Hi, I wanted to know if it was possible to create a sales order with reference to an invoice using recording(SHDB transaction).If there is some other method please explain the method in detail(Its very urgent)

  • Can i install Oracle ADF Essentials 11.1.2.3 on weblogic 10.6 ?

    can i install Oracle ADF Essentials 11.1.2.3 on weblogic 10.6 ? what the difference between ADF Essentials 11.1.2.3 and Application Development Run time 11.1.1.6 ? can i use ADF Essentials 11.1.2.3 instead of Application Development Run time 11.1.1.6

  • XSLT mapping Examples

    Hi Xperts, Could any one send me XSLT transformation code  with step by step procedure and some examples  on XSLT transformation for  XML to XML Convert. please send me to:  <b>[email protected]</b> Best regards Gopi

  • How to SQL*loader to skip some columns from the source file?

    I am using oracle9i sqlldr to load some .csv files into db. If I want to skip the first two columns in the source file, can I do that? If yes, how should I specify it in the ctl file? Thanks Wendy

  • Checking User rights in CMC 3.2 : How to search for a user ?

    Hello, We are in XI 3.2, and the rights applied on Public Folders are based on user groups, not individuals (hopefully). In the CMC, when we want, for support purpose, to check what is the results of these rights for a given user, the "Select" panel