Can we have more than one service method in a single servlet

can we have more than one service method in a single servlet?explain with example

No, you can only have one service method. However, you can have it process two different requests as follows.
Lets say you have two JSP pages. Put a hidden text value in one called jsp1 and a hiddent text value in the other called jsp2 (example: <input type="hidden" name="jspPage" value="jsp1"> and <input type="hidden" name="jspPage" value="jsp2">.
Then in your service method, read in request.getParameter("jspPage") to determine if its jsp1 or jsp2 and call up the appropriate logic to process them separately.

Similar Messages

  • Can we have more than one primary key constraint to a Oracle Table?

    Hi,
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    Please somebody answer..
    Regards,
    Alaka

    811935 wrote:
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    In principle a table can have multiple keys if you need them. It is a very strong convention that just one of those keys is designated to be "primary" but that's just a convention and it doesn't stop you implementing other keys as well.
    Oracle provides two uniqueness constraints for creating keys: the PRIMARY KEY constraint and the UNIQUE constraint. The PRIMARY KEY constraint can only be used once per table whereas the UNIQUE constraint can be used multiple times. Other than that the PRIMARY KEY and UNIQUE constraints serve the same function (always assuming the column(s) they are applied to are NOT NULL).

  • Can u have more than one account on a single pc as i dont want others using my account, and we all use same pc

    can i have more than one itunes account on a single pc, as i dont want others using my acount

    The most practical route is usually for each person to have their own user account in Windows. Then everyone's iTunes library will be completely separate and each person can have and use their own iTunes Store account without impacting anyone else's information and account.
    Regards.

  • Can I have more than one e-mail address attached to my apple account?

    I can't seem to create different FaceTime accounts using different e-mail addresses but with 1 Apple account. My daughter's IPod is attached to my Apple account, but I want to use her e-mail address for her FaceTime app. Any thoughts?

    Cessna007 wrote:
    how do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?
    You create an @icloud.com address in the first place by signing into Settings>iCloud with your Apple ID and choosing an addres - you can only create an @icloud.com address, not @me.com.
    Then if you want further addresses on the same account you can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a

  • How do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?

    how do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?

    Cessna007 wrote:
    how do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?
    You create an @icloud.com address in the first place by signing into Settings>iCloud with your Apple ID and choosing an addres - you can only create an @icloud.com address, not @me.com.
    Then if you want further addresses on the same account you can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a

  • Can I have more than one Apple TV in my home on one account?

    I want to buy an Apple TV for my daughter and allow it to access my iTunes account. I already have an Apple TV in use in my home.
    Can I have more than one Apple TV in my home on one account?

    yes
    they access the computers shared itunes lib all the ios devices and appletv's and other computers on your network can access your shared itunes lib and all of them can use your appleID should you so choose

  • Can i have more than one ipod touch on the same account, or must they both be set up with different id's.

      Can I have more than one ipod touch on the same account, or must they each have their own ID.

    If you use the same account see the following to separate Messages and FaceTime between the two iPod see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • Can i have more than one icloud account on my apple id

    Can I have more than one icloiud account on one apple id

    No: but it costs nothing to create another Apple ID and open a new iCloud account with that. The only caveat is that you must associate a different email address with the new Apple ID from that with the old ID (since the address will itself become the ID) - you could open a free email address with Yahoo or Gmail.

  • Can i have more than one apple id?

    can i have more than one apple id listed to a single email acount?

    look here
    http://support.apple.com/kb/he37

  • Can you have more than one apple id on one mac?

    Also i was wondering if you can create a separate apple id but keep your music/podcasts/audiobooks and transfer them to the new apple id.  Please help

    You can use different IDs for different accounts, i.e. one for iCloud, one for ASC one for iTunes etc etc. Apple don't really recommend this, but plenty do it.
    You can also have more than one iCloud account (obviously need different IDs), but you can only have one primary iCloud account on each device.
    You cannot transfer purchases from one account to another.

  • Can I have more than one Apple ID on my Apple TV iTunes? I'd like to combine my family members music on our Apple tv.

    Can I have more than one Apple ID on my Apple TV iTunes? I'd like to combine my family members music on our Apple tv.

    Maybe.
    See Family Sharing @ http://www.apple.com/ios/ios8/.

  • HT2731 can i have more than one apple id on a computer? As when we go away we want to facetime from our macpro to our main mac at home and both are registered under the same apple ID. Thanks

    Can you have more than one apple id on a computer. We are going away and want to facetime from our macpro to the mac computer at home but both are registered under the same apple ID. What should we do ?

    I will share with you what I have done to manage this with my family.  While the solution isn't without flawes, it seems to do the trick.  First, you need to have one person who is managing the synching of everyone's devices.  In my family, I have three iphones, about to be four, and five ipads.  We all synch to the same apple ID to allow one another to take seemless advantage of our Itunes, which is on our Imac.  To synch individual music or video interests, we simply select which playlists we want and manually synch that way.  A couple of us use imatch and the cloud to make the entire library accessable as well.  With respect to the imessage, mail, contacts, etc. we each have a gmail account for our individual emails, contacts etc.  So for instance, my forth grade daughter has a gmail account that we choose to synch her contacts, calendar, etc to and then that is also the account where she receives her imessages from on her ipad and itouch. My son, who has an iphone and ipad, does the same thing, but under settings, he goes to imessage and checks his phone number and his email as his preferred way to receive imessages and texts.  My wife and I do the same thing.  To avoid having everyone see one anothers contracts etc, we only synch contacts from our individual email accounts.  Here is the downfall to this:  When you update your phone or add a new device, apple always wants to reset everyone's facetime and imessage settings and then low and behold we are all receiving imessages from one another's friends etc.  To work around this, I simply take each of their devices and go to their imessage settings and only check the email and phone numbers relative to their devices.  I dont' know is this is the best solution, but it seems to work for us. 

  • Can I have more than one itunes account on my apple tv?

    Can I have more than one itunes account on my apple tv?  We have two accounts in our family and would like to be able to switch between them.

    Thank you.  What I was really trying to find out is if there is a limit on switching iTunes accounts - I have a vague memory of reading that changing from one iTunes store account to another was going to be limited in some way, but maybe this is on iTunes itself?  Or perhaps my memory is incorrect?   We have two iTunes accounts and swap back and forth regularly on our iPhones and iPads to buy and update apps without a problem.  I couldn't find any reference to it on a quick search yesterday so what I have done with the AppleTV is leave it set to one account, and we watched the other account content via my Macbook.

  • Can you have more than one iTunes account with home sharing, Can you have more than one iTunes account with home sharing

    Can you have more than one itunes account at one time with apple tv

    My understanding is that the home sharing is based off of being on the same Wifi.  So if someone brings their laptop to your house and connects to your Wifi and they have home sharing on they can connect so you can see his/her iTunes library on your iTunes. 
    I haven't tried this though.  We have two laptops at home, both using my iTunes account and I can see each other's iTunes library, which I'm guessing is what you're probably doing now.  I'd be interested to know if my thought above is true. 

  • HT4314 Can I have more than one Game Center account on the same Apple ID? If so, how do I set it up?

    I am playing Clash of Clans on my iphone and on my iPad. I would like to connect each of my games to a different Game Center ID so I don't lose them if something happens to my device, but I can't figure out how to do that without creating new Apple IDs for each device and I don't want to do that. Any advice? Can I have more than one Game Center account under the same Apple ID? If so, how do I set it up? Thanks!

    If you use the same account see the following to separate Messages and FaceTime between the two iPod see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

Maybe you are looking for

  • Is there a google-hangout plugin for arch ?

    Hi Sorry if this is a dumb question, but is the google-talk plugin in AUR the same as the hangouts plug-in available as an RPM or DEB at https://www.google.com/tools/dlpage/han - nload.html If not anyone know if there is a package for hangouts? I hav

  • BPM - Async/Sync Bridge

    I'm trying to implement the scenario in this blog - http://www.riyaz.net/blog/a-step-by-step-guide-to-bpm-asynch-sync-bridge/technology/sap/170/ It involves a File  - RFC - File scenario using BPM . File Async Receive  -> Sync Send to RFC ->  Transfo

  • IE7, Flash 8 - IE hangs running Flash

    We're running a Flash presentation that loads in IE7 (for a Kiosk - not connected to 'net). After 15 minutes or so, it quits, getting the error message that Internet Explorer is hung..... any ideas? I'm up against a deadline, if anyone needs some ext

  • Powermac 8600 VGA adapter dip switch settings

    I was running an IBM 21" CRT with a PowerMac 8600. It has an adapter with the Dip switches. Well, trying to hook up an old Powermac 7600 I got the switches out of wack now i can't view either mac? Does anyone know the settings to run a big IBM P275 2

  • Syncing a mediathek between a MAC and a WIN-PC possible with Dropbox?

    Hi everybody, Is this a WIN or a MAC question? I try it here first... X) I have a MAC at one place - and a WIN-PC at another place. Both have a Drobox-folder (Dropbox = a sync tool) to keep the data on them in sync. That works like a charm, besides i