HowTo:Create a JSP Page and Java Controller
From AgileApps Support Wiki
Revision as of 22:33, 2 August 2012 by imported>Aeric
For: Developers See more: |
This example shows how a JSP Page and a Controller Class interact to let the user:
- add records to a Mailing List object
- do a SQL search for (one or more) records
- update records
Overview
A JSP Page and a controller Class are created to update a mailing list. {{#if |
- Learn more: See the AgileApps Cloud platform Development 101 slides for
}}
Prerequisites
- A "Mailing List" object must created, with two fields: contact_name and contact_email
Developing the Application
Create the Java class
- Follow the instructions at Add a Class
- Copy and paste the contents of AddUpdateController.java into the Class
- Save the class
Create the JSP Page
- Follow the instructions at Add a Page to create AddUpdate.jsp
- Copy and paste the contents of AddUpdate.jsp
- Save the JSP page
Try it Out
To test the project, visit the following URL:
- https://{yourDomain}/networking/pages/AddUpdate.jsp
(A valid username and password is required to log in to the platform.)