Greetings, 

  A question I thought I'd run by the group here; surely someone else has
found the appropriate approach. 

  The plan is to build a struts-based site that has a standard templated
layout. I've got a standard template.jsp which is a table that imports a
header, footer, navigation panel, and a content pane: 

  /------------------------\
  |      header.jsp        |
  +------------------------+
  |            |           |
  | navbar.jsp | _________ |
  |            |           |
  |            |           |
  +------------------------+ 
  |      footer.jsp        |  
  \-----------------------/
 
  the header.jsp, footer.jsp, and navbar.jsp while dynamic are largely just
a decorator around the actual functioning application that will go in the
content page. The template.jsp will be passed (request parameter) the name
of the JSP to include in the page each time it is drawn. 

  So, what are my architectural options here. 

  I experimented with forwarding all of my actions (/login.do, /logout.do,
...) to the same action as a dispatcher each with a property that describes
the URI of what is to be included in the content area. But in the case of
forms the RequestProcessor seems to detect that there is no form and
forwards to the form page which them shows up without the decoration. 

  Is this the sort of thing that the RequestProcessor could be used to do,
like a servlet filter, to touch up the outgoing markup? But, the decorator
isn't completely 'static', for instance the navbar.jsp wants to know what's
going in the content area so it can change it's representation. 

  Thoughts? 

--lee

-- 
 Lee Crawford
 Trintech, Inc. 
 [EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to