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: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> wrote:
>>
>> > http://wiki.apache.org/struts/AjaxStruts.
>> >
>> There is a lot of fantastic info there.. thanks!!!
>>
>> --
>> Puneet
>>
>>
>
>
> --
> Nikhil
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to