You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Itkis, Boris [EESUS]" <BI...@EESUS.JNJ.com> on 2003/10/20 17:29:19 UTC

Trivial CMS?????

hello,
 
hope this is the right place to post not-quite-struts-user questions :-)

given: web site, implemented using struts 1.0 (don't ask me why); 99% of
static content is in a .properties file.

should be done: a "trivial" content management system that would allowed an
administrator to change (edit) the static content...

possible "trivial" implementation: the way i see it, i need to
1. introduce  some kind of an "edit mode"
2. make changes in tag lib, so that, when in edit mode, tag <bean:message
.../>  puts a link with a key as parameter next to a chunk of text the tag
delivers.  clicking  on that link will make a pop-up with editable content
appear.
3. write an action to read content, corresponded to a given key, from the
.properties file into the pop-up; create another action to write edited
content back to the .properties file.
 
any other ideas?  any ideas how to implement 1. and 2. in the most efficient
way?  i'll greatly appreciate any help/ideas.
 
regards,
--boris