[Geoserver-devel] JSP/Tiles Structure

Alright, I have been working on developing the structure of the JSP pages
implemented with Tiles.

Here's what I'm looking at currently:

1) Adding a WEB-INF directory containing the configuration files
(struts-config.xml, tiles-definitions.xml, etc) and the JSP files.

2) Altering build.xml to copy these files over to the WAR's WEB-INF.

Here is what the structure of the JSP/Tiles. (This is not comprehensive. I'm
sure I'm forgetting something =)

The content of the "body" tiles will be contained in the "pages" directory.
(think of the specific page layout)

/pages
-- welcome.jsp
-- ./wfs
---- Description.jsp
---- Contents.jsp
-- ./wms
---- Description.jsp
---- Contents.jsp
-- ./catalog
---- Datastores.jsp
---- Namespace.jsp
---- Styles.jsp
---- FeatureTypes.jsp

The generic tiles will be contained in the "tiles" directory.
(Think of the generic page layout)

/tiles
-- ./header
---- logo.jsp
---- menu.jsp
---- location.jsp
-- ./sideMenu
---- status.jsp
---- buttons.jsp
---- actions.jsp
-- ./body
---- tabs.jsp
---- selector.jsp
---- editor.jsp
-- ./layouts --- This is where all layouts will be placed. Currently there is
only one.
---- main.jsp

None of this is set in concrete and is all open to suggestions (the more the
merrier)

It has been suggested that I stick the JSPs along side the java classes that
they associate with, but as the JSPs only contain presentation data, I do not
see this as being beneficial. One will always have to refer back to the
struts-config.xml to locate even the classes that are associated with a JSP.

If anyone has any thoughts or better ideas, please let me know!

Richard