alex--

i think the best way to do this is not to have the frameset appear until 
after a successful login.  obviously, you don't want the links to your 
functional areas to appear until after the user has been authenticated.  so 
throw up a non-framed page which contains your login form.  after 
authenticating the user, forward to your frameset, where you can dynamically 
build navigation links in the navigation frame based on permissions, etc, 
and where you can prepopulate the content pane with a default page until the 
user selects a link.  targeting the content pane from the link is simple 
HTML (<a href="/SomeAction.do" target="content">link text</a>).  your 
forward should then go to the content pane, where your output is displayed.

when the session dies or the user logs out, simply forward him/her to the 
login page or some other non-framed page.

hope this helps...


----Original Message Follows----
From: "Alex Colic" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Struts" <[EMAIL PROTECTED]>
Subject: A bit of design help please?
Date: Thu, 16 Aug 2001 08:59:06 -0400

Hi,

I am wondering how the following can be done in Struts.

You have a page with two frames, one being a navigation frame consisting of
a series of links that populate the second frame. On start-up the second
frame has a log in screen and the navigation frame just has a company image.
On successful login you want the navigation pane to have a series of links
to tasks that the user can do. They click on a task and the second frame
fills with a form etc. When the user logs out or the session is killed the
navigation frame links are removed.

How can I control and keep the navigation frame synchronised with what is
going on?

Any help is appreciated.

Alex



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to