cancel
Showing results for 
Search instead for 
Did you mean: 

url of jsp page to show in a popup window

Former Member
0 Kudos
448

Hi all,

I need to show jsp pages in popup windows to seacrch and select.

How can i get the url(which can run jsp file).

Pl give me exact code.

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you Amit,

From this i am getting the URL of the JSP Page, But when i use that url giving 'You are not authorized to view this page' error is coming.

I have to show in popup window.

Thanks & Regards

Markandeya.T

Former Member
0 Kudos

Hi,

I want the URL of jsp page located in pagelets folder of same component. If i know the url i can show it in popup window.

From the URLGenerator class it only generete url for a portal component but not the url of any jsp file in that coponent.

Thanks

Former Member
0 Kudos

Hi,

You don't need to use the URL generator. just use the following line:

IResource myJSP = componentrequest.getResource(IResource.JSP ,"pagelets/JSP1.jsp")

then, if you want the URL, type

String url = myJSP.getResourceInformation().getURL()

Look in the Javadoc in the PDK for further info.

Amit Levavi

Former Member
0 Kudos

I think you need to be a little more specific about what your asking for and perhaps ask in a little more humble manner. I don´t think you will get much help if you don´t change the wording of your future questions. What is it that your searching for, what is the data source etc.

Bjorn V