addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [ljc] Redirect after post...

From: andrew
Sent on: Monday, February 18, 2013 8:36 AM
Um, isn't post-redirect-get just used for posts? And by that i mean any submission that changes the software (ie database) state? 

And i am a bit unsure about your use of it. The point of the whole exercise is to allow the user to bookmark or otherwise revisit (back button, anyone?) the "result" or confirmation page without triggering any work in the server. Or getting that warning browsers give about resending data.
In your example of the login, grandma (or whoever is bookmarking confirm pages these days) is going to see an error message when she revisits the page, and assume she's been hacked. 
As a result, Knowing grandma, she'll probably change all her bank and personal info, and move to argentina to live to the end of her days. Not cool, dude.
More savvy users will end up being agitated that they cannot use the backbutton as they always have.
Also a bit unsure on your rational - for those pages, you just return a redirect to the confirm page itself. Typically with most web frameworks ( and even without! ) this is a trivial task.

I haven't done web development in a while, so i don't recognise the terms "web form" and "form", am sure someone else here will provide some enlightenment. (I would argue that it isn't so much about whether you're submitting a form or not as to whether the request is "idempotent" or not.)

Andrew


On Feb 18, 2013, at 7:00, Wesley Hall <[address removed]> wrote:

> Hey folks,
> 
> I am interested in views on the 'Post-Redirect-Get' pattern of form
> handling. Just had a fairly lively discussion on this at the office
> and I am interested to get other opinions.
> 
> It's a technique that I personally, use when I feel it is warranted,
> rather than as a matter of course. For example, when it comes to forms
> that will naturally reject multiple submissions (for example, a signup
> form, where a repeat submission will result in an 'account already
> exists' error), I tend not to use the pattern, mostly since it avoids
> slightly more complicated handling code on the server, and having to
> float error messages around in sessions.
> 
> We also have opinions here that the pattern should be used for every
> form submissions as a matter of course, and that web form submissions
> should be handled using AJAX (I have some sympathy with this
> suggestion, despite the extra complexity since it allows for fairly
> fine-grained control over refresh and back-button behaviour).
> 
> Anyone have any specific thoughts on this? Keen to hear some opinions.
> 
> Regards
> 
> Wes
> 
> 
> 
> 
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
> http://www.meetup...­
> This message was sent by Wesley Hall ([address removed]) from LJC - London Java Community.
> To learn more about Wesley Hall, visit his/her member profile: http://www.meetup...­
> Set my mailing list to email me
> 
> As they are sent
> http://www.meetup...­
> 
> In one daily email
> http://www.meetup...­
> 
> Don't send me mailing list messages
> http://www.meetup...­
> Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]
> 

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference in collaboration with the LJC, 8-10th June 16

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • IBM

    Build Enterprise-grade apps at start-up speed.

  • New Relic

    New Relic makes sense of billions of metrics a day in real time.

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy