Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ketkee A
window.open() in liferay 6.0
April 19, 2012 3:34 AM
Answer

Ketkee A

Rank: Junior Member

Posts: 78

Join Date: March 10, 2011

Recent Posts

Hi,

Using a service, I am fetching some files and storing under the webapps/ROOT folder of my tomcat directory. I am using Liferay 6.0

after that I have a link on my portlet to show the file. On the click of the link I have a simple code as:
window.open(filePath+'/'+folder+'/'+filename);

file path is : "/Sample folder" which is under webapps/ROOT

This ode doesn't work in Liferay 6.0. When I click on Show File, I get the error as resource not found.

Could you pleas help me with this?

Thanks.
--Ketkee
Hitoshi Ozawa
RE: window.open() in liferay 6.0
April 22, 2012 7:12 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Try putting your resource under webapps/ROOT/html
Ketkee A
RE: window.open() in liferay 6.0
April 23, 2012 10:36 PM
Answer

Ketkee A

Rank: Junior Member

Posts: 78

Join Date: March 10, 2011

Recent Posts

Hitoshi,

Thanks for your reply.

I put the resource in the portlet folder OR portlet folder/html under webapps and it worked. Could nto make it work with ROOT folder.

Thanks for your help.

--Ketkee