Quantcast

Java Tip 136: Protect Web application control flow

Get the WebProNews Newsletter:


[ Technology]

Web application designers and programmers often face situations where a form submission must be protected against a rupture in the normal control flow sequence. This situation typically occurs when a user clicks more than once on a submit button before the response is sent back or when a client accesses a view by returning to a previously bookmarked page.

Control flow sequence is particularly important to preserve when form submission involves transaction processing on the server.

This article proposes a well-encapsulated solution to this problem: a strategy implemented as an abstract class that leverages the Struts framework. Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.

Click below to read this article at the JavaWorld.com website:

http://www.javaworld.com

For an audience that demands comprehensive, hands-on information about the news and trends in Java technology, no other information source can match JavaWorld’s content. JavaWorld is assembled by an award-winning editorial team and authored by seasoned Java developers and industry experts. Articles feature live applets, cut-and-paste code, and the opportunity for community feedback and dialogue through comment fields and Internet surveys. JavaWorld reaches high-level decision-makers looking for the latest Java enterprise applications and development products.

Java Tip 136: Protect Web application control flow
Comments Off
About JavaWorld.com
For an audience that demands comprehensive, hands-on information about the news and trends in Java technology, no other information source can match JavaWorld's content. JavaWorld is assembled by an award-winning editorial team and authored by seasoned Java developers and industry experts. Articles feature live applets, cut-and-paste code, and the opportunity for community feedback and dialogue through comment fields and Internet surveys. JavaWorld reaches high-level decision-makers looking for the latest Java enterprise applications and development products. WebProNews Writer
Top Rated White Papers and Resources

Comments are closed.

  • Join for Access to Our Exclusive Web Tools
  • Sidebar Top
  • Sidebar Middle
  • Sign Up For The Free Newsletter
  • Sidebar Bottom