S2: Bug in struts or dojo? was Re: S2: Getting info from server via topic

2007-07-26 Thread Scott Nesbitt
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 <[EMAIL PROTECTED]> wrote: > > Hmm, when I print out the value of the "

Re: S2: Getting info from server via topic

2007-07-18 Thread Scott Nesbitt
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

Re: S2: Getting info from server via topic

2007-07-17 Thread Musachy Barroso
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 <[EMAIL PROTECTED]> wrote: For this topic: dojo.event.topic.subscribe("/saveTopic", function(data, type, e) { // data : text returned // type : "before", "l

S2: Getting info from server via topic

2007-07-17 Thread Scott Nesbitt
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. Ho