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 |
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,
How we can check in particular page the session will be alive or not
What is servlet and how it works?
What is the capacity the doget can send to the server?
Is it possible to send a mail from a servlet? Explain?
What is a Session Id?
What are different ways for servlet authentication?
What are the advantages of servlets over traditional cgi?
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?
Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.
How do you pass the data from one servlet to another servlet?
What is api in servlet?