But the tag does it for you. Do you mean that you want to do it yourself (like, just for fun, it isn't any fun at all :) )?
regards musachy On 10/11/07, Julien Leonard <[EMAIL PROTECTED]> wrote: > > If fact, I don't need anymore to do this. > But i'm curious ! > > In fact, I want to send an ajax request with the same way of Ajax Struts > tag, but in javascript. > I want to put the result of this request in a div. > > Julien > > -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Ted > Husted > Envoyé : mercredi 10 octobre 2007 19:12 > À : Struts Users Mailing List > Objet : Re: [S2] Send a request AJAX in JS > > You don't need to do anything special to make the request. Any standard Ajax > approach will work just fine. The request can be to a servlet or other > resource, or to a Struts 2 Action. If it's to a Struts 2 Action, it should > return a HTML/Text result, or use the JSON plugin. > > * http://struts.apache.org/2.x/docs/ajax.html > > The real question is what do you want to do with the response? Without that > information, there's no good way to answer this question. When used with the > Struts 2.0 Ajax theme, some of the Struts tags have some Ajax capability, > but the key point is what the tags do with the response. > > HTH, Ted > http://www.catb.org/~esr/faqs/smart-questions.html > > > On 10/9/07, Julien Leonard <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > I want to make an ajax request (with a target) in a javascript function. > > In fact, I want to do what this does : > > <:a href="url" theme="ajax" targets="target1">Make request</s:a> > > > > but in a fonction javascript. > > > > Somone know how to do that with struts 2.0.9 ? > > > > Julien > > > > > > This e-mail, any attachments and the information contained therein ("this > message") are confidential and intended solely for the use of the > addressee(s). If you have received this message in error please send it back > to the sender and delete it. Unauthorized publication, use, dissemination or > disclosure of this message, either in whole or in part is strictly > prohibited. > > ********************************************************************** > > Ce message electronique et tous les fichiers joints ainsi que les > informations contenues dans ce message ( ci apres "le message" ), sont > confidentiels et destines exclusivement a l'usage de la personne a laquelle > ils sont adresses. Si vous avez recu ce message par erreur, merci de le > renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, > totale ou partielle ou divulgation sous quelque forme que se soit non > expressement autorisees de ce message, sont interdites. > > ********************************************************************** > > > > > > > -- > HTH, Ted <http://www.husted.com/ted/blog/> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]