Message Boards

Deploy static html, css, javascript as LifeRay Portlet

velmurugan Baskaran, modified 6 Years ago.

Deploy static html, css, javascript as LifeRay Portlet

New Member Posts: 4 Join Date: 4/3/17 Recent Posts
Hi All

I have a static Single Page - html, css and javascript files. I have tested by deploying in into apache-tomcat and it works.
I would like to convert this html, css and javascript as Porlet.

So far, i have done the followings,
1. Created the liferay - maven project (Through eclipse) [I have build and tested, this porlet is working when i deploy as war in LifeRay)
2. In liferays maven project: ..src/main/webapp/ folder i have created a new folder called myapp
3. Have pasted all the html, css, javascripts inside the myapp folder
4. In the view.jsp file, i have included the myapp/index.html file.
Build the war and deployed into liferay.

Here, it is successfully picking the myapp/index.html in liferay porlet. However, it is not picking any resources inside the index.html (css, javascript).
Here, how can i make this porlet up and working correctly. Please assist. [Kindly note that, i have tested this static page in independent tomcat server, it works fine. So that means, all the resource path that I have given is correct in index.html]
Thank you!!