Skip to Content
avatar image
Former Member

How can i create a servlet through SAP WEB IDE

Hi All,

I have to create a simple Hello World servlet as mentioned in the link below and deploy the same on the HANA Cloud Portal and then display through a widget

https://help.hana.ondemand.com/help/frameset.htm?e5a8b1d3bb571014a0f89bb4706d4e0b.html

http://hcp.sap.com/developers/TutorialCatalog/jav100_2_java_hello_world.html

Which project template do I need to follow for the Java EE perspective on the SAP WEB IDE just like we have in Eclipse.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 04, 2015 at 06:37 AM

    Hello,


    Please follow the documentation guide - Creating Cloud Portal Widgets in the SAP Web IDE

    By using one of the templates, the opensocial spec xml is going to be created automatically. Make sure the first checkbox is checked (SAP UI5 integration [sap-xhrwrapper]). This feature is responsible to overcome cross domain problems.

    Once the application is deployed to HCP, you will be able to see it under HTML5 Application menu entry in the cockpit.

    Make sure you are activating it and setting a version (can also be done when deploying via Web IDE).

    Now, follow step #6 in the guide to create a widget in cloud portal and you are ready to go.


    Regards,

    Eliel.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 12:21 PM

    Hi Saket,

    SAP Web IDE is for developing client applications.

    What you can do is:

    1. deploy your java application (developed with Eclipse) on SAP HANA Cloud Platform.
    2. in Web IDE create new project from template > Cloud Portal SAPUI5 Starter Widget.
    3. call your servlet using ajax.

    you can read about Create a Cloud Portal Widget from a SAP Web IDE Project Template

    Add comment
    10|10000 characters needed characters exceeded