Monday, 23 July 2012

Difference between droplet and servlet


Servlet
Droplet
Servlet is a java class which extends HttpServlet
Droplet is java class which extends DynamoServlet (customized in atg)
Servlet extends
            HttpServlet extends
                        GenericServlet implements     javax.servlet.Servlet
Droplet extends
            Dynamo Servlet extends
                        HttpServletService extends
                                    ServletService implements javax.servlet.Servlet

Servlet can be invoked from a jsp giving the servlet path and name
<jsp:forward page="/MyServlet"/> or
<form method="POST" action="/ProfileSyncService">

Droplet can be embedded in jsp as
<dsp:droplet name="sampleDroplet">

to fetch the information

Not applicable.
One or more droplets can be present in a jsp. Nested droplets are also applicable.
Servlet is used to submit data, it acts as a controller. It is not used to put data.
Droplet is used to render or put data in the db


0 comments:

Post a Comment