Javascript question, if you don't mind

hi there
i have a form in a jsp page, with two buttons, each one does its own task which invokes it's servlet. how can i invoke a correct servlet based on the clicking on one of the button?

i assume you want to do this in the same form...
first the form code
<form name="myform" method="POST">
<input type="button" name="Submit to Page One" value="formHandler('page1.jsp')">
<input type="button" name="Submit to Page Two" value="formHandler('page2.jsp')">
</form>and now the script
function forumHandler(PAGE){
  document.myform.action=PAGE;
  document.myform.submit();
}

Similar Messages

  • Two eMac questions if you don't mind?

    I'm running 10.4.11 on this eMac. I haven't upgraded the OS in awhile. Why? I'm pretty sure "Super DRive" has died on me. It will no longer play disk, and when I start up eMac it makes to pretty hideous sound. It sounds like SD is making this noise?
    Also, every single time I open up the eMac it opens up Microsoft's Word,and leaves a small square that says I need an Adobe Authentication too. Oh yeah, plus address book opens too! What can I do to stop this upon opening my eMac?

    On your second question, open System Preferences, Accounts, click Login Items tab, select Microsoft Word, Adobe (AdobeResourceSynchronizer), and Address Book, and click the minus botton at the bottom of the list. If you have Word or Address Book in the Dock, option-click the Dock icon and clear the checkmark next to "Open at Login".
    If the optical drive is making grinding noises, it's a pretty afe bet that an optical lens cleaner isn't going to help. Replacing the internal drive is doable; see Apple eMac Upgrade Guide. If you don't care for the prospect of opening up the eMac, and can live with the startup grinding noises, you can add an external Firewire optical drive for reading and burning CD/DVD discs.

  • How can I buy a song but always asked the security questions and you don't remember them what should I do

    How can I buy a song but always asked the security questions and you don't remember them what should I do

    Write down your security questions.......
    Here is what you should do if you do not remember the answers to your Apple ID security questions:
    Try answering them at least once to see if you can get them right, even if you are not sure you remember the answers to your security questions.
    If you are confident you can't remember them, try one of the following:
    If you have three security questions and a rescue email addresssign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers. 
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID passwordcontact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    Note: If you have forgotten your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time you will not be able to reset your password and will not have access to your account.
    Cheers,
              Alec

  • HT1918 Answering security question when you don't know the answer

    Answer the security questions when you don' t know the answer I have done every thing you asked. I even have change my pass word three times when it not been needed

    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HE37
    My Apple ID
    https://appleid.apple.com

  • How do you reset your security questions if you don't remember the answers?

    How do I reset my security questions if I don't remember my answers to the original quesitons?

    I have the same problem. I didn't set a rescue email for some reason. To find out weather you hav a rescue password: Go to appleid.apple.com, sign in, go to manage account and then password and security if you do there will be a link below telling you that you can send an email to it. If not the link won't be there. Hope this helps.

  • TS2446 How do you reset your security questions when you don't remember them

    How do you rest your security questions if you forgot them ?

    Welcome to the Apple Community.
    Start here, and reset your security questions, you will receive an email to your rescue address, use the link in the email and reset your security questions. (Resetting security questions)
    If that doesn't help or you don't have a rescue address, you might try contacting Apple through iTunes Store Support

  • HT1311 Can you change your security question if you don't know the answer

    Trying to login/buy some tunes and i can't get pasted my security questions, now i'm locked and i know you have to wait 8 hours but in 8 hours i still won't know the answers

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    If all else fails:
    Go to: Apple Express Lane;
    Under Product Categories choose iTunes;
    Then choose iTunes Store;
    Then choose Account Management;
    Press Continue;
    Now choose iTunes Store Security and answer the bullet questions, then click Continue;
    Sign in with your Apple ID and press Continue;
    Under Contact Options fill out the information and advise iTunes that you would like your security/challenge questions reset;
    Click Send.
    You should get a response within 24 hours by email.

  • HT5622 how to reset your security questions. when you don,t   remember   your the answers  to the questions

    i cant remember the answers to the security questions how do i  reset the answer

    The Three Best Alternatives for Security Questions and Rescue Mail
         If you do not have success with one, then try another:
            1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
            2.  Call Apple Support in your country: Customer Service: Contact Apple support.
            3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • HT1491 What happens when it asks you to answer a security question that you don't remember setting up?

    Please help

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
    Go to: Apple Express Lane;
    Under Product Categories choose iTunes;
    Then choose iTunes Store;
    Then choose Account Management;
    Press Continue;
    Now choose iTunes Store Security and answer the bullet questions, then click Continue;
    Sign in with your Apple ID and press Continue;
    Under Contact Options fill out the information and advise iTunes that you would like your security/challenge questions reset;
    Click Send.
    You should get a response within 24 hours by email.

  • I have asked about this previously without a successful outcome, so I hope you don't mind a retry...

    ...after all it is "Ask the Expert Day"!
    I am having trouble with LogMeIn and TeamViewer (remote software) on my new HP TouchSmart 610-1030y with Windows 7. When I had an older Dell Windows XP machine with LogMeIn and TeamViewer installed, it functioned perfectly. Now when I try to remote in to my new HP from the same computer at work that I used before, the slowness and latency of the screen and mouse is very severe.
    Could it be Windows 7?
    Or something with the HP Touchscreen?
    Except for this new computer, nothing else has changed. I have posted the problem in LogMeIn and Windows 7 Forums without success.
    Any advice to get LogMeIn and TeamViewer running properly on my new HP machine would be appreciated.

    Have you tried this? http://www.pcmech.com/article/connecting-to-a-windows-7-pc-with-logmein/
    Or this: http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/windows-7logmein-compatability-pr...
    If that isn't the issue or doesn't solve it, try disabling the Aero theme.
    Lots of discussions out there if you search logmein "windows 7" performance
    Although I am an HP employee, I am speaking for myself and not for HP.
    Please click the little thumbs-up dealybopper to the lower right if my reply was helpful to you. Please mark Accept As Solution if it solves your problem. This will help others, too!

  • HT5312 How do I reset the security questions if I don't have a rescue email?

    How do I reset my security questions if I don't have a rescue email? I can't remember the answers to the security questions.

    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • How to reset your secret question, when you have forgot the answer. And how to change the email where the reset confirmation will be send towards?

    can anybody help with the question below?
    how to reset your secret question, when you have forgot the answer. And how to change the email where the reset confirmation will be send towards?

    You won't be able to change your rescue email address until you can answer your questions, if you don't have access to your current rescue account then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use steps 1 to 7 half-way down this page to update your rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • HT201363 How can you reset your security questions if you can't remember the answers?

    Hello! my question is how can you reset your security questions if you don't remember the answers?

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106484)

  • I got a new iPhone and i am trying to buy songs but when I go to buy a song on iTunes it says I have to answer my security questions and I don't remember the answers. I pressed where it says for them to email you your answers but I haven't gotten an email

    I got a new iPhone and i am trying to buy songs but when I go to buy a song on iTunes it says I have to answer my security questions and I don't remember the answers. I pressed where it says for them to email you your answers but I haven't gotten an email.  Is there another way to change or get the answers for the security questions?

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106007)

  • How to delete a blackberryid when you don't know the password or answer to the security question

    I have forgotten my password and answer to security question.  I would like to delete and restablish my blackberry id account.  Is this possible

    Good day
    welcome to BB forums
    There no need to make mul posts of the same issue someone will help you,
    If you don't got your password or your answer to your serect question you won't be able to access your old Blackberry ID
    You've no choice but to create a new one ---> http://bbid.com make sure you keep your info save good luck!
    Read below article you won't be able to use the same username if that helps!
    After deleting a BlackBerry ID the unique screen name is unable to be used with a new BlackBerry ID
    Want to contract me? You can follow me on Twitter @RobGambino
    Be sure to click Like! for those who have helped you.
    Click Accept as Solution for posts that have solved your issue(s)!

Maybe you are looking for

  • Reference and Assignment Synchronization Report for FBL5N Transaction

    is ther any standard report for ...Reference and Assignment Synchronization Report for FBL5N Transaction.

  • How to deliver multiple events (SWEQBROWSER)

    Hello, Through TCode SWEQBROWSER I can check that there are about 8000 events RECEIVED but not delivered. I need to deliver all this pending events. However in this transaction i just can select one event at a time. Is there anyway to deliver all thi

  • Assigning of reward points

    Hi Moderator, Please can you give Adrian Hughes 10 points as you locked my thread before I was able to award him the points for the correct answer and it was all because of a message saying my post contained profanity or inappropiate language, which

  • Regarding : Push button collective Billing document

    Hi Gurus, In transaction VF04, there is a push button called collective billing document, the requirement is to hide or make the push botton inactive, is it possible through any developments or any std configuration available to disable that, or any

  • A communication error has occurred:An XML element was malformed(call to SP)

    Hello experts, Visual Composer tells me in a pop up, that: "A communication error has occurred:An XML element was malformed" when it tries to call a Stored Procedure (SP). This is s.th. that happens only sporadically, i.e. I can trigger the SP many t