Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 61095 invoked from network); 8 Apr 2005 18:18:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Apr 2005 18:18:24 -0000 Received: (qmail 73583 invoked by uid 500); 8 Apr 2005 18:18:17 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 73412 invoked by uid 500); 8 Apr 2005 18:18:16 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 73399 invoked by uid 99); 8 Apr 2005 18:18:16 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of javastone@gmail.com designates 64.233.162.204 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.204) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 08 Apr 2005 11:18:15 -0700 Received: by zproxy.gmail.com with SMTP id 34so462797nzf for ; Fri, 08 Apr 2005 11:18:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=BE09qJ6eWQ6Mj3YTpu5BePjYSeRz4dqnVhbXhXp+fx5muPvIZClxdCIC0H+3n0ylriSPTdIAGD0IYEOblcMawnzHf1ACFheJEKWod+KmeVUyX8rtsoQNNakx3iCHAZXKSEnjEJKekkLPNfm1WSTZqHeP7jXPxOOMO0ZuOqVFbro= Received: by 10.36.74.14 with SMTP id w14mr99630nza; Fri, 08 Apr 2005 11:18:12 -0700 (PDT) Received: by 10.36.61.15 with HTTP; Fri, 8 Apr 2005 11:18:12 -0700 (PDT) Message-ID: <310ab9b4050408111818203357@mail.gmail.com> Date: Fri, 8 Apr 2005 14:18:12 -0400 From: Jarry Liu Reply-To: Jarry Liu To: users@cocoon.apache.org Subject: How can I put this java variable to xml attribute? Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, everyone, I use xsp get the values of two strings? How can I use these variables in the xml form. My code is as following. Thanks for your kind help. Jarry ... int i; int num = 1; String col = ; String filesname = ; String fname = filesname.substring(1,filesname.length()-1); StringTokenizer tk = new StringTokenizer( fname, ","); String file=""; while( tk.hasMoreTokens()) { file = tk.nextToken(); col ; file;

}
... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org