This is what I am trying to do is to populate the same nested JSP template
over and over again with different page data coming from the database. This
is the process I imagine:

- The user presses a link containing a pageID, which in turn gets send to
   Struts as a request.
- The associated Action class parses and validates the request and then
either
   returns an error page or launches a Java bean that gets the result (page
content,
   title, etc..)

<so far so good - here's the nifty part>

- There is a main.jsp template that references exactly three JSPs:
   west.jsp, center.jsp, and east.jsp.
- Each of the three templates contain only layout  code and an entry
  like this: <html:text property="west" />

Q: Since those jsps are nested - how can I get the page content
to all three (nested) jsps? Should I put the object(s) in the session or
something?

I'm a bit lost - any input would be appreciated...

Cheers,

Michael

----- Original Message -----
From: "John Yu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 10:29 PM
Subject: Re: Does Camino help with Struts template management?


> At 08:49 pm 14-01-2002 -0800, you wrote:
> >Well, the subject line says it all - I am planning on using Strut's
template
> >mechanism (after giving up on Tiles - it looks to buggy). Does Camino
help in
> >the design and ESPECIALLY management of my templates and components?
>
>
> When you say "help in design and management of templates and components",
> what exact functionality do you see? A use case or two can be helpful.
>
> >Also, a
> >large part of my pages will derive their content mostly from our
database -
> >what would you recommendation be regarding easing the process of passing
on
> >the proper page ID, title, etc.. in order to populate the final template
with
> >the proper content?
>
> Could you elaborate? Again, a use case can be helpful.
>
>
> >Any input would be greatly appreciated.
> >
> >Michael
>
> --
> John Yu                       Scioworks Technologies
> e: [EMAIL PROTECTED]         w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
>
> Scioworks Camino - "Rapid WebApp Assembly for Struts"
>
> ===
> To subscribe/unsubscribe, visit
http://list.scioworks.com:8081/guest/RemoteListSummary/camino_user
>


===
To subscribe/unsubscribe, visit 
http://list.scioworks.com:8081/guest/RemoteListSummary/camino_user

Reply via email to