How to get Page URL inside a JSR168 Portlet

Hi,
How can i get the Portal's page URL inside a JSR168 Portlet?
All I can see in renderRequest Object is information about the portlet itself not about the page it is inside.
Thanks,
André

Hi Andre
Please see this note on My Oracle Support. 433507.1
Hope that helps!
AMN

Similar Messages

  • How to get page URL in a dynamic page in 10.1.4?

    Does anyone know how to get the page URL in a Dynamic Page in 10.1.4 without using javascript.
    I know that you can use a PL/SQL portlet and the portlet_record, but this is specifically for a Dynamic Page.
    Regards
    Jenny

    Hi,
    I am trying the suggested approach in 10.1.4 but unfortunatley I get the following error:
    PLS-00302: component 'SHOW_INTERNAL' must be declared
    In my Dynamic Page I have the following code
    htp.p(cms_context.urlpage);
    In the '... before displaying the page' I have the following
    schema_name.cms_context.urlpage := schema_name.dynamic_page_name.show_internal.p_page_url;
    Can anyone help?
    Cheers
    Chris

  • How to get the Sql inside Omni SQL portlet.

    Hi,
    We are trying to find a table/view which stores/holds the Sql and Pl/Sql code of Omni Pl/sql portlets.
    Thanks,
    Ram.

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

  • How to get Target URL

    Hallo,
    In my Dynpage portal application.I use 3 Jsp's.One of the Jsp having a Iframe element.This iframe source is an External HTTP address.In the source tag i have to supply the Results frame as some Iframe name and result-url as my 3rd jsp url,so that i can unpack the XML and process the data.
    All the 3 Jsp's are in /pagelet/ folder.Does anybody know how to get the url for the Jsp inside the pagelet folder.
    Further more pagelet folder is private folder,will it be a problem for the external website to post the result to this private /pagelet/3rd.jsp.
    Example src tag for Iframe
    http://demo.mygraphics.nl/nbgint/NBG_INT_main.asp?action=CHART&datas
    ource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
    result_url="Here i have to give my 3rd jsp url"&defa
    ult_centre_x=256000&default_centre_y=471000&default_width=0.5

    Hi gaurav,
    You are right,it is Jspdynpage.I have already read about the Urlgenerator that it can generate url's only for components and pages.So i have created 2 components in one PAR but havent tested yet.
    Anyway thanks for your reply.
    I have tested it and it works fine.Here is the code
          try {
              IUrlGeneratorService urlGen = (IUrlGeneratorService) PortalRuntime.getRuntimeResources().getService(IUrlGeneratorService.KEY);
             IPortalUrlGenerator portalGen = null;
                                    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
                                    if (specUrlGen instanceof IPortalUrlGenerator) {
                                         portalGen = (IPortalUrlGenerator) specUrlGen;
                                         // generate Component Url
                                         try {
                                              String url = null;
                                              url = portalGen.generatePortalComponentUrl(request,"NewUrlProj.NewUrlComp");
                                              HttpServletRequest srq = request.getServletRequest();
                                              String vorUrl = srq.getScheme()"://"srq.getServerName()":"srq.getServerPort();
                                            myBean.setUrl(vorUrl+url);
                                         } catch (NullPointerException e) {
                                              myBean.setErrorMsg("Unexpected Nullpointer. This should not happenend, but it did! Something must have gone wrong :-(");
           catch(Exception e){
              myBean.setErrorMsg(e.getLocalizedMessage());
    Message was edited by: Baskaran Senthivel

  • How to get page one to animate only once in interactive pdf?

    how to get page one to animate only once in interactive pdf? I like when the document opens up in acrobat and the the page animations work but when I go to one of the pages and hit my designated home button it goes back to page one but it reloads again. As a user it would drive me crazy to have to wait for all of it to load......anyway to have that page one load once as the opening page?

    I don't think you really mean animations (unless you have a placed SWF file) because things created with the Animation panel don't work in PDF. Nonetheless, you're talking about some kind of interactivity which is set to happen On Page Load.
    So when you return to that page, of course the interactivity loads again.
    There isn't a On Page Load Once command.
    Perhaps you need to rethink why the interactivity is there. If it's important, maybe it should be triggered by a rollover or by clicking a button.

  • How to get page numbers using cl_gui_alv_grid

    dear all,
    I want to display page nos at every end of .iam using cl_gui_alv_grid.iam didving itab into no of pages,iam using code to display no of pages is
    CLASS LCL_EVENT_RECEIVER DEFINITIOn.
    PUBLIC SECTION.
    HANDLE_END_OF_PAGE
    FOR EVENT PRINT_END_OF_PAGE OF CL_GUI_ALV_GRID.
    PRIVATE SECTION.
    DATA: PAGENUM TYPE I.
    ENDCLASS.
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
    METHOD HANDLE_END_OF_PAGE.
    DATA: TABLENAME(30) TYPE C.
    ADD 1 TO PAGENUM.
    WRITE: /,'Event: PRINT_END_OF_PAGE'(003),
    'Number of pages so far: '(004), PAGENUM.
    ENDMETHOD. "handle_end_of_page
    Endclass.
    and iam wrting in PBO set_table_for_first_display
    CREATE OBJECT EVENT_RECEIVER.
    SET HANDLER EVENT_RECEIVER->HANDLE_END_OF_PAGE FOR GRID1.
    create object grid1.
    exporitng
    i_parent name = 'CONT'.
    GS_PRINT-RESERVELNS = 2.
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_STRUCTURE_NAME =
    IS_PRINT = GS_PRINT
    IS_LAYOUT = GS_LAYOUT
    CHANGING IT_OUTTAB = it_Tab.
    but this is not triggering when i dispalying output.i think this will trigeer when we will give print output.
    then how to get page nos at buttom of each page .
    thanks in advance
    shiv

    Hi,
    I think you have to define the page size because for each page if you have defined the page size(say N),  at first top of page will be triggered and after the N number of lines the end of page event is defined. Please check this if you have not defined all the page size it assumes all the lines in one page. Please check.
    Thanks.

  • How to get Page Count of pdf in Document library in EventHandler

    Hi,
    How to get Page Count of pdf in Document library once uploaded has been done and i would like to update the page count value in document library column of the corresponding file.
    I should achieve it in Event handler.
    Which even should i use, either ItemAdded or "ItemUpdated "?
    Thanks & Regards
    Poomani Sankaran.

    Hello,
    If you are looking for file download or view count then event handler will not work. You need to enable the analytic report to your site. Once you enable it then you can see the report within a browser or you can also create custom webpart to show count
    of specific file.
    http://blogs.msdn.com/b/ecm/archive/2010/05/03/web-analytics-in-sharepoint-2010-insights-into-reports-and-metrics.aspx
    http://sharepoint.stackexchange.com/questions/34611/count-of-files-under-a-folder-in-a-document-library
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to get page item list in  a page?

    how to get page item list in  a page?

    Have a look at ISpread::GetItemsOnPage().
    That should get you started.

  • How to get browser URL

    Dears
    We are working with system with 2 application server IPs and one Real IP (which is able to be accessed through internet)
    I would like to know the URL is the user using in order to use his IP to open something else from the system.
    Chcking the host name not usesful because if user connect from home using Real IP it return the AS host name which real IP redirct to it.
    I need to know how to get the URL of the session from the form or to know whether the user connected using the Real IP or not.
    (Oracle forms 10gR2)

    I think you can get a URL from/with a PJC (java pluggable component) from/with IHandler interface..
    Try this bean.. You have a property with name HOST_URL.. (with some modification you can also read applet parameters).. (I have done this now but I have not jet tested it)....but I thik this should work...
    You have also other parameters to get client IP addres and hostname...
    package in2.client;
    import java.io.PrintStream;
    import java.net.InetAddress;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class ClientInfo extends VBean
      private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
      private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
      private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
      private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
      private static final ID HOST_URL = ID.registerProperty("HOST_URL");
      private IHandler mHandler;
      private String hostAddress = "";
      private String hostName = "";
      private String hostOs = "";
      private String hostUser = "";
      private String hostURL = "";
      public ClientInfo()
        try
          System.out.println("+----------------------+");
          System.out.println("+  ClientInfro PJC     +");
          System.out.println("+  Peter Valencic      +");
          System.out.println("+----------------------+");
          System.out.println("+Dat spr: 10.09.2007   +");
          System.out.println("+Dat spr: 04.07.2008   +");
          System.out.println("+Dat spr: 10.07.2008   +");
          System.out.println("+Dat spr: 15.11.2010   +");
          System.out.println("+----------------------+\n");
          this.hostAddress = InetAddress.getLocalHost().getHostAddress();
          this.hostName = InetAddress.getLocalHost().getHostName();
          this.hostOs = System.getProperty("os.name");
          this.hostUser = System.getProperty("user.name");
          System.out.println("Host   adress: " + this.hostAddress);
          System.out.println("Host     name: " + this.hostAddress);
          System.out.println("Host op. syst: " + this.hostOs);
          System.out.println("Host username: " + this.hostUser);
          System.out.println("+----------------------+\n");
        catch (Exception e)
          System.out.println("Napaka pri inicializaciji beana: " + e.toString());
      public void init(IHandler handler)
        super.init(handler);
        this.mHandler = handler;
      public Object getProperty(ID pid)
        if (pid == CLIENT_IP) {
          System.out.println("Client IP: " + this.hostAddress);
          return "" + this.hostAddress;
        if (pid == CLIENT_NAME) {
          System.out.println("Client Name: " + this.hostName);
          return "" + this.hostName;
        if (pid == CLIENT_OS) {
          System.out.println("Client os: " + this.hostOs);
          return "" + this.hostOs;
        if (pid == CLIENT_USER) {
          System.out.println("Clientuser: " + this.hostUser);
          return "" + this.hostUser;
        if (pid == HOST_URL) {
          hostURL = this.mHandler.getApplet().getDocumentBase();
          System.out.println("Host Url: " + this.hostURL);
          return "" + this.hostURL;
        return super.getProperty(pid);
    }

  • How to get form input in the same portlet using pageflow

    Hi this is premkumar
    i created 2 portlet in a portal how to get form input in the sampe portlet using
    pageflow
    help as early as possible

    Do to the complexity of the program we need to run it with sequences.  This is because we need to aquire data with DAQ until it reaches a certain point and then stop collecting so that it can do its process (only once for all times criteria is met), and then loop around till again collecting after DAQ drops back below certain point looking to once again reach that point.  Another flat sequence is going outside of this where I want to put the prompt and have a user input to affect how many times that that the inner loop is run (No a For Loop instead of the while loop will not work either for other reasons). 
    I just want to know if after the program starts you can have a user input that will change the effect of the rest of the programs action based on the number inputed.

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • How to get the Url(address) of Next Page in Sequence of Pages in OAF

    Dear All,
    My requirement is to get the next page Url dynamically .
    i have created 2 pages ,first page have button to navigate to the next page ,when i click on first page button ,
    i want to store the url of the next page in column of the database table.
    This is urgent requirement .
    Please suggest .
    Thanks
    Maheswara Raju

    > Is there any way to get the memory address of a
    variable (like int ,float and all) in java.
    No. Chances are excellent that there's a way to do what you want without needing the variable's address, however.
    ~

  • How to get Page Path in Webcenter at run time

    Hi All ,
    I want to get the page path of the current page that is being accessed by the user at run time (Rather , in the method activity of a TF).. This page path will be used to get the page def and do some operations on it.
    We tried to get it from the Navigation Context but node.path returns null .
    Any pointers on how i can get the it ?
    Kind Regards,
    Siddharth

    Using #{pageDocBean.pagePath} then you can get the page path
    using #{navigationContext.defaultNavigationModel.node[navigationContext.defaultNavigationModel.currentSelection.prettyUrl].goLinkPrettyUrl} - you will get required url for a particular page.
    See more information on http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27739/jpsdg_app_els.htm#BEIBIEEF

  • How to get a photo inside the little box in the "Lower Third" Sports Theme?

    In iMovie '11, in the Sports theme, in the Text page titled "Lower Third," how can I get a picture of a person inside that little box? That sports theme comes up/shows up at the box "Set Theme": Sports. They are all a fluorescent blue, very nice for name tags if I could get faces/pictures inside those boxes.
    Important: Under :Windows" (in control panel) there is an option to click SPORTS EDITOR. I tried working with that. I tried to put a picture in one of those boxes, but the experiment failed.
    Any ideas?
    -L
    Message was edited by: Lorna from Hawaii

    Lorna from Hawaii wrote:
    ... there is an option to click SPORTS EDITOR. ... I tried to put a picture in one of those boxes, but the experiment failed.
    just drag'n drop from Finder any (... 'any' : shouldn't be a 16MBit monster-sized pic, just a small one, look at the aspect ratio) jpeg into it.
    so, what exactly failed?

  • How to get webpage URL with new Safari  V6.0 under OS 10.74

    Now that the URL space of Safari allows searching by key words, and there's no separate Google search box, this poses a problem.  
    Let's say one wishes to search for images of "kendall jenner model".   This will bring you to a Google page of multiple individual images.  BUT unlike prior versions of Safari, no long URL is formed so one cannot repost the URL in a forum.  So now I must use Chrome or browser other than Safari to get the URL of the entire page.  Here are the examples of what one is left with in the URL box:
    •   Old Safari URL (or Chrome):  https://www.google.com/search?q=kendall+jenner+model&hl=en&prmd=imvnsuo&tbm=isch &tbo=u&source=univ&sa=X&ei=1pw3UK63LsmwiQKvxIHoDQ&ved=0CCAQsAQ&biw=1050&bih=639
    •  New Safari URL:  kendall jenner model  (which is useless)
    QUESTIONS:  Using Safari V6.0, how does one get the entire page URL ?    Can the dedicated Google search box at the top be revived so that the proper URL appears in the central top box ?

    Just found the cure for Safari 6.0 under 10.74
    In Safari preferences,  changed the default search engine from Google to Yahoo.  Now whenever, for example, a search is made in Google's images, and other websites, the full URL shows in the address line.
    Now all websites show the full URL, even through they were derived from search words in the URL field.

Maybe you are looking for