Hi,
While I was going through some of the jsp pages (to get some hints and
coding style of others for the user profile I am working on) I noticed some
things :-
-> *tiles-defs.xml*
has a base template definition and other definition extend on this but
I found that there is no header jsp files or footer jsp files present in
code base for each of the display web page (except for a blank header.jsp)
-> for example in file *page.jsp, *it has a header tag which I feel must
have been a seperate jsp file of its own (considering the tiles-defs.xml
file definitions)
-> Also there is a file called *base_layout.jsp *which is the common call
for all display pages and here the appropriate tile definition is imported
for displaying. So it has the header definition, body definition and footer
definition inserted.
So looking at the pattern of xml and base_layout file, is it that the
header should be in a separate file (for example for page.jsp header tag
should be in a different header file)?
Also a thought, why not just have the base template with the attributes:-
- header
- menu (which may be needed in user profile page)
- body
- footer
and remove the other template definitions.
The value of all these definitions can be overrided as and when needed
based on what to display.
I apologize if I wrote a wrong explanation of code base.
Would be happy to know more and receive comments. :)
Waiting for replies.
Regards,
Ankur