Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 17276 invoked from network); 6 Apr 2007 01:37:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Apr 2007 01:37:43 -0000 Received: (qmail 75776 invoked by uid 500); 6 Apr 2007 01:37:39 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 75737 invoked by uid 500); 6 Apr 2007 01:37:39 -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 75726 invoked by uid 99); 6 Apr 2007 01:37:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 18:37:39 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of realghost819@gmail.com designates 209.85.132.249 as permitted sender) Received: from [209.85.132.249] (HELO an-out-0708.google.com) (209.85.132.249) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 18:37:31 -0700 Received: by an-out-0708.google.com with SMTP id c34so860726anc for ; Thu, 05 Apr 2007 18:37:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=M7Og0ufhPwYeT3vYjBlci7XxVfn9EwA9UjO0ronJ3M+xCk9WUM/rfRDjK6NqOJCFHhb7R69D9Fqa1OhZbS3FiKsZSwGLcgeYLztf8yS66eaeB5f6lilaszRqvhmzKjCg/zxtpr6RL/1nD9HMxUXhvAsh386p4qbMe8+npn2MFMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lin+CR9ycokIf2Pp9qTHn8YgKnePOuvPPA2TYDsakEuM94LBg11Z9rjcvPIhmxiwl2Fr6JU6H2p32JcWkk5NSaJ93W8CBp0pZ9m7tWRqGjJqAAj9FkZ805rxaRcAQtBSZXHIx5ksVXEXBsyXOhbSMyEbsUpBtszAkXstqoyQUIw= Received: by 10.100.122.8 with SMTP id u8mr1777200anc.1175823430884; Thu, 05 Apr 2007 18:37:10 -0700 (PDT) Received: by 10.100.132.1 with HTTP; Thu, 5 Apr 2007 18:37:10 -0700 (PDT) Message-ID: <4de972400704051837l68ffed23td3c0104d09f6f269@mail.gmail.com> Date: Fri, 6 Apr 2007 09:37:10 +0800 From: joey To: "Struts Users Mailing List" Subject: Re: S2: Better passing of fields by link In-Reply-To: <137993.43794.qm@web33513.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_469_31294693.1175823430817" References: <137993.43794.qm@web33513.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_469_31294693.1175823430817 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I think you want the a tag having the ajax function like the autocompleter tag. You can just use ajax lib javascript like dojo to achieve it. There is the snippet: function dojoForm(form) { var kw = { mimetype: "text/plain", encoding: 'utf-8', formNode: form, load: function(type, data, evt) {//callback function }, error: function(t, e) { alert("Error!... " + e.message); } }; dojo.io.bind(kw); return false; } Edit Lineup For details,you can see the showcase app or dojo documentation. On 4/6/07, Scott Nesbitt wrote: > > > I have a link that calls an action and I would like > the action class to have some field values from my > page. Currently I do this: > > includeParams="all"/> > onclick="this.href=rewriteLink(this.href)">Edit > Lineup > > In rewriteLink() I manually create a list of parameter > key/values. Is there a better way? In my > autocompleter tag I can just do formId="dataForm" and > have a small form with hidden fields that get > automatically serialized and sent to the action class, > but that does not seem to work with the a tag, despite > what the documentation says about ajax. > > Any ideas? Perhaps I am going about this wrong but do > not see any good examples of how to do this. > > Thank you, > > Scott > > > > > ____________________________________________________________________________________ > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get started. > http://mobile.yahoo.com/mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > ------=_Part_469_31294693.1175823430817--