JSP: Creating Dynamic Forms

Dynamic forms are a part of most serious web site. A typical use includes forms presented with a variable number of items ordered on a commerce site. Learn how to create your own dynamic forms using JSP.

provided by: 
Originally published at Internet.com


Generating dynamic content in Web applications is important when the content must reflect the most current and available data and personalized information One of the main advantages of JavaServer Pages is the ability to generate dynamic content. JSPs generate dynamic HTML pages by using Java control structures like for loops and if statements. As a result, forms can be generated dynamically following some specified logical layout.

Dynamic Forms



You can dynamically generate HTML forms by following a layout specification that a JSP code can use to create the form. This is especially useful when forms are used to gather information as part of a collection of data or a sequence.

One possible use of dynamic forms, together with dynamic tables, is an online-shopping cart. A shopping cart lists the items a user intends to purchase and information like: individual prices, short descriptions, quantities, subtotals, and a grand total of the purchase. The shopping cart can be created by combining HTML forms and tables. The table would tabulate the items in separate rows, with the information for each item filling different columns.

The form would gather the quantities for each item, so that subtotals can be computed for each item in the shopping cart. The user can input the quantities for each item (default would be 1) and they would click on a button that would refresh the cart when a change would be made. The rows of the table would be created using a for loop, and an INPUT field (TYPE=TEXT) would be inserted in the appropriate column for each of the items...

Read article at Internet.com site
Regional Articles
- JSP: Creating Dynamic Forms Alabama
- JSP: Creating Dynamic Forms Alaska
- JSP: Creating Dynamic Forms Arizona
- JSP: Creating Dynamic Forms Arkansas
- JSP: Creating Dynamic Forms California
- JSP: Creating Dynamic Forms Colorado
- JSP: Creating Dynamic Forms Connecticut
- JSP: Creating Dynamic Forms DC
- JSP: Creating Dynamic Forms Delaware
- JSP: Creating Dynamic Forms Florida
- JSP: Creating Dynamic Forms Georgia
- JSP: Creating Dynamic Forms Hawaii
- JSP: Creating Dynamic Forms Idaho
- JSP: Creating Dynamic Forms Illinois
- JSP: Creating Dynamic Forms Indiana
- JSP: Creating Dynamic Forms Iowa
- JSP: Creating Dynamic Forms Kansas
- JSP: Creating Dynamic Forms Kentucky
- JSP: Creating Dynamic Forms Louisiana
- JSP: Creating Dynamic Forms Maine
- JSP: Creating Dynamic Forms Maryland
- JSP: Creating Dynamic Forms Massachusetts
- JSP: Creating Dynamic Forms Michigan
- JSP: Creating Dynamic Forms Minnesota
- JSP: Creating Dynamic Forms Mississippi
- JSP: Creating Dynamic Forms Missouri
- JSP: Creating Dynamic Forms Montana
- JSP: Creating Dynamic Forms Nebraska
- JSP: Creating Dynamic Forms Nevada
- JSP: Creating Dynamic Forms New Hampshire
- JSP: Creating Dynamic Forms New Jersey
- JSP: Creating Dynamic Forms New Mexico
- JSP: Creating Dynamic Forms New York
- JSP: Creating Dynamic Forms North Carolina
- JSP: Creating Dynamic Forms North Dakota
- JSP: Creating Dynamic Forms Ohio
- JSP: Creating Dynamic Forms Oklahoma
- JSP: Creating Dynamic Forms Oregon
- JSP: Creating Dynamic Forms Pennsylvania
- JSP: Creating Dynamic Forms Rhode Island
- JSP: Creating Dynamic Forms South Carolina
- JSP: Creating Dynamic Forms South Dakota
- JSP: Creating Dynamic Forms Tennessee
- JSP: Creating Dynamic Forms Texas
- JSP: Creating Dynamic Forms Utah
- JSP: Creating Dynamic Forms Vermont
- JSP: Creating Dynamic Forms Virginia
- JSP: Creating Dynamic Forms Washington
- JSP: Creating Dynamic Forms West Virginia
- JSP: Creating Dynamic Forms Wisconsin
- JSP: Creating Dynamic Forms Wyoming

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML