The servlet include a send mail function,and can not retrun immediately!

In the post/get funtion ,a send mail function is present,and this will make the client wait a long time to continue to browse,how to let it return as soon as possible?

Not sure I understand your question, but I think you want to know how to handle a lengthly operation (send mail in your case) without making the client wait a long time for a response. If that is the question, you can kick off a new thread to handle the mail sending while replying to the browser client immediately. There's a good intro to threads and examples in the Jave tutorial (http://java.sun.com/docs/books/tutorial/essential/threads/index.html)

Similar Messages

  • HT1937 I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    wiliiam rrichard wrote:
    Because My iphone is Locked on the United Kingdom
    No it is not.  iPhones, like all cell phones are not locked to countries.  They are locked to carriers.
    Only the carrier to whom the device is locked can unlock it.  Contact the carrier.

  • TS1292 I scratched off some of the numbers/letters on my iTunes card and can not redeem it.  What can I do?

    I scratched off some of the numbers/letters on my iTunes card and can not read them.  How can I get the numbers?

    See this support article:
    http://support.apple.com/kb/TS1292
    If you can't get the card to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • I've lost the 'send' icon on my mail toolbar and can not find or retrieve it.

    I have lost the 'send' icon on my Mail toolbar and am unable to retrieve it so I am unable to send an email.

    Launch Mail.
    Start composing a new mail.
    Click "View" menu.
    Select "Customize Toolbar".
    From the dropdown drag the "Send" button to the top of the window.
    Click "Done".

  • Since downloading the most current iTunes software I can no longer print the insert (label) for a jewel case.  The songs are printed over each other and can not be read.  Any suggestions?  Thanks.

    Since downloading the most current iTunes software I am no longer able to print an insert (label) for a jewel case.  I click on print, choose jewel case and then it doesn't matter which option I choose for the insert it will only print the songs over each other in a 1 inch section so that it can not be used or read.  If instead of clicking on the jewel case I click on list it works fine and prints an appropriate list.  I have always updated the iTunes software the first time I am offered to do so and I have never had a problem printing the jewel case inserts.  Since this issue is not about a piece of hardware iTunes help will not help me. 

    Did you ever get a response?
    If you so how did you correct the problem?
    I have the exact problem you had.
    Please let me know.
    Thank you
    <Edited by Host>

  • When sending mail I get can not locate your gmail password

    When I try to email using Tbird which is my IMAP default via gmail. It says can not locate google password. I can send email out with no problem using gmail via Tbird.

    I'm with Matt. I have trouble believing it did what you seem to say it did. I've never seen Thunderbird say it cannot "locate" a password.
    You say you can't "email" using Thunderbird, then you tell us you can send. Which is it?

  • Trying to update the software my ipad got an error and can not even turn it on in think lost the software ipad 1 16gb wifi

    I was doing a software update and in the middle of it got me an error. try to restore could not do it either and went blank no software in my ipad to be able to boot it up

    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
    If you can’t update or restore your iOS device
    http://support.apple.com/kb/ht1808
     Cheers, Tom

  • I brought two movies and can not download them both onto my iPod....why?

    I brought two movies... Safe Haven and 42, the Jackie Robinson story....and can not down load them both onto my iPod..... why??  If can not down load the movies onto my iPod, why bother to have an iPod or buy the movies from ITunes?

    If the problem is iTunes slowing down and not appearing to run correctly, you should check  this Apple article out-> Apple software on Windows: May see performance issues and blank iTunes Store
    You may want to try resetting Winsock as a temporary fix.
    1. To do so, please do the following in an administrator user:
    Windows Vista and Windows 7: Right click All Programs and choose Accessories > Command Prompt. Choose to open as an administrator.
    Windows XP: Click Start > Run and type in cmd.
    2. Enter the following command: 
    netsh winsock reset
    3. Restart the computer and test the issue.
    Note:  If the issue returns, third-party software may be reinserting the LSP.

  • Use of ABAP expression in the Send Mail Header and Text

    Hi Workflow Gurus,
    I have a requirement wherein I have to inform the Manager of a user that his/her request for leave availment has been approved. However, we need to show the users name for the Manager to easily identify the user.
    Now, I checked the send mail step and it is possible to insert an expression, but the available expressions are confined within the containers available. Hence, we only have the user id of the workflow initiator.
    Is there a way to place a code in the send mail expression which will determine the user's employee name given the user id as opposed to having to create an FM and a method to determine the users name? Or is the only recourse to develop and fm and a method to determine these details in the background and pass it to the containers for extraction?
    Regards,

    If you don't have for example the employee name in the available container elements, you need to add it and do the necessary coding/development for it. Classically employee or user data has been retrieved by using a certain standard background task to get the user/employee object based on the user ID. This will require an additional background step but no coding since the task includes the coding already.
    It is anyhow possible to try to get the data for example with functional methods by using container operations  in the workflow (or it is also possible to do this in binding too) - but then you need to develop a functional method(s). In other words you can use a functional method for example in your binding or in a container operation. Check for example Jocelyn Dart's blog about functional methods. Anyhow, how well the functional methods will work depends on the SAP system version.
    Regards,
    Karri

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • I updated to 5.0 today and now when I try to email from my phone, I am thwarted by the pop-up, "cannot send mail. a copy has been placed in my outbox. the recipient (email address) was rejected by the server.  I need help, please.

    I updated to 5.0 today.
    Now, when I try to email from my phone, I am block, thwarted, rejected by the following message:
    Cannot Send Mail
    A copy has been placed in your Out Box.  The recipient (enter email here) was rejected by the server.
    This happens with my business address.  Receiving works.... sending doesn't.
    My SBC Global address on this same phone is fine...receiving and sending.
    What to do?  I'm stressed.
    Ray

    Hi,
    I had the same issue on my iPhone 5S.  My internet/email provider told me to uncheck (turn off) USE SSL under Mail settings, and it worked perfectly for me.

  • Problem with replies in Maverick's mail.  Originating emails send fine.  When replying to an email (various addresses) the reply is hung up and can not be sent.  Option becomes put in draft, delete, etc.  Any suggestions would be helpful

    Problem with replies in Maverick's mail.  Originating emails send fine.  When replying to an email (various addresses) the reply is hung up and can not be sent.  Option becomes put in draft, delete, etc.  Any suggestions would be helpful.  Mid 2013 iMac.

    I don't know how rare this is.  I went a week or so without a problem, and now it's starting to recur.  Also, in some instances, an email will look unsent (remain in the outbox on the Treo), but it has been sent, and recipients are replying while I'm trying to figure out what is going on.  Further, it will send the same email over and over during this madness.
    This is a show stopper.  If there isn't a software fix soon, I may chuck this phone in the garbage.
    Post relates to: Treo 800w (Sprint)
    UPDATE:  The problem comes and goes.  The next day, no changes to the treo, everything workeds.  Now i'm suspecting the sprint server, and how it/the phone responds from failing to send while roaming.  I've since turned off roaming, and haven't had a problem for several days.
    Message Edited by slrichardson on 12-22-2008 01:12 PM

  • I've can't open any applications on my Mac ! I tried to delete some files from safari (history) and then none of the apps including iphoto, safari, mail, facetime. I don't know how to fix it, help ? any idea ?

    I've can't open any applications on my Mac ! I tried to delete some files from safari (history) and then none of the apps including iphoto, safari, mail, facetime. I don't know how to fix it, help ? any idea ?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output andWi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I'm picking up all of the data script related to the sending / receipt of an e-mail along with the e-mail itself and can't find a way of not showing the text. Obviusly only a command but can't find it!

    I'm picking up all of the data script related to the sending / receipt of an e-mail along with the e-mail itself and can't find a way of not showing the text. Obviusly only a command but can't find it! Help!

    Shift-Command-H is the key-combo to switch 'Long Header'/'Standard Header' .
    Long way: Top Menu -> View -> E-Mail
    Stefan

  • The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin, how can I eliminate this problem without dropping m. firefox?

    A few days ago I tried to e-mail a friend, when I started A box came up and it required me to add a plugin..Java. I contacted my e-mail courier and microsoft, they told me that is was a plugin from Mozilla Firefox. Since then I must go through Java to send or open an e-mail... this is NOT to my satisfaction, it takes too long for all of this to open and if it is not cleared , I am dropping Mozilla and going elsewhere. Why has this occurred? Is this a result of the last update? If so can I delete the last update and continue on the other version?
    == This happened ==
    Every time Firefox opened
    == last week

    Sorry, I have no idea what you mean by '''"The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin,"'''.
    If you think your problem is caused by the Java plugin, you should visit the Java support forum for assistance.
    http://forum.java.sun.com/index.jspa
    If you could explain what you mean by '''"time unfriendly''' issue with my e-mail account", maybe we'll be able to help you solve that issue.
    It might be helpful for us if we knew exactly which web-mail provider you are using. It seems strange to me that viewing or sending web-mail would actually "need" Java for operation, its more likely that some other item on the web page needs Java to run some advertising or other garbage that isn't a necessary part of the web-mail functionality you want to use.

Maybe you are looking for

  • Returning my Yoga 2 Pro. What a shame...

    What a shame... I like the computer, I don;t have any of the issues many of teh people in these forums brought up and yet, Lenovo screwed up big time with the mini HDMI. I must be able to connect my laptop to my external Apple monitor. This monitor h

  • Image size from photoshop to indesign

    For some reason if I make an image the exact size in Photoshop and bring it into indesign DPS it is always smaller.  Obviously I can resize it but i was curious why this is happening.  I set my file up to be 1024 x768 at 72 dpi and save as a JPEG.  W

  • Substition exit

    I am re-posting this coz i think i had posted it in the wrong section. hello All, I tried to resolve this issue on my open about the user exit for obbh transaction, Also had a look at all the threads but i could not locate one. I need to populate the

  • Connecting G4 to Macbook Pro

    I have a G4 running 10.5 and just bought a used Macbook Pro running 10.6. I can Share the screen in both directions and can connect to the G4 from the Macbook but I cannot connect from the G4 to the Macbook - Error 36. Any ideas? The Macbook has been

  • Anyone got a zip-tip?

    When I try to Zip a file(backup.zip) everything is good except one thing. When I use WinZip to unzip the file, the path for the file contains all subdirectories eg. c:\mycatalog\backup\db\data.data I would like the path to be like: db\data.data The c