You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "A.Mohan" <am...@yahoo.co.in> on 2006/08/22 13:27:51 UTC
AJAX + Struts
Dear All,
How can i use Ajax with struts ,
Thanks and Regards
Mohan
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
Re: AJAX + Struts
Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
In short: it depends on what your passing in to the server. If you do
regular POSTs and GETs, you can write Actions, just like always, there is
zero difference. If you want to pass JSON or XML, then you'll have to add
some code to handle that, either modifying the RP (or RP chain in 1.3), or
else handle it in your Action. Or write a servlet. AJAX doesn't
fundamentally change what you do on the server (in most cases... something
like DWR is an exception, although under the covers, not really!).
Take a peek at the AjaxChat example mentioned on that Wiki page... this is
a Struts app using plain AJAX (i.e., no library). It's just plain old
Struts, no modifications or anything to it.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
On Tue, August 22, 2006 1:06 pm, Nikhil Walvekar wrote:
> Hello,
>
> I have some questions, what should be used on server side?
> we send XMLHttpRequest from client it should be received in action or we
> have to write servlet to process it?
>
> If we can use action, then what should be forward for that action.
>
> Thanks and Regards,
> Nikhil
>
>
> On 8/22/06, Puneet Lakhina <pu...@gmail.com> wrote:
>>
>> > http://wiki.apache.org/struts/AjaxStruts.
>> >
>> There is a lot of fantastic info there.. thanks!!!
>>
>> --
>> Puneet
>>
>>
>
>
> --
> Nikhil
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: AJAX + Struts
Posted by Nikhil Walvekar <wa...@gmail.com>.
Hello,
I have some questions, what should be used on server side?
we send XMLHttpRequest from client it should be received in action or we
have to write servlet to process it?
If we can use action, then what should be forward for that action.
Thanks and Regards,
Nikhil
On 8/22/06, Puneet Lakhina <pu...@gmail.com> wrote:
>
> > http://wiki.apache.org/struts/AjaxStruts.
> >
> There is a lot of fantastic info there.. thanks!!!
>
> --
> Puneet
>
>
--
Nikhil
Re: AJAX + Struts
Posted by Puneet Lakhina <pu...@gmail.com>.
> http://wiki.apache.org/struts/AjaxStruts.
>
There is a lot of fantastic info there.. thanks!!!
--
Puneet
Re: AJAX + Struts
Posted by Bart Busschots <ba...@so-4pt.net>.
Go to Google, type in "Ajax struts" and RTFM. Just looking at the first
page of results I'd strongly suggest reading
http://wiki.apache.org/struts/AjaxStruts.
A.Mohan wrote:
> Dear All,
>
> How can i use Ajax with struts ,
>
> Thanks and Regards
> Mohan
>
>
> ---------------------------------
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org