Skip to Content
author's profile photo Former Member
Former Member

url of jsp page to show in a popup window

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

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2004 at 02:19 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2004 at 05:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2004 at 07:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded