On 2011/04/06 (Apr), at 4:16 AM, Pouyan Zachar wrote:

[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.

I have seen struts in action... DON'T DO IT! :)

IMO it would be *alot* of work to port, for a negative benefit (it would be bigger, slower to start, slower to run, harder to maintain...).

I (for one) like the HTMLNode mechanism, even if it is a bit 'different' it is a more methodical way of making a web page; and you never have to worry about closing your tags. It's even theoretically possible to build the page with multiple threads.

Surely there is a better way to make it more readable or support javascript better (if that is the issue).

HTMLTable table = new HTMLTable();

table.tr();
table.th("Peer Nodes");
table.tr();
table.td(new PeerCicle(data));

page.add(table);

???

node.code("<b>insert raw html here</b>");

--
Robert Hailey

_______________________________________________
Devl mailing list
[email protected]
http://freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to