Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet + site loader

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
does anybody know how to implement a site loader? I am sure you've seen one: on Expedia.com when you submit your search the page first shows you "please wait" (or something like that) and then redirects you to the results page.
Any help is greatly appreciated,
Alex
 
Satya Narayana
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can do that using client side script!!
After submitting a form, servlet throws Please wait page. This page contains a javascript(document.location=<url with submitted form parameters> ) to do the actual form submission.
This approach have some other advantages.
We can Submit all the forms to one servelt(it simply generates please wait screen) and it will determines dynamically the actaul destination.
-SaTyA-
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic