Title: JSP/Servlet-Based Web Application Generator
1JSP/Servlet-Based Web Application Generator
- Kornkamol Jamroendararasame,
- Tetsuya Suzuki, and Takehiro Tokuda
- Tokyo Institute of Technology
2Contents
- Motivation
- Goals
- Web transition diagrams
- A Web application generator T-Web system for
JSP/Servlets - Comparisons
- Conclusions and future work
3Motivation
- Web application generating methods
- Web page composers manual programming
- Web application development tools
- Microsofts Visual Interdev
- Cybozus Cybozu office
- Multiactives ecBuilder
-
- Web transition diagrams T-Web system (for
CGI-based Web applications only)
4Goals
- Web transition diagrams representing both
CGI-based Web applications and JSP/Servlet-based
Web applications - a JSP/Servlet-based Web application generator
- Support standard level of security and session
management - No procedural programming
5Web transition diagrams
6Definitions
- Describe overall behavior of Web applications by
showing the movement of data through system
components - Previous version for CGI architecture
- Current version for both CGI architecture and
JSP/Servlet architecture - Classification of notation
- Core class
- Extended class
7Notation (1)
title
title
Fixed Web page node Output Web page node
name
name
Processing node Database node
Page transition link
Data-flow link
Core Class
8Notation (2)
Web page elements
9Example 1
I
II
Guestbook system
10Example 2
BookCD online shopping system
11Web Application Generator T-Web System for
JSP/Servlets
12Structure
EDITOR
Editor Part
a Web transition diagram and global parameters
GENERATOR
Generator Part
13Editor part
Processing program (servlet) templates template
description
EDITOR
Bean templates template description
Global parameter property box
Editor Part
14(No Transcript)
15(No Transcript)
16List of bean types
Required parameters
17Preview panel
Data-flow links to processing programs
18(No Transcript)
19List of template types
Template explanation
20Lists of available values
Required parameters
Specified values
21Styles of output database information
22(No Transcript)
23For page transition links
For data-flow links
24List of HTML element types
25For set/get bean properties
For direct connection from database table
26Allow database info from processing program to be
shown
27(No Transcript)
28(No Transcript)
29(No Transcript)
30(No Transcript)
31(No Transcript)
32Structure
Templates
EDITOR
Editor Part
a Web transition diagram and global parameters
Web Application
GENERATOR
Generator Part
33Generator part
GENERATOR
- Web page structure template
- HTML element templates
- JSP element templates
Database table creator program template
T-Web libraries
Session object template
Business bean templates
Generator Part
34Click to generate resulting files
35Finish when this box disappears
36(No Transcript)
37Template method
- Generality
- Large number of templates is not necessary.
- Templates themselves must be flexible.
- Sufficiency
- 15 servlet templates for all basic database
transactions and some other facilities. - 5 bean templates for general purposes
- Flexibility
- Available templates are changeable.
- New templates can be easily added.
- Non-programmers use existing templates, while
programmers may use their own templates.
38Security and session management
- Standard level of security management
- Checking values of input parameters before
passing them to processing programs - restricted length of input parameters,
- Session management
- can be done automatically by input-checking codes
in servlet templates. - can be manually managed using cookies when
composing Web transition diagrams.
39Comparisons
Previous version Current version
Web transition diagrams For CGI architecture Basic components For both CGI and JSP/Servlet architecture Basic components in Core class Other necessary components in extended class
T-Web system For CGI-based Web applications Templates and their parameters are fixed. For JSP/Servlet-based Web applications More flexibility existing templates are changeable and new templates can be added.
40Conclusions and Future Work
- Web transition diagrams representing both
CGI-based and JSP/Servlet-based Web applications - T-Web system generating JSP/Servlet-based Web
applications - Handling of atomic transactions consisting of two
or more actions will be the future work.