hello,
while reading books, examples i have found only "Hello World" examples, but now i need to start a project with "Real World" scenario.
there is a description of a problem that i want so solve:
every page should have the same navigational menuthe menu is dynamic, fetched from DBi want to construct menu in S2 Action or Interceptor
i choose SiteMesh for templating. i have created a SimeMesh decorator and try to use OGNL or S2 tags (yes, i have included S2 taglib page directive) in it but none of them works.
i looked at this:
http://www.opensymphony.com/sitemesh/flow.html
and now it seems logical that i can not use OGNL or S2 tags in
SimeMesh decorators - they are never executed. only originally requested resource gets executed (the one referred as <decorator:body />), then the result is handed to SiteMesh Filter.. then i have a question - what is the point of using SiteMesh if it can only add some static information?
but then i read this:
http://www.opensymphony.com/sitemesh/decorators.html
and
i see include JSP directives in decorator... and i don't understand, how can they be processed. i can think of only one case - SM filter uses dispatcher to forward... please explain...
please point me correct way to implement what i am trying to do.
thank you