Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

email issue

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a some problem with sending the email. When the user enter their email, and submit, my backend will auto generate excel file, and send to the user.

When the email has been send out, the page is still loading and jus stay there.. how can i stop the loading? thanks
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, fang. You must have missed our naming policy on the way in. To keep things friendly around here, we ask that everyone use their real name, that is: a first name and last name seperated by a space and not obviously fake. You can change your name here.
Your post is a little light on the details of your situation, but my wild guess is that you have a servlet. Remember that HTTP is a request-response protocol. Your browser is waiting for that response. Are you writing anything back to the browser, or just emailing the excel file?
 
fang eve
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My request are all done through servlet. In my servlet is doing the generation of excel file and attach the file to the email.
After all the codes, I did not set any redirect. (So i guess if everything goes right, i should get a blank page.)

I try with small amount of records and is prefectly okie. But my database has around 30 over thousand records. Was wondering, is it because of the large records? How can i handle such problem?

Any way to stop the page loading, ie, in IE the loading bar at the bottom just stay there, in morzilla, the loading sign will not stop.

Thanks
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"fanf fang", Joe's request that you change your display name to adhere to JavaRanch standards was not a suggestion. Valid display names are mandatory for participation on the Ranch. Please change your display name as instructed prior to your next post.

Be aware that accounts with invalid display names are removed.

bear
JavaRanch Sheriff

P.S. This is not an advanced Java question so I've moved it to the Servlets forum.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like I said, you have to write a response to the browser. It's also polite to give the user a "file sent to your email" message rather than make him sit there wondering if his request went through.
 
reply
    Bookmark Topic Watch Topic
  • New Topic