2008 Freshmen Java Project

Preview:

DESCRIPTION

2008 Freshmen Java Project. Produced by 2008 IDS Freshmen. Contents. Motivation Requirement Specification User Scenario Program Architecture Database Schema Module Function Conclusion. Motivation. Practice Java programming and Database management. - PowerPoint PPT Presentation

Citation preview

2008 Freshmen Java Project

Produced by 2008 IDS Freshmen

Copyright 2008 by CEBT

Contents

Motivation

Requirement

Specification

User Scenario

Program Architecture

Database Schema

Module Function

Conclusion

Copyright 2008 by CEBT

Motivation

Practice Java programming and Database management.

Construct a system that can use resources of lab through web effectively.

Copyright 2008 by CEBT

Requirement

Contain all resources made in lab.

Resources are used and managed through web.

Support its own search of web site.

Enable to make dynamic pages that show resources which satisfy designated conditions.

Link and show related resources in same page.

Enable to sort and search in a specific condition.

Copyright 2008 by CEBT

Specification

Type of resource

The range of type is within resources defined by Resource Management Framework Team.

Web site

Enable to join and log-in

Each resource has its specific input form.

Follow an idea of WIKI

– An Information of resource can be edited by several people.

– An attachment of files is a method that is linked to resource af-ter uploading file.

Copyright 2008 by CEBT

Specification

Dynamic view

Dynamic view is to show information referencing other re-

sources. A resource can be in several views, and can link various re-

sources.

It can show information referencing other resources in ac-cordance with relations between resources.

Copyright 2008 by CEBT

User Scenario

Front page

Top

– Log-in

– Menu

Resource: appear the menu that resource is classified.

Body

– Front Page

– This site can be showed after log-in.

Bottom

– Add : Make a new resource or dynamic view page.

– Edit : Modify the page appearing now.

– Delete : Erase the page appearing now.

– Dynamic : Set a dynamic page.

Copyright 2008 by CEBT

User Scenario

Resource view page

Left

– Arrange a type of resources.

Right

– Appear the name and list of resource that is selected.

– The list of resource can be sorted by name or title attribute.

Bottom

– Show up detail contents of selected resource.

Copyright 2008 by CEBT

User Scenario

Addition

Resource

– Decide a kind of resource.

– Display the input form of resource.

File

– File is uploaded separately.

– Enables to upload several files at once.

Copyright 2008 by CEBT

User Scenario

Edition

Modify the resource appearing now.

Show a input form classified by resource.

Edition button is activated when detail contents of resource appears.

Deletion

Erase the resource appearing now.

Show a message that asks to confirm deletion.

Deletion button is activated when detail contents of re-source appears.

Copyright 2008 by CEBT

User Scenario

Dynamic page

Dynamic view page

– Set Dynamic view page

– Decide conditions in advance.

Dynamic attribute

– Set Dynamic attribute

– Select attributes that appear when name and list of resource are showing.

Copyright 2008 by CEBT

Program Architecture

Java class

Model

– Define classes and methods of each resource.

– Bring values of resource through connecting Database.

Action

– Define classes and methods of page that appear on display.

– Process data actually.

JSP Display materials processed in Action class.

Pass event values to Java class.

Copyright 2008 by CEBT

Program Architecture

CSS

Separate page design from JSP which is concerned in dis-play.

Manage page design independently.

Properties

Manage File path and other environment variables inde-pendently.

Copyright 2008 by CEBT

Program Architecture

Action

Model

JSP

CSS

Properties

Copyright 2008 by CEBT

Database Schema

Copyright 2008 by CEBT

Module Function

Log-in and Join

Manage log-in of member and join of non-member.

login.action(LoginAction.-

java)login*.jsp

Databasejoin.action

(LoginAction.-java)

join.jsp

Database

Copyright 2008 by CEBT

Module Function

View a resource

This has 3 steps.

– Select type of resource.

– Select name during list of resource.

– Display contents of resource.

ViewResourceAction.java viewResource.jsp

Database

rm.model.*.java

Copyright 2008 by CEBT

Module Function

Add a resource

This has 3 steps.

– Select type of resource.

– Display a input form in accordance with a type of selected re-source.

– Save data.addResource.action

(AddResourceAction.-java)

addResource*.jsp

Database

rm.model.*.java

Copyright 2008 by CEBT

Module Function

Edit a resource

Display a input form in accordance with the type of re-source that appear now.

The difference between add and edit is that the contents display in input form in case of edition.

editResource.action(AddResourceAction.-

java)editResource*.jsp

Database

rm.model.*.java

Copyright 2008 by CEBT

Module Function

Delete a resource

Erase the resource that appear now.

deleteResource.action(DeleteResourceAction.-

java)deleteResource*.jsp

Database

rm.model.*.java

Copyright 2008 by CEBT

Module Function

Set dynamic page

There are 2 type of dynamic page setting.

selectDynamic.action(SelectDynamicAction.-

java)selectDynamic.jsp

AddDynamic.action(AddDynamicACtion.-

java)

setDynamicAttribute.action(SetDynamicAttributeAction.-

java)

setDynamicAttr*.jsp

Database

AddDynamic*.jsp

Copyright 2008 by CEBT

Conclusion

We studied MVC model through JSP and Struts.

Recommended