Question #1: Package Structure
I have been trying to figure out a package structure for GeoServer 1.2 and cannot choose between the following:
Option 1
org.vnfy.geoserver.config
- existing package, contents have been removed
org.vnfy.geoserver.config.view
- jsp, servlet tiles based rendering sutff (WMSDescirption.jsp, WMSContents.jsp )
org.vnfy.geoserver.config.form
- contains ActionForms (aka FormBeans) (ie WMSDescriptionForm, WMSContentsForm )
org.vnfy.geoserver.config.action
- contains Struts Action (ie WMSDescriptionAction, WMSContentsAction )
org.vnfy.geoserver.config.model
- contains Beans for current configuration (WMSConfig)
org.vnfy.geoserver.config.model.xml
- model persistence to existing xml config files
org.vnfy.geoserver.global
- global appliaction state (ie WMSState or WMSGlobal or simply WMS )
- this is different from current configuration, may actually contains gt2 DataStores/Catalog etc...
Option 2 - group by sub-component
org.vnfy.geoserver.config.wms
- contains ActionForms (aka FormBeans) (ie WMSDescriptionForm, WMSContentsForm )
- contains WMS ActionForms (aka FormBeans) (ie WMSDescriptionForm, WMSContentsForm)
- contains WMS Actions (ie WMSDescriptionAction, WMSContentsAction )
- contains WMS View implementations (JSP files)
org.vnfy.geoserver.config.wfs
- similar to WMS
org.vnfy.geoserver.config.catalog
- similar to WMS
org.vnfy.geoserver.config.model
- contains Beans for current configuration (WMSConfig,..)
org.vnfy.geoserver.config.model.xml
- model persistence to existing xml config files
org.vnfy.geoserver.global
- global appliaction state (ie WMSState or WMSGlobal or simply WMS )
- this is different from current configuration, may actually contains gt2 DataStores/Catalog etc...
Question #2 - JSP Location/Deployment
I also cannot tell where to locate the source JSP files they could be next to the actions, or the forms or in the top level. There is also conflicting advise on where to store them - either "naked" or in the WEB_INF directory where only STRUTS Actions can redirect to them.
If anyone had any guidence it would be appricated.
Jody Garnett