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 ?
Answers were Sorted based on User's Feedback
Answer / ratna dinakar
Servlet is server side Java application, which accepts,
processes and sends Http requests. We use a servlet to bind
Http Request and Http Response to business logic, using
various callback methods provided by HttpServlet class.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / 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 |
Answer / mallikarjuna
using servlets we can develop the web applications . what
ever the client sending the request and giving the response
and writing controler logiv and businesslogic
| Is This Answer Correct ? | 0 Yes | 1 No |
How do I support both get and post from the same servlet?
can anybody send me j2ee softwares such as tomcat,weblogic server ,netbeans
How to work with Chinese login page (internationalization).if he enters user name and password in chinese, how is it converted to English and validate in db? And in reverse it should display welcome message in Chinese,if user is valid
What do you mean by url pattern in servlet?
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,
Explain the difference between GET and POST methods?
can i override service method
Which method is called when reference variable is passed in system.net?
Is JSP Thread Safe ???? How To make JSP thrad safe ?????
can we create more than ServletContext and ServletConfig in your application
Explain how to improve Servlet Performance?
How do servlets work?