we have a similar situation.
What we did to solve it  was this.

The login page was a normal HTML page, no frames, this sent 
the details to our server (username / password) , where the server validated
the request
and forwarded it to our Welcome.jsp. This Welcome.jsp is actually
a frameset definition, which includes other jsp's as the content
for the menu and content frame. (frame src="Menu.jsp") (frame
src="LoggedIn.jsp")

The menu frames href's have a "target=content_frame" and all your server
responses
are now sent to the content frame.

BUT,  the inital content page (LoggedIn.jsp), spawned by the frameset
defintion page (Welcome.jsp)
cannot access the request. As the request has been used / died in the
frameset page. (It's essentially a different window)
So our inital content page is just a static  logged in  page. (You could use
the session var here though,
for reasons I won't go into we couldn't, so we just stuck with a static
page)

Damien

-----Original Message-----
From: Alex Punyansky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 12:14 AM
To: [EMAIL PROTECTED]
Subject: Forwards and frames


Hello,

In my application I have two frames: menu frame and content frame. When
the user opens my application, he sees nothing in the menu frame and
login page in the content frame. When the user submits user id and
password, I display the next page in the content frame. The problem is
that I also need to update the menu frame to display the possible menu
options for that user. I don't think that I can use JavaScript to update
the contents of both frames because the menu frame requires existense of
user object in session, and it can't be guaranteed that user's object
will be initialized before the menu frame is loaded. Another problem
arises, when I check whether the user is logged in ( using custom
CheckLogonTag ). This tag forwards to /Logon.jsp in the content frame
only, if user's session expired or it can't find User object in session
but I also need to update the contents of the menu frame at this point,
so that there are no menu options in it.

Has anyone encountered and solved this kind of problem before?

Thanks

Alex

Reply via email to