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.

**********************************************************=

Reply via email to