2008 freshmen java project produced by 2008 ids freshmen

22
2008 Freshmen Java Project Produced by 2008 IDS Freshmen

Upload: imogene-holt

Post on 18-Jan-2018

230 views

Category:

Documents


0 download

DESCRIPTION

Copyright  2008 by CEBT Motivation  Practice Java programming and Database management.  Construct a system that can use resources of lab through web effectively.

TRANSCRIPT

Page 1: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

2008 Freshmen Java Project

Produced by 2008 IDS Freshmen

Page 2: 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

Page 3: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

Copyright 2008 by CEBT

Motivation Practice Java programming and Database management. Construct a system that can use resources of lab through web

effectively.

Page 4: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 5: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 6: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 7: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 8: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 9: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 10: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 11: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 12: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 13: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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.

Page 14: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

Copyright 2008 by CEBT

Program Architecture

Action

Model

JSP

CSS

Properties

Page 15: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

Copyright 2008 by CEBT

Database Schema

Page 16: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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

Page 17: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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

Page 18: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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

Page 19: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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

Page 20: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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

Page 21: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

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

Page 22: 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

Copyright 2008 by CEBT

Conclusion We studied MVC model through JSP and Struts.