How to prevent submit twice?

i just use jsp and jstl.
There is some way can prevent submit twice?
i use sql in jdbc, first get the last record in table, compare the submit data and the last record, if same, prevent submit.
but it can't check the date -- not the last record, same with the submit record.
anyway can do it?

what he/she is saying that you can put unique key on you databse that you cannot duplicate inserting records.. another way is to put javascript confirm box.. that way your client has to click ok to submit your form and it can prevent the user from double clicking your submit button.

Similar Messages

  • 10.1.3 ADF -- How to prevent "submit" button submits data?

    Hi,
    In an Edit JSP page, there are several inputText fields that the users can modify data. And a "submit" button they can click when they are done with modification. I also add a validator for a inputText field to check whether the input is valid.
    When the users click "submit", I can see the error msg on top of the page if the data is invalid. Because I change the navigation string to "null" if the input is invalid, the page does not get forwarded. But here comes the problem, if I cancel this page and navigate to the next, I see the invalid data I just input.
    In another word, even with the validator and error msg, the data still gets submitted to the database.
    I haven't registered the validator in the face-config.xml. Will that help solve the problem? Any other idea? Any help is appreciated.
    Annie

    Hi Annie,
    If the input is invalid the current page is redisplayed by default.
    if you want to cancel this page and want to go to another page without
    displaying error messages, specify immediate="true" attribute
    with cancel button.
    Shakir

  • How to prevent the user to submit leave request?

    Hi all,
    If the employee has wrong setup in the AME approval,the error "ERROR: An Invalid Setup has been detected for the current Transaction Type in Approvals" will be raised, although the employee will be able to submit the request, the request will have pending for approval status.
    How to prevent the user to submit the request when the error raised?
    Any idea.
    Regards

    Hi,
    Is this possible?  Pl check the error and your Transaction type. Refer ID 420381.1(How to Create the Approval Transaction Type for AME.A?) and also refer Oracle White paper on
    "Approvals Management Responsibilities and Setups in AME.B".
    Hope this helps.
    Regards,
    Siva

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How do I submit a correction to the mapping data?

    I live next door to a '4WD track' that is inaccessible to cars (and most 4WD's!), yet the mapping data on Nokia handsets shows this track as a road - we've had numerous people using the GPS on their Nokia trying to get up the track with a car an either a) getting stuck or b) having to reverse all the way back down the track (being a track there is no where to turn around).
    How do I submit a correction to the mapping data to flag this track as inaccessible and prevent more cars from following the GPS up the track?
    Thanks,
    Michael

    u can try this link to report stuff: http://europe.nokia.com/get-support-and-software/product-support/maps-support/feedback
    if my post helped u out, please click the Star next to it to add some KUDOS to my name

  • FMMC , how to prevent FM area screen from keep popping up

    hi guys,
    how to prevent FMMC from having FM area from keep popping up..i need to create a program using submit report via FMMC.
    IF FM area screen keeps popping up, it will disrupt the process , i tried to use OKKS  but  it doesnt stop the screen from keep popping up , pls advice

    Notifications>Messages>Show Preview & View in Lock Screen

  • How to prevent dupilcate form submission in JSF 1.x

    Hi All
    How to prevent dupilcate form submission in JSF 1.x application. As of now ,when the user clicked the submit button two times , application inserts 2 records in database.
    Please suggest how to prevent dupliacte form submission without using Javascript. Kindlly share examples if any.
    Regards,
    DEV

    Your problem is not really double submission but the fact that your application allows double insertion. The fix is functionally easy but technically very cumbersome: before inserting, check if the data already exists. If you build in such a guard you also protect against other methods of causing a resubmission, such as the browser back button.
    PS: what's the deal with the no javascript limitation? You do realize that when you use JSF you're tanking your application full of javascript, right?

  • How to avoid submit disable?

    When I press submit FF automatically disable submit button so you cant submit twice. But this future is annoying because i cant normally test my script, how can I turn off this?

    http://forum.java.sun.com/thread.jsp?forum=45&thread=183161

  • How to prevent an error of [WIP work order ... is locked-]

    Hello experts
    Can someone tell me how to prevent an error which [The WIP work order associated with this transaction is currently locked and being updated by another user.  Please wait for a few seconds and try again.Transaction processor error].
    How can you prevent that error?
    P.S.
    Oracle support told me [When you make data of mtl_transaction_interface, give same transaction_header_id to all data. Then, you kick worker with appointed transaction_header_id. Or, you set up being uncompatible with workers].
    I cannot allow that making with same transaction_header_id and being uncompatible with worker on my system.

    Hi santosh,
    You can implement badi BBP_DOC_CHECK to check vendor email and issue error message.
    Kind regards,
    Yann

  • How to prevent PO changes in ME22N after Order acknowledgement?

    Hi everyone,
            Can anyone tell me how to prevent PO changes (ANY) in ME22N after Order acknowledgement?
            I would like to make it possible without release strategy process or authorizations.
            Do you know some User Exit or Customazing way?
    Regards.
    Jaime S.

    Dear Jaime S,
    You can do this by restricting in authorization SHDO and also by marking "changes not possible after release" in Release strategy procedure.
    And also you can navigate the menu to, SPRO------>IMG------>Material Management--->Purchasing(OLME)------->Purchase Order---->Define screen Layouts at Document Level---->And go to ME22n And Select the right parameter and in this you can make it display, optional or required entry for the fields.
    Regards,
    Manjunath B L

  • How to prevent a solaris user to telnet from multiple computers

    Hello,
    How to prevent Solaris users to telnet from multiple computers? They should be able to telnet from only one PC.
    Please help..

    ora_tech have a good point, i was about to suggest ipfilter, which is a built-in-firewall in Solaris, but using tcp wrappers would probably be easier. It all depends on which level of security you want (blocking the telnet requests in a firewall would generally be safer than blocking them at the tcp wrapper level, since its prevents some processing).
    Since Solaris 10 you can also easily enable tcp wrappers on the inetd services with inetadm, see:
    http://blogs.sun.com/gbrunett/entry/tcp_wrappers_on_solaris_10
    .. for more details..
    .7/M.

  • How to prevent iTunes for Windows from "Updating iTunes Library"? (Library is on a NAS and managed by iTunes for Mac. Now getting update wars between Mac and Windows versions of the player.

    How to prevent iTunes for Windows from "Updating iTunes Library"?
    My library is on a NAS and managed by iTunes on a Mac. I can connect from wife's Windows laptop using iTunes for Windows but every time I do, it Updates iTunes Library. Next time I log in from my Mac it Updates iTunes Library in return. It appears I'm experiencing "Update Wars" between the Mac and Windows versions of iTunes. I would like to allow my wife to stream iTunes songs to her new laptop but I don't want any updates from this source... prefer to manage the library from my Mac and not allow Windows to do any thing other than listen to existing playlists.
    Thanks for any help/suggestions.

    Connect the PC to the library on the NAS. Wait while "updated".
    Under Edit > Preferences > Advanced make sure the media folder is correctly pointed at the media folder on the NAS. If not correct, close iTunes, wait a few moments, then open iTunes again.
    Close iTunes on the PC. Do not open iTunes on the Mac.
    Copy the library files, iTunes Library.itl, iTunes Library Extras.itdb, iTunes Library Genius.itdb, sentinel and the folder Album Artwork into an empty iTunes folder on the PC, for example C:\iTunes.
    Click the icon to start iTunes and immediately press and hold down SHIFT. Keep holding until prompted to choose or create a library. Click choose and browse to the copied .itl file, e.g. C:\iTunes\iTunes Library.itl
    The library should now work properly on the PC, however check the setting for the media folder. If needs be correct, close iTunes and reopen.
    Open iTunes on the Mac. It will update again, but that should be last time.
    tt2

  • How to prevent others use their iDevices to remote control apple tv?

    Hi All,
    I'm wondering that does anyone know how to prevent others use their iDevices to remote control my apple tv?
    settings
    1. the apple tv is in the school.
    2. all students could access the Internet
    3. The apple tv is sharing the same Internet with students.

    Welcome to the Apple Community.
    The remote app uses homesharing, therefore anyone wanting to control an Apple TV with the remote app would need to know the home sharing ID and password.

  • My 9 year old somehow ran up $99.00 while playing games on my iPad. How do I submit for a refund?

    My 9 year old son somehow ran up $99.00 in app purchases on my iPad. How do I submit for a refund? I have been all over the website but of course, this is the ONE thing I can't find.

    There are no refunds.
    You can try contacting itunes support and asking for an exception.
    Click "Support" at the top of this page, then click the link under "Contact Us"

  • How to prevent apps from syncing in the new version of itunes?

    Hey there.
    I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my iphone, a pop window asks me to give the password of the itunes account I used to download some of my apps or it will delete them and their data. The problem is that one of these accounts is an old friend's one and I actually lost all contact with him. So basically now I can't sync my iphone at all or it will delete all my apps.
    Has anyone any idea how to sort that out? Or at least knows how to prevent apps from syncing in this new version of itunes?
    Thanks for your help

    Onthe top menu
    View > Show Status Bar.
    The grey bar will now appear at the bottom with the info you want

Maybe you are looking for

  • Re: Extension Manager 6.0.4 Update Installation failed. Error Code: U44M1P7

    Jeff I've been running into a similar issue like this but with 6.0.5. I had to re-install Premiere for a different reason, then right after the install attempted the update. Failed at that point. Then i downloaded it manually and tried installing but

  • Time Capsule and Ethernet port

    hey guys, I recently bought a time capsule, and stupidly enough, forgot that Time Capsule only has ethernet jacks- the problem is that my home only has a telephone modem jack. I was wondering if there were any Telephone to Ethernet jack converters? t

  • Adding a many-to-many relationship with AMO

    Does anyone have an example of adding a many-to-many relationship using AMO that is NOT the AMOAdventureWorks example? Specifically, I'm trying to do the following: 1. Create the new measure group (cube.MeasureGroups.Add("New MeasureGroup"). This wil

  • Problem in Installing BlackBerry Desktop Carrier Version.

    Hi. Everytime I try to install Blackberry Desktop for carrier I alway get a error. " Error reading setup initialization file." Is there any solution to it. Operating System : Windows 7.

  • What is Application Default Currency used for?

    Hi, Can anybody tell me what is the use of Application Default Currency when it is mandatory to assign every entity a currency?