Search code examples
servletssapui5sap-fiori

Is it possible to have servlet in sap web IDE project?


Is it possible to have servlet in sap web IDE project?. If yes, How can i do it?. Please provide an example or some references. I would like to have a Email servlet in my project. So that instead of opening client's email, I can send email directly with a button click.


Solution

  • you cannot have servlet in Web IDE project. using WebIDE you can create only HTML5 projects (JS,CSS,HTML) . If you want to integrate servlet you can do it by creating a Java app on HCP and then create destination in HCP which points to your java servlet endpoint and from Web IDE project you can execute an ajax request in order to get the data to the client.

    Here are some references:

    Developing and deploying a basic Java application on SAP HANA Cloud Platform

    Connecting Remote Systems

    a blog that i wrote on how to consume 3-party services in Web IDE