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

Similar Messages

  • How to get form fields in a dynamic page as a portlet

    I have a dynamic page(publish as portlet and added to a portal page) with a html form that has many radio button created dynamically (query a table and create as many radio button as records I found) and the name of each radio button is the id of the record from the table it represents.
    When I click the submit button of my form it will recall the same portal page and then I have to check which radio buttons where selected to update the database depending on it.
    The problem is that I can't get the radio buttons inside the dynamic page because they are created dynamically so I can't make them portlet parameters to be associated with page parameters.
    So How can I tell which radio buttons have been selected?
    Please help me.

    Hi,
    Write a procedure which will be called as the form action. This procedure should take an array of parameters like p_arg_names and p_arg_values. For example
    <html>
    <form>
    <input type="checkbox" name="p_radio">
    <input type="checkbox" name="p_radio">
    </form>
    procedure submit_form(p_radio in wwv_utl_api_types.vc_arr)
    begin
    for i in 1..p_radio.count
    loop
    htp.p(p_radio(i));
    end loop;
    wwv_redirect.url(<page_url>);
    end;
    Hope that helps.
    Thanks,
    Sharmila

  • 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 do I get the URL of a jsp page?

    I have a jsp page which has a link to a servlet page, in the servlet page, I want to get the URL of the jsp page.
    I tried to use request.getHeader("referer"), it seems like if it is a link in the jsp directly lead to the servlet, it works, but if the link calls a javascript function which opens up a window runing the servlet, it is not working. I have to do the second way, so it is not working by doing request.getHeader("referer")
    I tried to use javascript "location.href", I get the whole url by alerting the url in the jsp page:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal&bcd=ABC123&pnm=P1001830&prnm=1&psd=236863.0&ln=01&sln=NYPPA&stp=2.1&stt=A&_POSID=1F8464122ADAF4EEC9B1A94C286EB252
    then I pass this url when calling with my servlet, in the servlet page, when I do request.getParameter("url"), the url is actually cut off like this:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal
    anything after &pnm is cut off, anyone has any idea?
    Thanks in advance.

    Thank you.
    but how do I put encoding in the javascript code? do I need to decode in my servlet page?
    here is my code in the jsp page:
    linkset[3]+='<div class="menuitems">Email Diagnostics to AutoOne</div>'<%     
    function emailDiagnostics()
    win = window.open("/pos-webapp/serv/email_diagnostics?url=" + location.href + "&browser=" + navigator.appName, "emailDiagnostics",
    "width=350, height=140, resizable=no, scrollbars=no, toolbar=no, location=yes, directories=no, status=no, menubar=no, copyhistory=no, left=450, top=300");
    win.focus();
    }

  • How do I get the URL of a jsp page which calls a servlet?

    I have a jsp page which will lead to a servlet, I can get the URL of the servlet, but how do I get the URL of the jsp page which lead to the Servlet in the servlet?

    You could try doing:
    request.getHeader("Referer");

  • Get current page details from within dynamic page

    Is there any API or any other way of getting the current page id that the dynamic page portlet is being called from?
    Thanks in advance.

    I've tried the following:
    theLink varchar2(1000) := 'http://'||owa_util.get_cgi_env('HTTP_HOST')||owa_util.get_cgi_env('SCRIPT_NAME')||owa_util.get_cgi_env('PATH_INFO')||'?'||OWA_UTIL.GET_CGI_ENV('QUERY_STRING');
    But that gets me the URL of the dynamic page portlet not the page the portlet is on?

  • 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.

  • 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 the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • How to get windows username printed on each page irrespective of application? we have cm6030f.

    How to get windows username printed on each page irrespective of application? we have HP CM6030F.

    Hi,
    Normally, you will receive a Windows Azure Pass from your local Windows Azure team. Please try to contact your local Windows Azure contact (http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0
    Also, you could see this page
    http://www.windowsazurepass.com/AzureU/AcademicFAQ and apply the free trial azure via (http://www.windowsazurepass.com/AzureU/).
    Q: I am a student. Can I apply for a pass?                     
    A: Windows Azure Educator Grants are only for valid faculty. If your faculty has been awarded a Windows Azure Educator Grant, you will be able to get a pass through him/her for you coursework. If you are interested in learning more about Windows Azure,
    we encourage you to share these Educator Grants with your faculty or sign up for the FREE 3-month trial offer. 
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to send an entire HTML, PHP dynamic page using phpmail()?

    How to send an entire HTML, PHP dynamic page using phpmail()
    from PHP website, similar to mail this page or send to a friend
    link?

    Hello,
    Please change the mail address
    "info[at]furkids[dot]co[dot]za" from this thread ^^^look above^^^
    to "[email protected]"
    Thank you

  • 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 to the bottom of a page fast on the iPad Air"

    how to get to the bottom of a page fast on the iPad Air"

    thank you!  I am admiring my three dots and considering which cat's picture I should upload as my avatar.
    yes, the scrolling down in sections I have managed.  I thought you were saying one set of double taps would go straight to the bottom.
    here's another question for you:  on my iMac by holding the command key down I can make a link open in a new tab.  Do you know if there is a way to do that on the iPad?

  • 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 of the window which is opened as a dialog

    Hi All,
    I am working on BPM Worklist and in BPM Worklist we have created a Custom ADF Application.
    What BPM Worklist does is :- it shows the task associated to the user and when user double click on the task , it opens the custom ADF Page created by us.And it opens the ADF Page in the modal dialog.Since i do not have any control on the parent page which is the BPM Worklist page.
    I need to check whether the url contains the _ADFvDlg , if it contains then i need to put some logic and then executes something.
    Is there any way to find out the Url of the dialog window of the BPM Worklist using ADF not using javascript ?
    Regards,
    Shah

    Hi Frank,
    I have used the method which u have said in phaseListener
    System.out.println("GOT URL"+((HttpServletRequest) facesContext.getCurrentInstance().getExternalContext().getRequest()).getRequestURL());
    System.out.println("GOT URI"+((HttpServletRequest) facesContext.getCurrentInstance().getExternalContext().getRequest()).getRequestURI());
    but no help, it gives me the same url of both the pages(parent and dialog one).
    Say if i use the javascript and anyhow get the windowId of the dialog and pass it to the server onPageLoad then it can be helpful.
    But how to do that as well.?
    I mean how will i call the javascript and return url to the server and do the validations on PageLoad.
    Please suggest!!
    Regards,
    Shah

Maybe you are looking for

  • How to change the timezone

    Hi, I have created a scheduler job during day light savings, the timezone when the job was created is -4.00 and the job ran successfully. Now after the day light savings the job ran an hour earlier than before because of the dst. now the timezone is

  • Trouble using Windows 7 in Parallels

    ave Parallels installed, have Chrome and Windows 7 installed but cannot log in to either to run them. Help please?

  • I have problems with the agenda i can not seen the 12 months

    Dear Gentlemens and Womans I have download one week a go Mountain Lion,  but i have  a problem on my macbook in the agenda  i have  also an imac and ipad and i use icloud I can in de agenda use the day, the week, the month   but not the year ware you

  • How to resolve TNS-12537: TNS:connection closed

    sqlnet.ora ========== # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHE

  • My N97 Has No Sound.

    My Nokia N97 Basically Has No Sound at all. No ringtone, no Sound for music player, no warning tones, no alarms. Nothhin. But all this sounds come on a headphone if i connect it. I reboooted my mobile several times but its of no use. And sometym, may