2.3.1. Create a Registration Function (Hands-on Format)

This section describes how to develop the registration function in the web application using Nablarch, while implementing the client information registration function in the example application.

Description of the function to be created
  1. Click the “Client registration”(顧客登録) link in the header menu.
../../../../../_images/header_menu.png
  1. The client registration screen is displayed.
../../../../../_images/input_display.png
  1. Enter a full-width string for the client name and an arbitrary value with the industry type pull-down and click the “registration”(登録) button.
../../../../../_images/input_name_select.png
  1. The registration confirmation screen is displayed.
../../../../../_images/confirm_display.png
  1. Click the “Confirm”(確定) button to register the client in the database and display the completion screen.
../../../../../_images/complete_display.png

2.3.1.1. Specification of the Client Registration Function

Mapping of each process of the client registration function, URL and business action methods are shown below.

../../../../../_images/client_create.png
NO. Process name URL Action HTTP method
1 Initial display /action/client/ ClientAction#input GET
2 Confirmation of Registration Contents /action/client/confirm ClientAction#confirm POST
3 Returns to the registration screen /action/client/back ClientAction#back POST
4 Executes the registration process /action/client/create ClientAction#create POST

The definition of the table to be used is shown below.

../../../../../_images/client_table.png

The description of the registration function consists of the following four chapters.