The Artima Developer Community
Sponsored Link

Java Buzz Forum
302 Borked Framework

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bill de hÓra

Posts: 1137
Nickname: dehora
Registered: May, 2003

Bill de hÓra is a technical architect with Propylon
302 Borked Framework Posted: Aug 29, 2004 6:16 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Bill de hÓra.
Original Post: 302 Borked Framework
Feed Title: Bill de hÓra
Feed URL: http://www.dehora.net/journal/atom.xml
Feed Description: FD85 1117 1888 1681 7689 B5DF E696 885C 20D8 21F8
Latest Java Buzz Posts
Latest Java Buzz Posts by Bill de hÓra
Latest Posts From Bill de hÓra

Advertisement
Horrible advice. But highly expedient if you're writing web apps in Java frameworks such as Struts. Some outtakes: "The convenience of caching affects standard behavior... Result page must not be returned in response to POST request, because attempt to reload it would cause double submit problem. Instead, browser must load result page separately, using GET method... Caching must be prohibited for web applications... The answer to double submit problem is redirection... It is interesting that PRG pattern exploits non-standard behavior of browsers and web servers." This article assumes the network is reliable, latency is zero and Java frameworks are architecturally significant :) Unfortunately, HTTP is an unreliable stateless protocol. Redirects and magic tokens can't help if the webapp crashes or the network goes to hell between a submit and a response, or someone uses a spec-conformant browser (don't even get me started on promoting a software pattern that relies on browser bugs :). An alternative answer to double submit is to provide the client with a one-shot URI that can only be submitted to at-most-once. The second time that request reaches the server it can tell the user the action has already been performed. Caching you don't have to worry about because you sent the one-shot URI for use in a POST method not some combination of GET/pragma/transaction-token. GET can be used for telling whoever is interested the status of the request (the URI can also act as a ticket). MVC is web poison....

Read: 302 Borked Framework

Topic: Java Opinions Geary vs Raible on JavaServer Faces Previous Topic   Next Topic Topic: Null-less Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use