Write a custom droplet in ATG.

Droplets/ATG Servlet Beans are one of the most important out of the box components provided by ATG. Droplet is nothing but a Servlet, Droplets are mainly used to abstract out the business logic in server side code. Droplet helps the developer to separate the presentation code from the business logic code. You may write your own Droplet if the provided Droplets are not meeting your requirements.

Droplet Static Design

dropletStatic

steps to write a custom droplet

1. Write a java class which extends the atg.servlet.DynamoServlet class. Write the custom business logic inside the service method.

2. Write a property file to expose your Droplet as a component in ATG Nucleus.

3. Place the CalculatorDroplet.properties file in the correct configuration location. This would register the CalculatorDroplet as component in ATG Nucleus.

calcDropComponent

4. Use the CalculatroDroplet in the jsp using dsp:droplet tag library.

5. Load the calculator.jsp in browser.

dropletResult.jpg

Your custom Droplet is up and running now!

casinos online colombia. bonosindeposito.io

13 thoughts on “Write a custom droplet in ATG.

  1. Avin said:

    Neat Explanation..Helpful article

    • Sanju Thomasourownjava said:

      Thanks Avin.

  2. Vico said:

    Usefull and direct info for ATG begginners. Thank you a lot and hope next post will be as good as this one.

    • Sanju Thomasourownjava said:

      Thanks Vico.

  3. Chakravarthy said:

    Great work..Keep posting

    • Sanju Thomasourownjava said:

      Thanks Chakravarthy.

  4. Yogesh Pathak said:

    helpful article for the starters as well as experts , neat explanation.. can you provide an example for the formHandler also.

  5. anitha said:

    nice explanation