Michal Look at the way in which the sample app handles form submission for the login action. There are 3 views for the action, Success, Input and Error. The pre-defined methods in the action let you return which view to serve. You need executeWrite which is called for POST submits, handleError for errors and the standard getDefaultView It is through these methods in the Action that you determine what View to serve. If Input is to contain your form, the suggestion is instead of showing an error show the Input view instead so they don't need to go back and forth.
Sent from iPhone On 15 Feb 2009, at 10:17, Michal Charemza <[email protected]> wrote: > > On 14 Feb 2009, at 21:22, Michal Charemza wrote: >> - There will be an external redirect to the original page in all >> cases: valid & invalid input. This seems a bit unnecessary > Looking into the Post/Redirect/Get issues, maybe this isn't > unnecessary. I have seen people recommend to redirect to a GET for > *every* POST submission. Would this require a dependence on session > variables, and so on cookies, which some people have disabled > though...? > > Michal. > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
