Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Build a shopping cart application using XForms

XForms essentials to get started creating real-world XForms applications

Steve K Speicher (sspeiche@us.ibm.com), Senior Software Engineer, EMC
Steve Speicher is an IBM Senior Software Engineer working on emerging standards, both infrastructure based and industry verticals (healthcare). He is a member of the W3C Compound Document Formats Working Group, he led the development of the Compound XML Document Toolkit, and he uses Model-Driven Development (MDD) to improve the development of standards. He has previously worked on change and release management tools in the Rational division and in IBM internal tools.
(An IBM developerWorks Contributing Author)
Keith Wells, Advisory Software Engineer, EMC
Keith Wells is a software engineer at IBM in Research Triangle Park, N.C. Mr. Wells has been involved with Emerging Technologies and the Emerging Technologies Toolkit for several years. Currently, he is exploring opportunities with compound documents, model-driven development, software standards, and XML-based technologies.
Jan J. Kratky, Senior Software Engineer, EMC
Jan Joseph Kratky, the development lead for the XML Forms Generator and Visual XForms Designer, is a member of the W3C XForms Working Group. A Sun Certified Java Programmer and Sun Certified Web Component Developer, Mr. Kratky has worked with Java technologies since 1997 and with Eclipse technologies since 2001. He is currently a software engineer with IBM Emerging Software Standards in Research Triangle Park, N.C.
Kevin Kelly, Senior Technical Staff Member, EMC
Kevin E. Kelly is an IBM senior technical staff member who works on emerging software standards for the Web and the healthcare industry. Mr. Kelly is chairman of the Worldwide Web Consortium (W3C) Compound Document Formats (CDF) Working Group, member of the W3C Hypertext Coordination Group, and has been a member of the W3C XForms Working Group. He is also a member of the Health Level 7 (HL7) organization and works on Service Oriented Architecture (SOA) initiatives in HL7 and the Object Management Group (OMG). His focus is on developing open standards-based technologies for faster, more efficient standards adoption through XML-based and model-driven technologies.

Summary:  This tutorial focuses on key aspects of the W3C XForms 1.0 standard to produce a fully functional Web-based shopping cart. With this approach, the reader will get a good start at creating real-world applications with XForms, without having to learn the entire XForms specification.

Date:  12 Dec 2006
Level:  Intermediate

Activity:  8552 views
Comments:  

Conclusion

Summary

In this tutorial, we built a very functional shopping cart using XForms; starting with data schema and instance definitions and then adding incremental shopping cart features for input, structuring and formatting, calculating, validating, and even user hints. Some other techniques are valid in building such applications with XForms, as always it just depends on the situation at hand. With the capability learned thus far, it is possible to add more advancements to the shopping cart. Enhancements could be another checkout page for collecting payment information, only collecting warranty information at checkout, product details page, and more. In order to achieve these enhancements and learn more about XForms capabilities and techniques, see the resources section for books, specifications, and article links.

5 of 8 | Previous | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML, Web development
ArticleID=183062
TutorialTitle=Build a shopping cart application using XForms
publish-date=12122006
author1-email=sspeiche@us.ibm.com
author1-email-cc=dwxed@us.ibm.com
author2-email=wellsk@us.ibm.com
author2-email-cc=dwxed@us.ibm.com
author3-email=kratky@us.ibm.com
author3-email-cc=dwxed@us.ibm.com
author4-email=kekelly@us.ibm.com
author4-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.