220 likes | 350 Views
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.
E N D
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. • Construct a system that can use resources of lab through web effectively.
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.
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 after uploading file.
Specification • Dynamic view • Dynamic view is to show information referencing other resources. • A resource can be in several views, and can link various resources. • It can show information referencing other resources in accordance with relations between resources.
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.
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.
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 atonce.
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 resource appears.
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.
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.
Program Architecture • CSS • Separate page design from JSP which is concerned in display. • Manage page design independently. • Properties • Manage File path and other environment variables independently.
Model CSS Action JSP Properties Program Architecture
join.action (LoginAction.java) join.jsp Database login.action (LoginAction.java) login*.jsp Database Module Function • Log-in and Join • Manage log-in of member and join of non-member.
ViewResourceAction.java viewResource.jsp rm.model.*.java Database Module Function • View a resource • This has 3 steps. • Select type of resource. • Select name during list of resource. • Display contents of resource.
addResource.action (AddResourceAction.java) addResource*.jsp rm.model.*.java Database Module Function • Add a resource • This has 3 steps. • Select type of resource. • Display a input form in accordance with a type of selected resource. • Save data.
editResource.action (AddResourceAction.java) editResource*.jsp rm.model.*.java Database Module Function • Edit a resource • Display a input form in accordance with the type of resource that appear now. • The difference between add and edit is that the contents display in input form in case of edition.
deleteResource.action (DeleteResourceAction.java) deleteResource*.jsp rm.model.*.java Database Module Function • Delete a resource • Erase the resource that appear now.
selectDynamic.action (SelectDynamicAction.java) selectDynamic.jsp AddDynamic.action (AddDynamicACtion.java) setDynamicAttribute.action (SetDynamicAttributeAction.java) Database setDynamicAttr*.jsp Module Function • Set dynamic page • There are 2 type of dynamic page setting. AddDynamic*.jsp
Conclusion • We studied MVC model through JSP and Struts.