Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic webpage passing

Status
Not open for further replies.

mak2112

IS-IT--Management
Aug 8, 2001
46
I wanted to know if it is possible to have a webpage, decide on what page to display next. Basically, my clients connect to a webpage, after filling out an order form. But when I run nightly backups of my database, I close access to the data off. Therefore customers get an error message, as the page cannot be diplayed. Can i write code in the program to check if that page is available and if not send them to a page saying "temporarily unavailable"? any suggestions or help would be appreciated.
 

There are many ways this could be achieved... Some which are outisde the scope of this forum.

If your backups ran at a specific time each night, you could use JS on the page to alter the target of your form, depnding in the time. Of course, a server-side check would be better here.

You could also consider using Struts and Java/JSP/etc to redirect to a different page after checking to see if the database is up or down, regardless of the time.

Hope this gives you some starting points!

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top