Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 60091 invoked from network); 26 Jul 2007 18:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 18:23:55 -0000 Received: (qmail 35055 invoked by uid 500); 26 Jul 2007 18:23:46 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 34843 invoked by uid 500); 26 Jul 2007 18:23:46 -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 34832 invoked by uid 99); 26 Jul 2007 18:23:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 11:23:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.157] (HELO web33508.mail.mud.yahoo.com) (68.142.206.157) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 26 Jul 2007 11:23:44 -0700 Received: (qmail 73176 invoked by uid 60001); 26 Jul 2007 18:23:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=yJRiGgL9aoSYphh9wX47imtX2QCsJK7ah3PumhL32Y/UgeU2FPT1rNVe1pg5vns1SiZh49Icq0mYEgBqcXO/J6bcK/KgFZy2y0yCEsP9fYU+x0ac5ZqRSZRJyU9mg5+Bf3eRdLlQSB52pw/pf30OZO2ALCB9S3hYKU9K7GkocyI=; X-YMail-OSG: t8i2XTAVM1lmL5n436C4iMqQB3Ac_cdPkfeDYBZROqxAiRQV.lY9vwzbenOwTrAsR62PfwU_98CEJ0nUucj_3y_ewHFpSku_7XZdiCAc.xxNt2Hq1vUORc5rzA4y6g-- Received: from [206.113.192.12] by web33508.mail.mud.yahoo.com via HTTP; Thu, 26 Jul 2007 11:23:22 PDT Date: Thu, 26 Jul 2007 11:23:22 -0700 (PDT) From: Scott Nesbitt Subject: S2: Bug in struts or dojo? was Re: S2: Getting info from server via topic To: Struts Users Mailing List In-Reply-To: <587679.91688.qm@web33504.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <866595.73047.qm@web33508.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Is this a bug in Struts 2.0.6 or Dojo 0.4? Why would there be garbage in the data argument? Is this not the right way to subscribe to a topic? Surely somebody out there is doing this. Thank you, Scott --- Scott Nesbitt wrote: > > Hmm, when I print out the value of the "data" > argument > it seems to have the complete text of the JSP (in > both > before and load sections of the function.) > > All the JavaScript and HTML is in this argument. > Could it be because this JSP is included from > another > JSP like this? > > <%@ include file="sports.jsp" %> > > Thanks for the help, > > Scott > > --- Musachy Barroso wrote: > > > Anything that you write to the output stream on > your > > action will be > > available on the "data" argument. > > > > musachy > > > > On 7/17/07, Scott Nesbitt > > wrote: > > > > > > > > > For this topic: > > > > > > dojo.event.topic.subscribe("/saveTopic", > > > function(data, type, e) > > > { > > > // data : text returned > > > // type : "before", "load" or "error" > > > // e : request object > > > if ('load' == type) > > > { > > > > > > } > > > } > > > > > > When my action on the server is successful the > > type is > > > set to load and things work great. However, I > > would > > > like to send some data back from the server also > > (in > > > the "data" arg, I presume.) > > > > > > I posted this a week ago but got no response. > Is > > this > > > better asked in the Dojo list? > > > > > > Thanks, > > > > > > Scott > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Park yourself in front of a world of choices in > > alternative vehicles. > > > Visit the Yahoo! Auto Green Center. > > > http://autos.yahoo.com/green_center/ > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > user-unsubscribe@struts.apache.org > > > For additional commands, e-mail: > > user-help@struts.apache.org > > > > > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" > > Pink Floyd > > > > > > > ____________________________________________________________________________________ > Fussy? Opinionated? Impossible to please? Perfect. > Join Yahoo!'s user panel and lay it on us. > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > For additional commands, e-mail: > user-help@struts.apache.org > > ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org