Michal Charemza wrote:
>> You are barking up the wrong tree.  The proper way to do this is:
>>
>> - POST a form
>> - if validation succeeds, process the data in your actions  
>> 'executeWrite' and then redirect
>> - if validations fails or another error occured, don't redirect.  
>> Display the form with all the error messages.
>>
>> No need to store the errors in a session or the like.
> Although (obviously!!) I am not experienced in this, I have read pages  
> like http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost 
>   . This page specifically says "Never show pages in response to POST  
> ". 

I didn't read the article and all its reasoning but I'd say the rule 
should be "Never show pages in response to a _succesfull_ POST." If the 
user sends invalid data I think it's OK to show the same page again. And 
this is something Agavi - with the help of AgaviFormPopulationFilter - 
makes so so easy.


-veikko

-- 
Veikko Mäkinen
[email protected]
044 5910 413
http://blog.veikko.fi

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to