The way ATG works for form binding (the process of attaching a value from an HTML form field to a value in a Java component) is to use the DSP form tags along with a formhandler.
Create a java class as a bean with a property called, say, email
. I.e. with a getEmail
and setEmail
method (this is standard Java, look up how to define a JavaBean in Java).
Create a request-scoped named Nucleus component as an instance of this class (refer to the Programming Guide in the ATG documentation, specifically the section called Nucleus: Organizing JavaBean Components)
Then in your JSP page use the dsp:input
tag to bind to your bean property (refer to the Forms section in the ATG Page Developers guide).
You will also need to implement a submit handler method for your form (refer to the section Working with Forms and Form Handlers in the ATG Programming Guide).