Frank I dont want to update all the jsp page, only the last name text field, I am able to do so if i do PrintWriter out = response.getWriter(); out.println(last); return null;
but suppose, i have 10-15 fields that need to be updated, how will i pass data ack to jsp Is there a way to pass java object to jsp, and then some how refresh these 10-15 fields. I dont want to write html generating code in ActionClass, but just send data and jsp handle it. and refresh those 10-15 fields I have looked at DWR also, but it only handles Java Beans, how do i make it call ActionClass, i need this because i have to get information about session, request, servlet context and then process data. Is it possible to do get all this information using DWR and also about security, i have ServletFilter in place which checks few things for security, how will it be affected uwing DWR Ashish --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > 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] > > A$HI$H __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]