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?