Project Review
Develop a simple student management system using pure Servlet, MySql and Bootstrap. Basically supports CRUD functionality, ie: create, read, update, delete. Also supports search functionality. Need further improvement on high efficiency sql query, high concurrency and some consideration of loading balance.
Understanding of MVC design patterns
Some frenquently used j2ee functions, includes:
- request.getParameter(): get the parameter value in the HTML form(name property).
- request.setAttribute/getAttribute(), used to retrieve value from request(send from 1 page to another).
- dispatcher.forward(request, response): forward the request to some page, be careful with the dispatcher’s constructor should be passed into value of JSP/Servlet, which can cause different effects.
Problem met in project
- When developing the update functionality, fail to update with no error show up. Try to show the id on the jsp page and found it always come to 0. Finally found that it’s due to not set up corresponding properties and set it to request attribute.
- Have difficulty with the CSS coding to properly layout the button… Waste a lot of time to adjust the button to be aligned with each other. Need further understanding of display: inline/block property, float property and BOX model(making use of margin+padding).