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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a 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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.