On Mon, April 3, 2006 1:19 pm, Ashish Kulkarni said: > In Struts, i want to populate ActionForm, and then > refresh jsp page
This is pretty much the exact opposite of what AJAX is for :) Refreshing the whole page is what your actually tring to avoid with AJAX. You can populate the form fields yourself in a Javascript callback function, or I suppose you could fire off a refresh of the page from a callback if you really wanted to do that. Have a look here: http://www.omnytex.com/articles This has an article about doing AJAX with Struts, and shows some examples of updating form fields. You may also want to see this Wiki page: http://wiki.apache.org/struts/AjaxStruts And, if you don't feel like writing the client-side code yourself, have a look at this library: http://javawebparts.sourceforge.net Specifically, click the Javadocs link, and then navigate to the AjaxTags package. This is a taglib for implementing AJAX in an application, Struts or otherwise, in a completely declarative fashion, without having to write a lot (or any!) Javascript yourself. Alternatively, I'm a big fan of DWR: http://getahead.ltd.uk/dwr Although AjaxTags will save you from writing a lot of script yourself, DWR is a more RPC-like mechanism, and handles transmutation of Java objects to Javascript objects, and really works very well. > Ashish Frank --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]