Re: Ajax - obtaining a method result

2007-02-13 Thread Frank W. Zammetti
FYI, if you *do* want or need to return XML, there is one way to make it at least a little less painful: the JavaScript implementation of Commons Digester JSDigester: http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/jstags/JSDigesterTag.html Full-blown example can be seen in the J

Re: Ajax - obtaining a method result

2007-02-13 Thread Musachy Barroso
If you are making the call using the anchor or submit tag in the ajax theme, the returned text is available as a parameter(first parameter, when "type" is load) to the "notifyTopics", see: http://cwiki.apache.org/WW/ajax-tags.html If you are going to use Dojo directly,: dojo.io.bind({

RE: Ajax - obtaining a method result

2007-02-13 Thread Wesley Wannemacher
bruary 13, 2007 1:14 PM > To: Struts Users Mailing List > Subject: RE: Ajax - obtaining a method result > > Struts 1 or Struts 2? > > Assuming Struts 2, I'll answer as best as I can. > > You'll have to code an action around calling this 'method.' >

RE: Ajax - obtaining a method result

2007-02-13 Thread Wesley Wannemacher
Struts 1 or Struts 2? Assuming Struts 2, I'll answer as best as I can. You'll have to code an action around calling this 'method.' For instance, say the method you want to call is in a class called Foo and the method is called bar(). If the result of bar() is a String and this result is what you'