quarta-feira, 17 de junho de 2015

Quick Tutorial to How to Create a Custom Droplet


In this quick tutorial we'll learn how to create a custom droplet and invoke it in jsp


1- First create a new class that extends atg.servlet.DynamoServlet. You may place it inside a specific package for droplets, like: com.atgendecabr.droplet, so you keep things more organized.


2- Now override the service() method put your code inside, just like a servlet.

3- You must create a properties file (place it insde your config path), so Nucleus recognizes your droplet as a component. Name it YourDropletName.properties and write this:

     $class=com.atgendecabr.droplet.YourCustomDropletName

Nenhum comentário:

Postar um comentário