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!

Redirecting a page?

Status
Not open for further replies.

qajussi

Programmer
Mar 22, 2004
236
US
Hi!
I want users to access pages in a certain order.
Say I have A.jsp(html) and B.jsp(html) pages.
I want users to access A.jsp page first then B.jsp.
IF they try to access B.jsp, I want to redirect to A.jsp.

How do I do this??
Can you help me??
Thank you.

I would like to do this in servlet.
 
I think you'll need to store in the session a variable that checks if the user has visited page B.

If not, at B load, redirect it to A.

Cheers,

Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top