Hi friends, am newbie to servlet. My interviewer asked why
used servlet in your application.
i used servlet for controller logic and business logic .
is it correct ?
Answer Posted / madan
yes, servlets is used for purely for Controller.i think do u know MVC layer( Model View Control),control for Servlet,View for Jsp,Model for business logic..
based on the technology we used, the model will be changed
for example, if u use jsf,ejb
jsf is view and ejb is for model(business)
in struts, jsp is view, beans for model
Different persons are approaching different ways..
but are not used for business logic because we have these many technologies which maintain the B.logic
ok
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
List out the difference between ServletConfig and ServletContext?
What is the inter-servlet communication?
How can you use a servlet to generate a plain text instead of html?
What is the dispatcher servlet?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
How to make sure a servlet is loaded at the application startup?
What is the default http method in the servlet?
Difference between GET and POST?
How do you load an image in a Servlet?
What is preinitialization of a servlet?
What is the main purpose of java servlets?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is called a session?
Can you use javascript in servlets?
What are the difference between RMI and Servlets?