JSP web application

Servlets and JSPs can be combined in a single web application. Therefore we will use the servlet application created in the previous section, and just modify it to show how to use JSPs.

We could simply embed the Hello world message in the JSP file. But in practice it is often useful to call Obix code from a JSP file. Therefore we are going to first create an Obix service to get the text to be displayed, and we will then call this service from a JSP file.

To package, deploy and run your application, proceed as described in the previous section about creating a servlet. But this time enter the following URL in your browser: http://127.0.0.1:8080/hello_web/hello.jsp