Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 27214 invoked from network); 10 Apr 2009 06:00:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Apr 2009 06:00:15 -0000 Received: (qmail 97710 invoked by uid 500); 10 Apr 2009 06:00:12 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 97625 invoked by uid 500); 10 Apr 2009 06:00:12 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 97615 invoked by uid 99); 10 Apr 2009 06:00:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2009 06:00:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [67.195.8.231] (HELO web110407.mail.gq1.yahoo.com) (67.195.8.231) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 10 Apr 2009 06:00:04 +0000 Received: (qmail 81922 invoked by uid 60001); 10 Apr 2009 05:59:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239343183; bh=XuI9aReJW+PCCz9iVAIT/zXzk21vqOmKwmOT7jzV/mk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=nlsvxIbJDHzYNIA3kM9Ci9GfVOdUVvHaYrwZcm+QBInzuLBhoDuqjz8MVn9k6t3MLtUCRVAVOm5MrKqVXlhkL0h5AxqCOFMEL/TklW9fOhXS1YuS7zPCrQ6ryhyv0HJ67NalwWIRMcZuud3vNxo2bPqq5QdOI3VVGrVX5yByZVE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Aa7XqqsKsUOJHpdHMLDh7xlQgRVzyh7c1A5YGJQvPw0fZi7Vm0x+JK391qT471iqlVdPQfM+EpVLQgSLSTuxIvBzKn/xkZ7bt4HLN286/BmSpUWqo1rA6BKwZWNde1e4CL5nSSfesw2+r+52zGHVQSsoYpfrlSRIlpck7FtTy0I=; Message-ID: <208428.81658.qm@web110407.mail.gq1.yahoo.com> X-YMail-OSG: .uA8aoMVM1ml8f71hLUlJRIv741FU_t98umpX5QJKM6oX9WEqk3LCGut642R0AQkk6by1CKedWlKN3ADmb_aFAc763R5Vf39A.dHXdL8gcfcnR3PHHrJK929EwbcX3IS7y8RvVxGDUH5nyQxwGB1utEj_To7WgqFj6KhQIPGLFwu2C550dqG0Ua6YGoHGI.E7qLqVcHgtxO1J2gtyKHJU.7DMIQ- Received: from [71.147.52.215] by web110407.mail.gq1.yahoo.com via HTTP; Thu, 09 Apr 2009 22:59:42 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Thu, 9 Apr 2009 22:59:42 -0700 (PDT) From: john lee Subject: beds;=20 =A0=A0=A0 public String execute() throws Exception { =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ......../=A0* initializ= ed service...and it is database connection */ =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0beds=3Dservice.Beds()= ;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ActionContext.getContex= t().getSession().put("Beds",beds); =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return SUCCESS; =A0=A0=A0 } =A0=A0=A0 public void setBeds(ArrayList beds){=A0=A0=A0=A0=A0=A0=A0 th= is.beds =3D beds;=A0=A0=A0 } =A0=A0=A0 public ArrayList getBeds() {=A0=A0=A0=A0=A0=A0 return beds;= =A0=A0=A0 } } =A0 in jsp file, i did =A0 =A0 but received the error=20 =A0 =A0=A0=A0=A0 FreeMarker template error! Error on line 28, column 13 in template/simple/checkboxlist.ftl stack.findValue(parameters.listKey) is undefined. It cannot be assigned to itemKey The problematic instruction: =3D=3D> assignment: itemKey=3Dstack.findValue(parameters.listKey) [on line = 28, column 13 in template/simple/checkboxlist.ftl] in user-directive s.iterator [on line 25, column 5 in template/simple/chec= kboxlist.ftl] in include "/${parameters.templateDir}/simple/checkboxlist.ftl" [on line 2= 5, column 1 in template/xhtml/checkboxlist.ftl] =A0 if i change the jsp file to the following =A0=A0=A0=20 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0 but receive the new error Error on line 28, column 13 in template/simple/checkbox= list.ftl stack.findValue(parameters.listKey) is undefined. It cannot be assigned to itemKey The problematic instruction: ---------- =3D=3D> assignment: itemKey=3Dstack.findValue(parameters.listKey) [on line = 28, column 13 in template/simple/checkboxlist.ftl] in user-directive s.iterator [on line 25, column 5 in template/simple/chec= kboxlist.ftl] in include "/${parameters.templateDir}/simple/checkboxlist.ftl" [on line 2= 5, column 1 in template/xhtml/checkboxlistany expert can give me the advise= ? i am new to struts 2tks in advancejohn=A0=A0=A0=A0=A0=0A=0A=0A --0-1715715076-1239343182=:81658--