Thorsten Scherler schrieb:

[...]

> Actually for me that "every non-trivial operation requires offloading to
> java code" is a benefit since it keeps the heavy logic out of the
> templates. I guess we all have seen once in our life a jsp that
> contained an actual java class within, well let alone jsp and look in
> some of our xsp that are nearly doing it.
> 
> The benefit "outsourcing" this operation to java objects is the
> re-usability and the reduction of complexity. I lately developed some
> components for a customer in java flow and must admit it is heaps
> cleaner then js. Sure you can use java objects in js, but who really
> wants to program in js if you can do it directly in java. 
> 
> Having my flow in java I followed a bean approach to pass the objects to
> the view and could test all the non trivial operations with junit. If we
> allow too much in the view we have not the benefit of testing with
> junit.

I'd love to read more mails like this. :)

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to