wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Redirect page to avoid flashing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Redirect page to avoid flashing" Watch "Redirect page to avoid flashing" New topic
Author

Redirect page to avoid flashing

Raj Puri
Ranch Hand

Joined: Apr 24, 2003
Posts: 189
I have an application that has complex HTML/JSP code. The onload event does series of things and checks user is valid or not. I try to redirect the invalid user to error page. But, I see page flashing, is there a way I can put the user check code in a seperate page and redirect page there and then load this page if success. I a do number of things in onload and seems
the process is really not the way code is typed. I was looking at using to solve this problem by using any inherent met-tags that can redirect to a
dummy page that checks users and if pass loads the current page. Any hint?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Why are you checking the user validity on the client in a Javascript handler? This is much better suited to a server-side check before the page even gets sent to the browser. A servlet Filter works great for such things.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirect page to avoid flashing