Version 6 (modified by meddle, 16 years ago) (diff) |
---|
Analysis
Overview
This task is connected to the user part of the web server. It includes user registration, creation of user profile and the change to edit it.
Task requirements
- depends on S2S_WEB_COMMONS_R1
- there should be created a working registration link and page
- the home page should be changed from login user to welcome user page
- the user profile page should be created and added in the navigation menu
- the user must have the chance to edit his/her profile
- there is no need to be beautiful, the important part is to communicate correctly with the database and show the results as JSPs.
Task result
Pages and links about:
- user registration
- user profile(or username's profile)
- editing profile
Implementation idea
- Use the service package and its user and group classes for managing the users.
- Create servlets in webapp package to handle the information from the new jsps.
Related
S2S_WEB_COMMONS_R0
S2S_WEB_COMMONS_R1
S2S_DEPLOY_TECHNOLOGIES_R0
S2S_PERSISTENCE_COMMONS_R0
S2S_CORE_SECURITY_R0
How to demo
- register a user
- show the new user pages
Design
The user related content at that stage will consist of four jsp pages. register.jsp, index.jsp (home page), edit_profile.jsp and one additional page that will not function for now lost_password.jsp. There will be also some servlets working like redirectorers and action executors between the jsps. These servlets for now will be RegisterServlet and ProfileEditorServlet.
- The registration logic will use register.jsp and the RegisterServlet.
- The register.jsp page will have form containing all of the user fields + some additional The fields are :
- Field for the username of the new user.
- Two fields for the password one to type it and one to type it again to be sure.
- Two fields for the email address one to type it and one to retype it for sure.
- For the optional fields affiliation, about_me, full name, website there will be entries too.
- For the photo, there will be only text field for outer url for now, but in the future users will be able to upload photos for themselves.
- The register.jsp page will be able to pass it's parameters by post query to the RegisterServlet, which will check them and:
- If the parameters are accurate (the two passwords and emails match, the username is not registered already, etc) The new user will be registered using the UserService.register method, logged in using the UserService.login method and redirected to the home page (index.jsp) with greeting.
- If the parameters are not accurate the user will be redirected back to the register.jsp page with proper message.
- The register.jsp page will have form containing all of the user fields + some additional The fields are :
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)