Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Automatic source code generation for Web application

IP.com Disclosure Number: IPCOM000015398D
Original Publication Date: 2002-Feb-28
Included in the Prior Art Database: 2003-Jun-20
Document File: 4 page(s) / 92K

Publishing Venue

IBM

Abstract

In order to develop Web applications, developers have to write programs using a programming language such as Java. This invention makes it possible to generate part of the program logic by referring design information. The design information consists of followings: Page item definition that describes the attributes of each item in the page Transaction definition that describes the relationship between items in input page, output page, and items used in program such as the query result from database. Based on above information, this generates following program logic automatically. Input data validation Format transformation for output

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 50% of the total text.

Page 1 of 4

Automatic source code generation for Web application

In order to develop Web applications, developers have to write programs using a programming language such as Java. This invention makes it possible to generate part of the program logic by referring design information.

The design information consists of followings: - Page item definition that describes the attributes of each item in the page - Transaction definition that describes the relationship between items in input page, output page, and items used in program such as the query result from database.

Based on above information, this generates following program logic automatically. - Input data validation
- Format transformation for output
- Reading the input data from browser
- Reading data in session
- Writing data for output page
- Writing data into session

Following is the technical details of this invention.
1. Page item definition This is a specification of items in a page and consists of following attributes.

The name of a page item The type of HTML component Data type Formatting information for display
· For string data: flag specifying if transforming an HTML special character into an escape character.

· For numeric data: flag specifying whether adding separator or not, separator character, separator figure flag specifying whether adding currency or not, currency character, currency position (right or left)

· For date: specifying era (Western or Japanese), output format if Western era is used, format is described using SimpleDateFormat style such as "yyyy/MM/dd". Input validation information
· For string data: - maximum and minimum length - type of acceptable characters such as alphabet (half size/full size, upper case/small case), numeric (half size/full size), Hiragana, Katakana (half size/full size), and Kanji.
- Acceptable characters - flag specifying if HTML special characters are acceptable - type of data (Zip code, phone number, e-mail address)

· For numeric data: figure of integer part and decimal fraction part, maximum value, minimum value
· For date: input format such as "yyyyMMdd"

1

Page 2 of 4

2. Transaction definition
2.1 Relationship between input and output Possible relationship between input and output is as follows:

     Input Output Description Input data Output data Input data is displayed on an output page. Input data Session data Input data is stored in the session. Input data SQL parameter Input data is used as a parameter of SQL. Session data Output data Data stored in the session is displayed on an output page.

Session data SQL parameter Data stored in the session is used as a parameter of SQL.

Query result Output data Data retrieved from DB is displayed on an output page.

Query result Session data Data retrieved from DB is stored in the session.

In the real application, the relationship between input and output is much complicated as depicted in Figure 1. Following cases should be considered.

   Input data may be copied to instance variable or temporally...