Sun:Iterating the cursor ! Is this bad logic. i.e, using crs.next() method

Hi friends,
I have been using crs.next() method for comparing the given string in textbox and in database are equal. If they are equal then it must redirect to other page otherwise it must remain in the same page.
Please tell me wheter it is bad logic or not.If it is bad logic then tell me the alternate one.
Thanking you in Advance.

Are you refering your code in:
http://forum.java.sun.com/thread.jspa?threadID=5121734&tstart=75 ?
I don't know about bad logic or not in using crs.next().
But I am just curious why do you have to iterate the rowset when you can set a query criteria in the rowset? Suppose you have 100 records in your table, sure it is faster to use query criteria for that., execute the rowset, and then check whether the rowset contains a record or not.
Another alternative is to use tableDataProvider.findFirst(), and then check the existence of the record. That if you use tableDataProvider instead of the rowset directly. (You may find it in JumpStartCycle sample project).
Also instead of writing these lines:
// set the rowset to use the Employee database
rs.setDataSourceName("java:comp/env/jdbc/Employee");
rs.setCommand("SELECT * FROM srni.EMPLOYEE");
rs.setTableName("EMPLOYEE");in the login_action(), you may visually create the rowset() and put it in sessionbean.
That is what I've found in JSC sample projects. In JumpStartCycles sample (you may create it via file-new projects-samples), there is a login.jsp which is quite similar to your login form. Not exactly the same, but the logic is the same.
rgds

Similar Messages

  • I am frustrated with how my cursor jumps around while typing.  How can I make the arrow follow the cursor so this doesn't happen?

    Macbook Pro with OSX Yosemite:  I am frustrated that when using Word for Mac, the cursor keeps jumping around all over the page.  How can I make the pointer follow the cursor so this stops?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • When i move the cursor into this button instead of Arrow mark i need hand i

    Hi friends,
    I have a button like below .
    <input type=submit  name="onInputProcessing(select)"  value=" Material ">
    When i move the cursor into this button instead of Arrow mark i need hand sign.
    Moosa

    hi use onmouseover event in your button and set the cursor style for button through java script
    function cursor()  -
    > include this function between your script tag
    var e = document.getElementById('select');
    e.style.cursor ="hand";
    call this function in your button onmouseover event

  • Now impossible to insert the cursor by clicking in one paragraph. I am able to 'find' the cursor by going to another paragraph, then using the arrows to position the cursor in this rogue paragraph.

    I use Pages version 4.0.5.
    My software is all up to date, 10.6.8 version of OS.
    The particular document with the problem is 255 pages and currently at 125,000+ words. One area of a paragraph seems to be at fault and clicking within it has no effect. No cursor appears, no editing is possible and no other input is possible for that part of document.
    I can work round this by going to another paragraph, clicking there when the cursor appears, then using the arrows to get the cursor in to position in this 'rogue' paragraph.
    I am fairly new to Mac, only having bought this machine at the end of last year but have used it everyday since then. I did have problems with an image editing program supplied with a new Pentax camera but I have stopped using that program after taking the laptop to Apple tech in Sheffield UK who said the laptop was OK but the program was VERY slow and they could see when checking forums that this program was causing problems for other Mac users.
    That was about three months ago, so the laptop was deemed to have a clean bill of health then.
    I am curious and disappointed more than anything, as I can work around the problem at the moment.
    What might be going wrong, how can I correct it, if at all, and should I be worried that there might be a more significant problem developing?

    zxcwx wrote:
    (1) It is quite likely that I am losing what little cognitive ability I started with due to advancing years,
    (2) perhaps visual acuity as well so your red italic text made your point very well.
    (1) don't worry, I was born on 1943/12/31 23:55
    (2) It's why I change the size or the color from time to time.
    (3) I never use phrases when I search something. Just lowercase words 'linked' by the conjunction AND (uppercase)
    I'm remembering a thread about this behavior.
    https://discussions.apple.com/message/15102726
    Yvan KOENIG (VALLAURIS, France) samedi 9 juillet 2011 22:52:31 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Please help - Brand new X1 Carbon defective out of the box - is this normal? what should I do next?

    Hello all,
    So, as a loyal Lenovo customer I decided to purchase the X1 Carbon 2nd Gen (non-touch, I5 version).
    Last week I finally received it.
    Unfortunately, the first thing I noticed was a defective touchpad - very loose, the right bottom corner was not solid
    enough and made a weird noise while clicking it. It drove me crazy since I am used to the top build quality the Thinkpad series offers.
    I took to the local Lenovo service center, they actually replaced it on the spot and it made it better, not great but better. I still think there is something wrong there, since the bottom two "buttons" don't feet and sound as good as the upper ones.
    But that I can tolarate.
    The thing that really pissed me off was this: To me demise, after using the laptop in a dark room I noticed this massive screen bleed :
    (apologize for the ling stream of pics, didn't know how to thumbnail them)
    My question to you guys, is this okay? is this an acceptable bleed? or should I do whatever it takes to get it repaired/replaced?
    I just hope they will know how to handle this here at local center, as from my experience dealing with computer reps here, the local Lenovo agent (which is actually the importer)  will not replace it for me (their excuse is that it wasn't bought in this country)
    This is amazing, in one year Lenovo has lost it's entire reputation over the 2nd Gen X1 carbon.
    Please help me. what should I do?
    Thank you very much.

    The official method of creating / escalating to a complaint is to call support, with previous call numbers handy, and request the representative to escalate your case to a complaint.  They will then create a complaint on your behalf and also be able to inform you about the complaints proceedure.
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • How did Apple screw up the maps app this badly?

    I am normally not a complainer, but rather appreciate great technology.
    However, I am shocked beyond description about how badly Apple screwed up the maps application in IOS 6.
    The maps application is the by far the most frequently used and most useful iphone application for me.
    I rely on it all the time.  It WAS so incredibly easy to use, and almost always dependable.
    Yes, turn-by-turn directions would be nice, but not at the cost of screwing up so many other critical features.
    I have now had 2 extremely frustrating experiences.
    The other night, I was driving home from work and using the maps application to route to a store.  I was using the voice instruction mode.  There was heavy traffic so I wanted to zoom out / around to look for alternate routes.  Well, this is almost impossible to do, and furthermore, there is much less accurate and detailed information about traffic conditions.  This would have been a piece of cake with the old maps application.
    Yesterday, I had to make a trip to Pacific Sales in San Jose.I tried "Pacific" with the mapped zoomed to the general area, and it could not find it.Then I tried "Pacific sales", again no luck.  Its an appliance store, so I tried "appliances", and again no luck.
    Finally, I had to log into the web, go to google maps, and find it there.
    It was slow, but it worked!
    1 month ago, I had the highest confidence in Apple due to their track record of deliverying great stuff that works and is easy to use.
    I would never have considered an android phone.
    However, this problem with the maps app has so shaken my confidence in Apple, that I will go today to look at a Samsung Galaxy III.
    Maybe its not going to be my thing, but I hope Apple realizes how big they screwed up.
    The Apple of Steve Jobs would never, ever, ever have let this happen.
    The old Apple would have stayed with Google Maps for another year, and made this new maps app better, more reliable, and more user friendly than Android BEFORE releasing it.  It would have been revolutionarily good and would have surprised us with how good it was.
    I really truly love Apple and its products.
    But this is a really bad mistake and I am so fearful that its an omen of whats to come in future from Apple.
    I would not be surprised if this very deeply damages Apple at a time when the competition is getting tougher & tougher.
    Of all the functions on the Apple Iphone, the maps are the heart and soul.  Apple is probably right to go its own way eventually, but not like this!
    It is just going to drive people into the arms of Android.
    I am just curious, did Apple actually test this thing thoroughly before releasing it?
    I mean, it took me only a few days to figure out this thing is total crap.
    How did Apple not know this (which is a very scary thought), or maybe even more scary, maybe they did know but feel they have enough market power to get away with it?  I can't think of any other explanations. So, which is it?  Either way, its very bad news for Apple fans.

    Ok, 3 more wonderful IOS 6 maps experiences to share!
    When out shopping for paints, decided to visit Kelly Moore.
    Used the maps app and used it to take me to the nearest store, except it was not where maps said it would be!
    I called the Kelly Moore store, and they told me the maps app has the wrong town, and they have had many customers with the same problem!
    Next up, I was looking for a Sherwin Williams store in San Jose, so maps took me to El Camino Real, except it took me to the wrong end of El Camino Real in Santa Clara, about 15 minutes from the right destination in Mountain View!  In fact, the app took me to Santa Clara University!
    Last up, I was looking for a Chevron station.  Apps routed me to the location, but no gas station. 
    So, I finally decide to use google maps through the browser, and it ends up it was again the right address but wrong city!!!! 
    Unbelievable!  My confidence in Apple has been further shaken, to where I am about to give up.
    I just can't trust their app, which is something I depend on every day to save me time, money and gas.
    So disappointed in Apple right now...  It makes antenna gate look like a minor incident, which it was in my opinion!

  • Why blinking of cursors, buffering of videos, connecting round up to sites hang up in the middle and only moving continously the cursor keep this problem at bay?

    The blinking of cursor stops to blink while mouse is idle. The buffering of videos stops buffering while cursor is idle and the video is not downloaded. The round up figure on the bar stops rounding up while cursor is idle and not connected to another site.
    What is happening?

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • My iphoto will not open for some reason. the cursor just keeps running...been using this for 3 years with no problem. It started doing this after I tried to load some photos from a camera I have successfully used before

    I cannot open my Iphoto on my macbook pro. I have used it for three years with no problem. However, after trying to load some pictures from my camera it seems to have frozen up. I force quit it and have not been able to get past the opening blank window since ...cursor still blinking as if it is downloading or trying to open.

    What version of iPhoto?

  • Graphics error detected?? is this bad... while using safari

    it just happened never had this before

    Is this the popup you are describing?
    Close the scamware web page. Force-quit Safari if necessary.
    Hold a shift key while launching Safari again.
    Reset Safari: Safari menu > Reset Safari...
    Make it look like this
    Go to the Safari menu > Preferences > Extensions. If you see any extensions that you do not recognize or understand, simply click the Uninstall button and they will be gone.
    Then, call the phone number and repeatedly hang up on them until the novelty wears off.

  • What is the point in this "BScatalyst" if can not use your own domain name?!

    the marketing of adobe BScatalyst is a enigma for me. What is it? when you can´t use your domain name?!

    I think you need to do a lot of research and a lot of reading.
    The point is: adobe has NOTHING TO OFFER besides the software (muse) for
    developing a site.
    Sorry to repeat this a lot but your not correct here as well.
    Muse came recently and is a simple tool to help get people into making sites from the graphics and design industry basically. BC Has a full template, layout and code system:
    http://docs.businesscatalyst.com/dev-assets/reference#!/module-reference/photo-galleries/m odule_photogallery.html
    It has API Access, it can be developed using any coding software from Dreamweaver to Coda 2. This for many is the primary method of creating BC websites and has been for years, even before Adobe purchased the BC company.
    It is always being updated as you can see with the new rendering engine and liquid markup:
    http://www.businesscatalyst.com/bc-blog
    The point is the CC atracts amatures, like my self, to devope sites, but
    they have NOTHING to offer on the hosting side of the work.
    Sorry, but none of this is correct. CC is a service created by Adobe to take all its software into the cloud, it is not just there to develop sites. In terms of storing your work in the cloud that is one of its primary functions. Ignoring BC and websites you can store your files, PSD's through your Creative Cloud account.
    Your post was put under moderation automatically by the forum software because how you posted it. The caps will do it.
    everything above here are without ANY interest for the common amateur muse developer. Why do you think we use muse?!
    I communicate, I read and know a lot of Muse developers, Again your not correct here as well. Sorry for repeating this but this again simply not true and pretty much everything you have said so far is that.
    A lot of Muse users develop very nice looking but basic in function websites, there are a lot who would like to do more such as eCommerce etc, you are not the norm in your thinking off what everything is from CC, BC and the web.
    CMS me here, SAAS me there, and business analysis me over again. IT IS OF NO INTEREST FOR US MILLIONS OF MUSE USERS!
    Again, this is not true. Most of the posts I see from Muse users is how they do more with BC and many want and ask how to upgrade their CC BC to offer more features. The Creative Cloud version of BC is the VERY BASIC version of it, it does not have most of the abilities it has if you have one of the higher plans.
    See here:
    US Yearly Pricing | Adobe Business Catalyst
    A complementary product to Muse is HOSTING!
    Creative Cloud is Adobe moving into the Cloud space for their products and services, Muse is an entry level designer based peace of software to create basic websites. Business Catalayst is what you do not want to research into and hosting is just storage basically.
    Adobe Business Catalyst
    In terms of your website, people make sites just for family etc and put them on the web, Real domain or not you can build a site for what ever you want. But its a website and will be out there on the web. Search engines like google will index such sites so if you do not want them out there on the internet do not create them to make them available.
    I do not mean to be rude, but your comments are not valid and going no where. You not really understanding what anything is, your complaining about things are not true or things that you think do not exist when they do.
    I have been developing sites on the Business Catalyst platform for over 5 years and using other coding platforms and other CMS's for longer then that. I am considered one of the people outside BC who know the platform for the most so please trust in what I am saying here.
    If you want just hosting just use Creative Cloud or something like dropbox.
    If you want to learn more about the web or building sites etc I suggest you go lean, there are many great resources out there.

  • No matter what I try when setting up an account for game center, I get the response that this account is already in use.  I have tried several times to reset both my Apple ID and a password.

    Have been having trouble trying to set up an account with game center.  I have several times reset both my Apple ID and password using both of my email accounts.  Each time I get a message saying that it is "already in use by another game center account", which I am sure is me, but I must have done something wrong in the initial set-up.  Please advise how I can wipe out all info and finally create a valid account to get onto game center!!  Thanks!

    Im trying to switch the Apple ID names around, and what i've learnt is that the Apple ID has to be an Email that isn't an Apple ID. Yup, it's messed alright.

  • After updating to v. 6.X.X, vertical lines appear around the cursor when typing in webpages such as Gmail and Facebook that persist, obscuring text and other pixels in the webpage. Didn't happen before this update.

    I noticed after updating to Firefox version 6.0.1 that vertical lines the same size and shape as the text cursor remain behind on the screen as the cursor moves (either while typing or by using arrow keys). This is most obvious and annoying in text-heavy applications such as when typing in Gmail, Facebook, and work webmail, for instance. (Interestingly, it's not happening now as I type this.)
    This is very annoying because these lines obscure parts or even entire letters in words that have been typed. I thought that it might have been a Firefox customized 'skin' I added at the same time as updating, but I reverted to the default view and the problem remains.

    I noticed after updating to Firefox version 6.0.1 that vertical lines the same size and shape as the text cursor remain behind on the screen as the cursor moves (either while typing or by using arrow keys). This is most obvious and annoying in text-heavy applications such as when typing in Gmail, Facebook, and work webmail, for instance. (Interestingly, it's not happening now as I type this.)
    This is very annoying because these lines obscure parts or even entire letters in words that have been typed. I thought that it might have been a Firefox customized 'skin' I added at the same time as updating, but I reverted to the default view and the problem remains.

  • Changing the Cursor Width

    Hai all,
    I have an application in which I am not able to see the Keyboard cursor clearly. Can anyone help me in increasing the Keyboard Cursor width through Oracle Forms 6i.
    Thanks....
    Bye..
    Badari Hareesh.

    Hi,
    as far as I know, this is not possible. On teh Web chances would be to write a PJC that changes the cursor, but this too is more a work around than a feature.
    Frank

  • ITunes entry disappears when I move the cursor - up to 3 times

    A small but nevertheless annoying problem - very often an entry typed into iTunes e.g. Album or Genre will disappear when I move the cursor. This will happen up to three times in a row. Then the iTunes software accepts the change. Anyone else having this experience? Thanks, Adrian OS 10.7.5 ITunes 11.0.1

    Hello mine also same problem.
    It is irritating a lot form past few days.
    I uninstalled and reinstalled the adobe reader but no use.
    I am using Windows 7 and adobe version 11.0.09
    Kindly help in this regard.

  • Using external monitor with a bad logic board???

    Can you use an external monitor on your ibook, if you have a bad logic board, to use it? Or is the only solution to use the shim, or get it fixed. Thanks.

    Hi, and welcome to Apple Discussions.
    If the graphics chip on the logic board has come loose, it won't drive the graphics to an external display, either. Sorry.

Maybe you are looking for

  • Error: Invalid dimension member with special character / in BPC NW 7.5 SP7

    Hi experts, We are encountering the following problem in our Financial Planning application. We are migrating our existing BPC solution from one server to another through backup and restore. The existing solution was on BPC NW 7.5 SP 5. The profit_ce

  • What's up with my e-mail?

    I've had my PB for a couple of years and up til recently it has connected to the internet fine and got e-mails for both our accounts (both with virgin). A few months ago it suddenly stopped getting any e-mails. Internet access is working as normal. S

  • I cant get into my itunes store

    i cant get into my itune store

  • How can I add metadata to iWeb pages hosted on .mac?

    How can I add title/description/keyword metadata to my website? Is there an easy solution? I publish my site to my .mac account. Any direction would be appreciated. I work in the web marketing industry, so it bugs me not being able to add metadata to

  • Attribute dimension in the planning Web form

    Hi All, Is there any option to populate attribute dimension as a drop down in the Planning web form, I see option to show attribute dimension in the Other Properties page in the web form, But attribute dimension is not showing in the drop downs. Any