cancel
Showing results for 
Search instead for 
Did you mean: 

How to call one JSP from another JSP

Former Member
0 Kudos

Hi,

I am trying to popup a jsp from another JSP.

When I use the url(to pop)componentRequest.getPrivateResourcePath()+"/pagelet/newPage.jsp"; I get Page cannot be dispayed error , You are not authorized to view this page.

Any ideas??

Any help is highly appreciated.

Thanks

Markandeya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank u very much Vivek,

Pl let me have exact code in property file.

ComponentType=jspNative

jspName=custSearch.jsp

Thanks

Markandeya

Former Member
0 Kudos

Hi,

if i use IResource to get the URL of the page , then also i am getting same error.

I need to call a popup jsp page onClientClick event of the button.

Any ideas??

Any help is highly appreciated.

Thanks

Markandeya

Former Member
0 Kudos

Hi,

Call the jsp using a property file.Following code will help..

IResource jspResource=componentRequest.getResource(IResource.JSP, "pagelet/File.jsp");

String strComponentName=jspResource.getResourceInformation().getComponent();

strUrl = componentRequest.createPageURL(strComponentName + ".PropertyFile");

In the property file put ComponentType as jspNativie and the name of the jsp file name.

Then open strUrl from the javascript.

Vivek

Former Member
0 Kudos

Hi,

if i use IResource to get the URL of the page , then also i am getting same error.

I need to call a popup jsp page onClientClick event of the button.

Any ideas??

Any help is highly appreciated.

Thanks

Markandeya