cancel
Showing results for 
Search instead for 
Did you mean: 

HCP Java Application DefaultServlet

Former Member
0 Kudos

Hello everybody,

I have the following question to all of the Hana Cloud Platform developers out here:

Is there some sort of DefaultServlet like org.apache.catalina.servlets.DefaultServlet available for the HCP Java Application runtime 'JavaWeb'?

I'd like to serve some static files and do not want to write a servlet for that purpose on my own.

Best regards,

Martin

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

JavaWeb Tomcat 7/8 runtimes as the names suggest are based on Tomcat 7/8 , so the servlet class is definitely there and I believe it's visible to your app.

BTW, I really recommend using one of those two runtimes and not the archaic JavaWeb.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

There is DefaultServlet. It is not needed to do anything just pack your static resources and they will be served.

Best Regards,

Violeta Georgieva

Former Member
0 Kudos

Thank you for your answer!

I got it now. As it turned out, I was using the older JavaWeb runtime where the setup of DefaultServlet seems to be slightly different.

Best Regards,

Martin