On 27 May 2012 08:28, Paul Moore <[email protected]> wrote: >> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/TempResourceAction.java >> and you have a nice way of serving image files stored on the disk to the >> HTTP client. Unfortunately, this way you have to implement your own LRU >> functionality and make sure you clean up files, otherwise you'll keep >> filling up the disk with temporary files. > > That's brilliant - thanks for those, I'll go and do some reading now.
One quick question. I gather from what I read that this uses the "old way" of creating actions which involves registering them in the struts xml file. (I hope I got that right, I don't really understand all of this stuff very well). I saw a few mentions of the possibility of new-style components being able to register custom actions - but I got the impression that this was a plan rather than a reality. One of the problems I've found with looking for information about XWiki on the web is that a lot of things are somewhat out of date - so my question, is there a new-style way of creating a component that includes an action similar to the TempResourceAction code here? But that's just to save having to write messy tempfile-maintenance code, and is really very much a "nice to have". Thanks, Paul. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
