A bit of design help please?

2001-08-16 Thread Alex Colic

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




Re: A bit of design help please?

2001-08-16 Thread Jon Crater

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=contentlink 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




RE: A bit of design help please?

2001-08-16 Thread George, Carl

I have always found that frames are bad, that is why I recommend using
templates.  We have a default template (with the nav bar, header, footer)
and then pass the content in as a parameter.

Carl

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:59 AM
To: Struts
Subject: A bit of design help please?


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



RE: A bit of design help please?

2001-08-16 Thread Mike Dewhirst

may I ask exactly how you implement this? (Passing content in as a
parameter). D you have a paramter called, say content_id, and dependent on
this you forward to the relevant action? Or include output from a relevant
jsp?

Thanks in advance.

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 15:11
To: '[EMAIL PROTECTED]'
Subject: RE: A bit of design help please?

I have always found that frames are bad, that is why I recommend using
templates.  We have a default template (with the nav bar, header, footer)
and then pass the content in as a parameter.

Carl

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:59 AM
To: Struts
Subject: A bit of design help please?


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


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=



Re: A bit of design help please?

2001-08-16 Thread Alex Colic

Hi,

Thanks for the reply. Just a bit of elaboration.

What I should do is have a simple login page. No problem. On successful
login I send them to a framed page. So far so good.

Question about this dynamic links. Could you elaborate on how to create them
using struts?

Alex



--
Date: Thu, 16 Aug 2001 09:37:04 -0400
To: [EMAIL PROTECTED]
From: Jon Crater [EMAIL PROTECTED]
Subject: Re: A bit of design help please?
Message-ID: [EMAIL PROTECTED]

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=contentlink 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...




RE: A bit of design help please?

2001-08-16 Thread George, Carl

Here is the template file:
%@ taglib uri='/WEB-INF/tlds/struts-template.tld' 
  prefix='template' %
%@ taglib uri=/WEB-INF/tlds/struts.tld prefix=struts %




% String msg = request.getParameter(page); %


template:insert template='/NavTemplate.jsp'

  template:put name='title' content='Navigation' direct='true'/
  template:put name='header' content='/NavBar.jsp' /
  template:put name='sidebar' content='/sidebar2.jsp' /
   template:put name='content' content='%= msg  %' /
  template:put name='footer' content='/footer.html' /
  /table

so the call would be http://server/Nav.jsp?page=theContentpage.jsp

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 10:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: A bit of design help please?


may I ask exactly how you implement this? (Passing content in as a
parameter). D you have a paramter called, say content_id, and dependent on
this you forward to the relevant action? Or include output from a relevant
jsp?

Thanks in advance.

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 15:11
To: '[EMAIL PROTECTED]'
Subject: RE: A bit of design help please?

I have always found that frames are bad, that is why I recommend using
templates.  We have a default template (with the nav bar, header, footer)
and then pass the content in as a parameter.

Carl

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:59 AM
To: Struts
Subject: A bit of design help please?


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


=**

If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination or copying of this communication and its attachments
is strictly prohibited.

If you have received this communication and its attachments in error, please
return the original message and attachments to the sender using the reply
facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does
not accept legal responsibility for the contents of this message.  Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

**=



Re: A bit of design help please?

2001-08-16 Thread Jon Crater

in your action class, create a collection of objects that the current user 
is allowed to access based upon his/her application permissions.  i would 
envision the class of the collection member containing at least:

String targetUrl;
String linkText;

and anything else that's relevant to your navigation menu.  set that object 
as a session-scoped bean and iterate through it from your navigation jsp.

alternatively, a better place for this collection is in a user profile 
object, which you could create on login to your application.  put a 
reference to the collection inside your user profile object, set the user 
profile as a session scoped bean, then expose the collection to the jsp and 
iterate through it using the iterate tag.

jon


Original Message Follows
From: Alex Colic [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Subject: Re: A bit of design help please?
Date: Thu, 16 Aug 2001 10:27:23 -0400

Hi,

Thanks for the reply. Just a bit of elaboration.

What I should do is have a simple login page. No problem. On successful
login I send them to a framed page. So far so good.

Question about this dynamic links. Could you elaborate on how to create them
using struts?

Alex



--
Date: Thu, 16 Aug 2001 09:37:04 -0400
To: [EMAIL PROTECTED]
From: Jon Crater [EMAIL PROTECTED]
Subject: Re: A bit of design help please?
Message-ID: [EMAIL PROTECTED]

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=contentlink 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...



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