1) On the right side of each webpage there is IFRAME:
<iframe name=loginFrame src='/servlet/User' marginwidth=0 marginheight=0 width=203 height=239 frameborder=0 scrolling=0></iframe>
This IFRAME checks wether user session set or not if set the User
servlet display the "user control panel" else it display HTML content to get login/pass for signing in
2) Login servlet is doing two works:
(a) getting user/pass to verify from db
(b) request.getHeader("Referer");
The Problem Statement:
======================
If the Login servlet verifies the user then I want to redirect "TWO LINKS" i.e.
(1) /servlet/User (that contains user controlpanel) in IFRAME
(2) request.getHeader("Referer"); (I want to send back the user from where he/she came)
Thanks in anticipation