FAQ
How parallel development is possible
The project leader divides the team into two parts
Part 1: web authors
These programmers take care of presentation logic by using jsp, html
Part 2: J2ee developers:
These programmer develop business logic and persistence logic by using j2ee , 3rd party technologies
FAQ
Can we change the roles of various technologies that are used in MVC architecture based web application development?
A) Yes, it is possible but not recommended to do
Scenario 1 (servlet as view component)
1. the presentation logic of web site will change at regular intervals
2. when modification is done in the source code of servlet we need to recompile the servlet and we need to reload the web application
3. Modification done in jsp source code will be effected without recompilation of jsp and reloading effected without recompilation of jsp and reloading of web application. so it is recommended to take jsp as view layer components by placing presentation logic
Scenario 2 (jsp as controller)
1. if always recommended to develop jsp as java code less jsp to increase readability of jsp
2. when jsp is taken as controller we need to place statements to interact with model layer component like ejb components and spring application
3. But this is not a industry standard to work with jsp.
4. jsp technology doesn’t provide any predefines tags to communicate with ejb components, spring app and etc model components
5. due to this we recommended to take servlet as controller
Scenario 3 (ejb component/spring application/ hibernate application as view layer/controller layer component)
1. only web resource programs like servlet, jsp programs which can work with http protocol request response, operation can be used as controller and view layer components
2. since ejb component, spring app and hibernate app are not web components and since they can’t directly deal with http request and response operation is not possible to take them as controller layer and view layer components
Scenario 4 (another servlet/jsp as model component /application)
1.antoher servlet/ jsp means a separate servlet jsp will be taken in model layer to place business logic and related logic irrespective of jsp’ and servlet available in view controllers layers