How To Use

Using Celeritas is very easy. Place celeritas in your web application class path along with its dependencies. In web.xml map /crud/* to com.rc.celeritas.controller.CrudWMServlet, you can map any other path too (Celeritas is very flexible). The most easiest way to create a celeritas based project is from its maven-archetype Celeritas supports following Impleos (Actions)

Insert Impleo

Any page wanting to insert the form data into the table should direct its form to /crud/insert/<display_page.htm> and should place some important values as hidden variables in the form like table = table name in which the data needs to be inserted pk = Primary Key / Column Name

Delete Impleo

Any page wanting to delete any row from the table should direct its form to /crud/delete/<display_page.htm> and should place some important values as hidden variables in the form like table = table name in which the data needs to be inserted pk = Primary Key / Column Name <Primary Key / Column Name> = Value for primary key

Search Impleo

Any page wanting to search the data from a table/view should direct its form to /crud/search/<display_page.htm> and should place some important values as hidden variables in the form like table = table name in which the data needs to be inserted order_by = column name on which sorting should be performed sql-ref = sql-ref name for the sql placed inside celeritas-sql.xml file (Or any xml file refered in the web.xml as file-sql init-param)

Update Impleo

Any page wanting to Update the form data into the table should direct its form to /crud/update/<display_page.htm> and should place some important values as hidden variables in the form like table = table name in which the data needs to be inserted pk = Primary Key / Column Name <Primary Key / Column Name> = Value for primary key

Export Impleo

Any page wanting to export the table data should direct its link to /crud/export/<display_page.htm> and should place some important values in the url table = table name in which the data needs to be inserted export_to = excel (formal in which export is needed, in future this will support pdf and other formats as well)

Ads

Your Ad Here