Using a Gloop Service to Render a JSP Page
TORO Integrate supports the creation and mapping of web pages the Spring way. But instead of Groovy code, did you know you could use Gloop to create your controller and populate your page with your models1?
Please see the following articles for more information:
There, you will see a form. Fill up the form and submit to see data get rendered. You will notice that upon submission, the data you entered will be visible below the form.
To see the files related to this example (and play around with the results), expand the
examples package entry under the Coder Navigator and navigate to the
code folder. Afterwards, look for the
jspResponse package. This package contains
API file that defines the controller and the Gloop service
which is responsible for mapping the values to be shown in the view:
1 2 3 4 5 6 7 8 9 10
examples ├── ... ├── code │ ├── ... │ ├── jspResponse │ │ ├── api │ │ │ └── JspController.api │ │ └── SendJspPage.gloop │ ├── ... ├── ...
In addition to this, the JSP page, named
sample.jsp, is visible in the
How It Works...
To serve web content via Spring and Gloop, here are the steps you should follow: