Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 66405 invoked from network); 21 Nov 2008 06:36:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2008 06:36:11 -0000 Received: (qmail 81715 invoked by uid 500); 21 Nov 2008 06:36:19 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 81309 invoked by uid 500); 21 Nov 2008 06:36:18 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Delivered-To: moderator for dev@cocoon.apache.org Received: (qmail 95075 invoked by uid 99); 21 Nov 2008 03:44:27 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) From: =?gb2312?B?u8a6o7asuavLvtPKz+Q=?= To: Subject: Re: How to get spring beans with Cocoon Template 1.0? Date: Fri, 21 Nov 2008 11:43:44 +0800 (CST) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AclLi1i05H/+pCxISeyy9xDROuvhwA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-TM-Transmit-Status: 1 X-TM-ORIGINAL-IP: 219.136.202.185 X-Virus-Checked: Checked by ClamAV on apache.org Hi,Thorsten Scherler There's many reasons to do this in template,But the MOST IMPORTANT IS it's quick and don't need to write java so it does not need to restart server.For a developer who just know spring and common java,it's not easy to implement cocoon's interface or any other specify interface even they are open source. I am the only one who really understand cocoon in my entire group,the other developers only follow my deployment guide to do the copy&paste&edit work.Java?they only write the common java bean. The complains above is about one problem:Cocoon is not so popular just like Spring or even Hibernate(at least many people knows what it is),that many java developers will study and undersand.So even better or great cocoon implement exist ,much fewer people know.I admit it is not a good solution,my groups also complain why then can't just add code in common java but in a xml file,but the reality is it's the best way for the project now. BTW,I think the better way to do this is to get appctx in flowscript and send it to template with sendPage(url,{"appctx":attctx}); Regards, Roy Huang