App startup duties are generally handled by servlets or a plugin; is there any particular reason it needs to be an action?
Joined: Jul 02, 2008
Just code-reuse. I wanted to call an action -- /<ctx>/refresh.do an arbitrary points during my app's life cycle, but I also wanted to invoke the same functionality immediately upon application startup. I could also create a servlet and start it up in web.xml, but then I have two code bases that essentially do the same thing, so I was wondering if there was a way to merge the two.