Plz: Any one who can show me how to iterate an list in jsp

I had retrieved the data from the database setted into the bean class
and i want to display the list on the jsp page (ie. i want to iterate a list)
........thanks

ArrayList alist = new ArrayList();
Iterator itr = alist.iterator();
while(itr.hasNext())
out.println(itr.next());
tats it.............For a guy that doesn't knows how to call a method in another class that's very impressive :-D

Similar Messages

  • I have a CS3 Creativ Suite. - I have uninstalled it fram XP the corret way. Now i have installed Windows 7 and try to reinstall the creative suite. It accept the first CD an the serial number, but when i get to the second CD it stop. Any one who can help?

    I have a CS3 Creativ Suite. - I have uninstalled it fram XP the corret way. Now i have installed Windows 7 and try to reinstall the creative suite. It accept the first CD an the serial number, but when i get to the second CD it stop. Any one who can help?

    If you have Windows 7 Pro you can try to install CS3 in XP mode.

  • My new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    my new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    Try an SMC Reset. (System Management Controller)
    Shutdown>unplug from power for ten minutes>press and hold in the power button for ten seconds>startup again.
    Also try a PRAM Reset. (Parameter RAM)
    Shutdown. At the bootup chime, hold down CMD-Option-P-R together, wait for two more chimes, total three, then let go of all keys to finish booting,
    If this doesn't do it, run the Hardware Test in Extended
    http://support.apple.com/kb/ht1509

  • HI THERE!IS THERE ANY ONE WHO CAN HELP ME HAVING TROUBLE WITH MY IPHONE 3GS AFTER UPGRADING TO IOS5.0 IT WONT READ THE SIM AND NO SERVICE  AND IT WONT ACTIVATED.PLEASE HELP

    HI THERE IS THERE ANYONE WHO CAN HELP ME?I UPGRADE MY IPHONE 3GS TO IOS5 AND NOW IT WONT ACTIVATE AND SAYS THE SIM CARD IS NOT SUPPORTED I CHANGE FOR ANEW SIM ALREADY BUT STILL WONT ACTIVATE.PLEASE HELP

    you're responding to a post that's almost 2 months old. Time to post your own thread.

  • Is there any one who can help me solve this?

    Hi.
    I'm taking AP Computer Scinece AB in high school now.
    I've been assigned many programs so far. But.. I can't figure them out.
    There are two programs I need your help. So..Please!!!!!! Help Me!!!!
    Please!! Enjoy helping me!
    <Program #1>
    It's divided into three small programs and I've figured out one of them, which was the easiest one..You will be able to see the programs if you click on the link below.
    (page1)
    http://iboard3.superboard.dreamwiz.com/board.cgi?db=90_darkoo&idx=2&page=1
    (page2)
    http://iboard3.superboard.dreamwiz.com/board.cgi?db=90_darkoo&idx=3&page=1
    <Program #2>
    http://iboard3.superboard.dreamwiz.com/board.cgi?db=90_darkoo&idx=4&page=1
    The way I figured out first part of program #1 was like this :
    public class ThreeX1
    public static void main ( string[] org )
    system.out.println ();
    int startValue = 21;
    int count = 0;
    while (startValue >1)
    count ++;
    if (startValue % 2 == 0)
    startValue = startValue/2;
    else
    startValue = 3*startValue +1;
    system.out.println ( count );
    ===================================================
    From there, for the second and third programs of program #1, I tried to figure it out by using 'for' statement instead of 'while', but I couldn't.
    So..Please help me out.. Thank you
    or you can e-mail me too. It would be great too.
    add. : [email protected]

    I probably shouldn't be doing your homework but here it is:
    public class ThreeX2{
         public static void main ( String[] org ){
              int startValue = 2;
              while(startValue<100){
                   System.out.print(startValue);
                   System.out.print("\t");
                   System.out.println(timesToGetToOne(startValue));
                   startValue++;
         private static int timesToGetToOne(int intForValue){
              int count = 0;
              while (intForValue!=1){
                   count ++;
                   if (intForValue % 2 == 0)
                        intForValue = intForValue/2;
                   else
                        intForValue = 3*intForValue +1;
              return count;
    public class ThreeX3{
         public static void main ( String[] input ){
              int maximumTries = 1000000;
              int numberOfitterations = 10;
              try{
                   numberOfitterations = new Integer(input[0]).intValue();
              }catch(Exception e){
              try{
                   maximumTries = new Integer(input[1]).intValue();
              }catch(Exception e){
              int startValue = 2;
              while(startValue<maximumTries){
                   if(timesToGetToOne(startValue)==numberOfitterations){
                        System.out.print("When startvalue is: ");
                        System.out.print(startValue);
                        System.out.print(" it will take exatly ");
                        System.out.print(timesToGetToOne(startValue));
                        System.out.println(" iterations to get to 1.");
                        // remove the next line and it will show all values that
                        // takes numberOfitterations amount of times to get to 1
                        break;
                   startValue++;
         private static int timesToGetToOne(int intForValue){
              int count = 0;
              while (intForValue!=1){
                   count ++;
                   if (intForValue % 2 == 0)
                        intForValue = intForValue/2;
                   else
                        intForValue = 3*intForValue +1;
              return count;
    }Problem 3 is diffucult, since the input is one date I assume that the current reading is for this date. I don't
    know the date of the previous reading so I cannot calculate if the consumption is between June through
    Ocober.
    your Main method shoud have 4 inputs date accountNumber currentReading previousReading
    Your main function would look like this:
         public static void main ( String[] input ){
              Calendar date=null;
              int accountNumber = 0;
              int currentReading = 0;
              try{
                   String[] s = input[0].split("/");
                   date = Calendar.getInstance();
                   date.set(Calendar.YEAR,new Integer(s[2]).intValue());
                   date.set(Calendar.MONTH,new Integer(s[0]).intValue()-1);
                   date.set(Calendar.DAY_OF_MONTH,new Integer(s[1]).intValue());
              }catch(Exception e){
                   System.out.println("cannot get date, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
              try{
                   accountNumber = new Integer(input[1]).intValue();
              }catch(Exception e){
                   System.out.println("cannot get account number, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
              try{
                   currentReading = new Integer(input[2]).intValue();
              }catch(Exception e){
                   System.out.println("cannot get current reading, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
              try{
                   previousReading = new Integer(input[3]).intValue();
              }catch(Exception e){
                   System.out.println("cannot get previous reading, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
    // check the date between june and oct:
    // (5>date.get(Calendar.MONTH))&&(9<date.get(Calendar.MONTH))

  • Hi hello...I have a problem deleting unwanted albums in my phone/photos, any one who can help me do it step by step please.Have patience with me I am not so good with this.

    Hi Hello,
         Before I start my question, hope nobody laugh at me, I am not a computer geek, I just a user of a phone.
    I have read so many how to do and how to delete albums in the web/google but not anyone of them make sense to me,I hope someone can help me do this step by step.
    I am using an iphone 4/operating system 7.0.4
    I would like to delete the unwanted albums in my phone under the photo icon, where do i start?
    like...   1/ connect the phone to the computer
                2/ click the itune icon
                3/ then whats next?
    Please help I could not download anyother app, the system( phone )  always tells me that memory is almost full, I am already frustrated, please help.
    If I reset the phone will it erase all the phone numbers and remove all my notes?
    Thank you.
    <Email Edited by Host>

    Hi mylenebar!
    Here is an article that will help you remove the desired photos from your phone:
    iTunes: Syncing photos
    http://support.apple.com/kb/ht4236
    To delete synced photos and videos from your device
    In iTunes, click the Device button in the upper right corner. (If viewing the iTunes Store, click the Library button in the upper-right corner first.)
    Click the Photos tab in the resulting window.
    Choose "Selected albums" and deselect the albums or collections you want to delete.
    Note: To delete all synced photos, deselect "Sync Photos from" and, when asked, click "Remove photos."
    Click Apply.
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • I am extremely desperate any one who can help me!

    how do i do a flag or an alert on the server/system, so that when the user logs in they are notified that an email has been sent to them, and that they should check there inbox!
    All messages sent to the user will be stored in a mysql database, does this improve or hinder my query?
    All suggestions/solutions aill be gratefully appreciated!
    Thanks

    You question is a little vague... when you say "log in" are you referring to logging on to their workstation or logging on to a web application?
    If it is the latter, this could be done when their logon is validated. If the logon is valid, then execute a query that checks for any messages that have not yet been viewed plus any other logic you want to add....
    -Dave

  • Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5

    Hi there
    Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5
    My slide show consists of lots of thumb nails of paintings under a large painting.
    When the small painting thumb nail is clicked the large painting appears.
    I would like to be able to enlarge all areas of the large painting when a zoom tool is placed over areas of the large painting.
    Really appreciate any one help.

    Here's the Dreamweaver forum...
    http://forums.adobe.com/community/dreamweaver/dreamweaver_general

  • Plz any one can forward this book to me!

    Hello Oracle Masters,
    Plz any one can forward this book to me! my mail id- [email protected]
    " Mastering Oracle PL/SQL: Practical Solutions By CONNOR MCDONALD, WITH CHAIM KATZ, CHRISTOPHER BECK, JOEL R. KALLMAN, AND DAVID C. KNOX"

    user600520 wrote:
    Hello Oracle Masters,I hate titles and salutations like these being thrown around. There are no "+masters+" here.. or "+gurus+".. or any form of so-called superior beings. That is simply a bunch of baloney on the part of those who claim these titles, and kind of pathetic of those who use these titles to curry favour.
    Plz any one can forward this book to me! my mail id- [email protected]
    It is silly to share your e-mail address in a public forum. It only opens your mailbox to abuse and spam
    " Mastering Oracle PL/SQL: Practical Solutions By CONNOR MCDONALD, WITH CHAIM KATZ, CHRISTOPHER BECK, JOEL R. KALLMAN, AND DAVID C. KNOX"Books are usually copyrighted and cannot be electronically copied and shared as that would be illegal. And I'm sure that you do not want to commit a crime...
    There are however books that can be read (and downloaded) on the Internet for free. Try http://docstore.mik.ua/orelly/oracle/ - these contains such books, dealing with PL/SQL.

  • Hei. I updated my iphone 4 to the new IOs 6, seems like I have lost all my contacts... Any one who knows what I can do? Please ;-)

    Hei. I updated my iphone 4 to the new IOs 6, seems like I have lost all my contacts... Any one who knows what I can do? Please ;-)

    Everything is Sorted!
    The release of iTunes 11.0.2 and iOS 6.1.2 for my iPhone 4, seems to have sorted everything. I can now sync music, films and photos between my MacBook and my phone.
    I was dubious about blindly doing the updates but decided they couldn't really mess up any further functionality so I went for it and it's sorted now.
    Look in to, and take the gamble, it's up to you.

  • HT4972 I hv IPhone 4 with iOS version 4.3.3 (8J2), it doesnt show any option to upgrade to iOS5 or any else. Can you guide how to do it.

    I hv IPhone 4 with iOS version 4.3.3 (8J2), it doesnt show any option to upgrade to iOS5 or any else. Can you guide how to do it.

    After updating iTunes to 10.2.2 it wiped out my iPhone, iPad and iPad2 and it will not restore on another pc in the house.  I spent 6 hours restoring the iPhone but the iPad and iPad2 has taken 6 hours going thru every step in the support recommendations as well as 3  hours on the phone with 2 separate techs today.
    I uninstalled and reinstalled, went thru with the tech and edited the registry as well as the msconfig.  Rebooted the PC's, reinstalled, uninstalled all of the anti virus software and did a limited start-up, all to no avail.
    You cannot reinstall the last working version of iTunes because the library is synced with a later version - so I have 2 dead devices.
    Other friends are experiencing the same problem and I know of 2 dozen others experiencing the same issues.
    Apple needs to fix the latest update of iTunes!

  • Can any one pls let me know how to set up budget in HRMS ..

    Hi Gurus,
    Can any one pls let me know, how to setup Budget in HRMS ..
    with regards
    user600722

    Hi,
    Thank you for the Valuable Information Sir ....
    with Regards
    User600722

  • I want to be the only one who can access my profile, so how to create passwords for profiles (NOT for websites) ?

    I want to be the only one who can access my profile, so how to create passwords for profiles (NOT for websites) ?
    thanks

    Maybe use the portable Firefox version on a USB stick if you want to prevent access to your profile.<br />
    Solutions that use an extension can easily be bypassed by starting in [[Safe mode]].<br />
    Otherwise you need to locate the Firefox profile folder on an encrypted drive.
    See http://portableapps.com/apps/internet/browsers/portable_firefox

  • Who can tell me how to use ni-imaq functions imgSessionSerialWrite and imgSessionSerialRead to set and get my carema attribute?

    Who can tell me how to use ni-imaq functions imgSessionSerialFlash,imgSessionSerialWrite and imgSessionSerialRead to set and get my carema attribute?
    My camera is duncantech ms3100 and the frame grabber is pci-1428.I use ni-imaq2.6.When I use these functions,it tell me error -1074397163(IMG_ERR_BINT:Bad interface) .

    I have the same problem on my IPAD 2. One calender that i cant delete or find any settings for... Its just in the calender app under diffrent calenders.  how do i delete it?

  • I have a new PC w/ Win7 and Ipod is not recognized. I think I need to restore the Ipod but am unable to do so. thanks to any /all who can assist.

    I have a new PC w/ Win7 and Ipod is not recognized. I think I need to restore the Ipod but am unable to do so. thanks to any /all who can assist.

    Hello kevin
    Check out the article below to guide you to the proper article to get your iPod shuffle to show up. You will need to see if it shows up on your computer as a device in My Computer section in Windows Explorer. Then it will help you pick the right one.
    iPod not appearing in iTunes
    http://support.apple.com/kb/ts3716
    Regards,
    -Norm G.

Maybe you are looking for

  • I don't want to sync my ipod touch applications!!!!

    I downloaded a bunch of applications directly using my ipod touch. Later, I connected it to my computer to update music and itunes began to sync all those applications and copied them from the ipod to the computer. When I selected that I don't want t

  • Order output send with attachment to external email recipient

    Hello, We have a requirement that we should be able to send an email with an orderconfirmation attached (like BA00) to specific contact persons (maybe one, maybe multiple contact persons) But this should be not the email in the customer master genera

  • Loaded stylsheet for loaded xml not recognised

    The following code loads correctly the xml file but not the stylesheet. Do I have to change the ordrer of some chunks of this code? (ta = textarea movieclip; in the css I only have, for the test, spectacle>item>title {font-size:40;} Thank you for you

  • JUnit 4 Extension for 10.1.3?

    Hi, are there any plans to update the JUnit Extension for JDeveloper 10.1.3 to support JUnit 4? Using the current extension with JUnit 4 has two main drawbacks: a) one loses the ability to run a single test method, and b) successes and failures are n

  • Installer has insufficient priviledges to access this directory

    OMG.........I am ready to throw my PC, and IPHONE through the window. I am having issues with my ITUNES. I deleted everything possible to ITUNES and APPLE and now that I am reinstalling ITUNES, I am getting this error message. This is the error messa