Hi Martin
I dont want to fillup the post with clutter.  The action elements of the file 
are normal.  

What I was able to reproduce was that if I enter the action with an Ajax call, 
using prototype, and return with mapping.getInputForward(), the session objects 
do not get updated; even though I update them in the action.  If, however I 
enter the action with a click off a html:submit button the session objects do 
get updated and I see the current values on the form.  I never expected that.  
Should processing through an action and the updating of the session objects, be 
the same however the action was called?  

--- On Tue, 7/21/09, Martin Gainty <mgai...@hotmail.com> wrote:

From: Martin Gainty <mgai...@hotmail.com>
Subject: RE: Struts w/Ajax with Struts again
To: "Struts Users Mailing List" <user@struts.apache.org>
Date: Tuesday, July 21, 2009, 3:08 PM



post the complete contents of struts-config.xml
event timing is crucial specifically you'll need your Ajax control to detect 
ON_COMPLETE
a fairly comprehensive example of handling ON_COMPLETE at 
http://struts.apache.org/2.0.14/docs/ajax-validation.html


any objections to using new version struts-2.1.6..its stable enough for G/A?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.?
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 21 Jul 2009 10:09:43 -0700
> From: cpa...@yahoo.com
> Subject: RE: Struts w/Ajax with Struts again
> To: user@struts.apache.org
> 
> Hi Martin
> Yes, I did in the line defining both the initial action to bring up the form 
> and the action tasked with processing the Ajax call.  Also I put in the Ajax 
> processing action specific setSeeMe("fromAjaxAction") and set that in both 
> the request and the session objects.  Still nothing but what the first 
> default process set.  The changes set in the Ajax action did not show no 
> matter what life-cycle object they were put in nor what scope the action was 
> defined.  This should not be the case, correct?  If I set the scope to 
> request, and if I set a change in a actionForm and set it in the request, I 
> should see it on the forwarded form.  tia.
> 
> --- On Mon, 7/20/09, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> From: Martin Gainty <mgai...@hotmail.com>
> Subject: RE: Struts w/Ajax with Struts again
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Monday, July 20, 2009, 10:18 AM
> 
> 
> did you check scope="request" in struts-config.xml 
> 
> as earlier suggested
> 
> Martin Gainty 
> ______________________________________________ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> 
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
> 
> 
> 
>  
> 
> > Date: Mon, 20 Jul 2009 03:36:36 -0700
> > From: cpa...@yahoo.com
> > Subject: Re: Struts w/Ajax with Struts again
> > To: user@struts.apache.org
> > 
> > Hi PW
> > But I cant access the session objects with JS, nor can I iterate the 
> > collections I have in the session to display the updated values that were 
> > written in the Ajax processing action.  Correct?
> > 
> > --- On Mon, 7/20/09, Paweł Wielgus <poulw...@gmail.com> wrote:
> > 
> > From: Paweł Wielgus <poulw...@gmail.com>
> > Subject: Re: Struts w/Ajax with Struts again
> > To: "Struts Users Mailing List" <user@struts.apache.org>
> > Date: Monday, July 20, 2009, 2:18 AM
> > 
> > Hi cpanon,
> > 
> > > I am looking for the simplest technique that would reprocess the session 
> > > objects from the new values, regenerate the full jsp,
> > 
> > then just refresh the whole page, by javascript after completion of ajax.
> > Or do not use ajax at all, this will be most simple solution for You.
> > 
> > Best greetings,
> > Paweł Wielgus.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> > 
> 
> _________________________________________________________________
> Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. 
> Check it out.
> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports


_________________________________________________________________
NEW mobile Hotmail. Optimized for YOUR phone.  Click here.
http://windowslive.com/Mobile?ocid=TXT_TAGLM_WL_CS_MB_new_hotmail_072009

Reply via email to