[freenet.10.technomation] > Struts is a large, complex and largely superseded framework (by JBoss, Spring > etc) - the .jar is several megs in size, requiring considerable > configuration. Given the amount of HTML in Freenet, then one would think a > lightweight templating engine might be more in order: Apache Velocity for > example. [ http://velocity.apache.org/ ] > > Velocity is ~300K, easy to configure and could run in a single servlet. > Content could be kept in HTML and other content files that could be designed > / built / tested outside of the container in regular tools.
I must agree with the fact that Struts and similar frameworks (Wicket) are too huge to be delivered with Freenet. Although Velocity have the advantage of being small in size (the core), in order to utilize it in web application you "may" need other modules (e.g. VelocityViewServlet to avoid calling velocity directly). Another drawback is its limited functionality, e.g. limited list of directives. I would suggest to embed Jetty (http://jetty.codehaus.org/jetty/) with JSP module and implement a Struts-similar MVC framework . This way we have the full functionality of Java in JSP pages (when needed) and we can build up a new lightweight framework which suits our needs. Regards Pouyan