What I would like to do is to custimize installations of a
struts-based web application, in a way that isn't overwritten when a
new version of the webapp's .war file is installed.

Is it possible to do something like this for a struts application?

 - deliver the application as a .war file
 - customize the application by putting JSP files with the same names
   as the files inside the .war file into a directory that is scanned
   before the directory of the .war

Ie. have a search path for the JSPs?

Other ideas I have considered, are:
 - Change <forward> elements in the struts-config.xml file to point to
   the locally customized JSPs.
   This is difficult because the struts-config.xml resides inside of
   the .war file.  I'm also not sure if it is possible to point
   outside of the webapp?
 - Run a cronjob (or something) to patch the unpacked webapp by
   overwriting distributed JSPs with locally customized versions.
   This feels like a hack/last resort
 - Replace the class that reads the struts-config.xml file with a
   class that reads its config data from a database

Is there some obvious approach I have overlooked?

Thanx!


- Steinar



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to