Skip to Content
0
May 14, 2011 at 08:36 AM

How to Call a jsp file in dist/PORTAL-INF/jsp folder

353 Views

Hi Gurus,

I am following the blog Portal user idle timeout using dialog windows - Client side solution to implement portal idle time out.

I have to open a .jsp file with I placed under dist/PORTAL-INF/jsp folder .

When I give the relative path in the script like EventID = window.showModalDialog("/irj/portalapps/ /PORTAL-INF/jsp/IEDialog.jsp","Dialog","dialogWidth:500px;dialogHeight:130px;toolbar:no;directories:no;status:no;menubar:no;scrollbars:no;resizable:no;modal:yes");) I am geting Page not found exception.

But when I place the .jsp files in the script folder where the javascript is present like

EventID = window.showModalDialog ("/irj/portalapps/ /script/IEDialog.jsp","Dialog","dialogWidth:500px;dialogHeight:130px;toolbar:no;directories:no;status:no;menubar:no;scrollbars:no;resizable:no;modal:yes");) . Its opening the JSP files.

And as per the thread jsp-linking-in-javascript and How to Link another JSP Page in the same portal component I used

componentRequest.getWebResourcePath() to which is not returning path to Portal-INF . Instead it returns the same path as "/irj/portalapps/ "

Kindly suggest on how to open the .jsp file in dist/PORTAL-INF/jsp from a javascript file under dist/script folder

Thanks in Advance

Edited by: Prasanna Kumar on May 14, 2011 10:44 AM