1 / 22

2008 Freshmen Java Project

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.

donkor
Télécharger la présentation

2008 Freshmen Java Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 2008 Freshmen Java Project Produced by 2008 IDS Freshmen

  2. Contents • Motivation • Requirement • Specification • User Scenario • Program Architecture • Database Schema • Module Function • Conclusion

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

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

  13. 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.

  14. Model CSS Action JSP Properties Program Architecture

  15. Database Schema

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. deleteResource.action (DeleteResourceAction.java) deleteResource*.jsp rm.model.*.java Database Module Function • Delete a resource • Erase the resource that appear now.

  21. 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

  22. Conclusion • We studied MVC model through JSP and Struts.

More Related