Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 32781 invoked from network); 13 Dec 2004 11:32:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Dec 2004 11:32:34 -0000 Received: (qmail 81305 invoked by uid 500); 13 Dec 2004 11:31:48 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 81285 invoked by uid 500); 13 Dec 2004 11:31:47 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 81263 invoked by uid 99); 13 Dec 2004 11:31:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from s-97-26.dsl.cleardatavoice.com (HELO gridnode.com) (202.83.97.26) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 13 Dec 2004 03:31:43 -0800 Received: from [127.0.0.1] ([192.168.213.69]) (authenticated bits=0) by gridnode.com (8.12.9/8.12.4) with ESMTP id iBDBVVGQ017889 for ; Mon, 13 Dec 2004 19:31:31 +0800 Message-ID: <41BD7B4F.8030108@gridnode.com> Date: Mon, 13 Dec 2004 19:21:51 +0800 From: Andrew Hill Reply-To: andrew.david.hill@gridnode.com User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: logic tag References: <02a401c4e0f3$60a64280$0901a8c0@maxxion.co.in> In-Reply-To: <02a401c4e0f3$60a64280$0901a8c0@maxxion.co.in> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sorry mate, you going to have to be a bit more specific about the problems your having, and precisely what result it is that you are actually trying to achieve, as we are having some trouble understanding the question! I am having a vector object in jsp In a request or session attribute I presume? An ActionForm's two instances are stored in that vector This I dont understand. The struts methodology involves one actionform per request, and its instantiated, populated and put into the request )or session) by the RequestProcessor. Are you doing some custom handling to support multiple actionforms per request or did you mean something else? How can i produce the results What is the result that you are trying to produce? I guess you want to iterate a vector and output the contents? At its simplest you should be able to do something like:
Change "myVector" to the attribute key that your vector is stored under in the request or session. "myProperty" refers to the name of the single variable you wish to output. It needs to have a single getMyProperty() method (change names as appropriate). hth Andrew ps: The article at: http://www.catb.org/~esr/faqs/smart-questions.html has some advise on how to improve your communication when asking questions in lists like this, and is well worth a read if you are new to such forums. Pramod wrote: > I am having a vector object in jsp. An ActionForm's two instances are stored in that vector. Action form contains only one variable. How can i produce the results using logic & bean tags --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org