Getting the page name

Hi,
I have a JSP, which is redirected to a servlet. I want to know from which page the request to the servlet is coming from, but am not able to figure that out. If you could please guide me for the same.
Thanks and Regards,
Sapan..

Hi,
I found the way out.The page name is in the header of the request object. You can get the page name by giving request.getHeader("referer").
Thanks and Regards,
Sapan.

Similar Messages

  • Is possible to get the page name from the _pageid

    Is possible to get the page name from the _pageid displayed in the url?
    It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
    Thanks in advance.

    You have you execute this query, using both the numbers included in the parameter pageid:
    select display_name from portal.wwsbr_all_folders
    where caid = :first_number
    and id = :second_number

  • How to get a Page name?

    Hello,
    I have a dynamic page component portlet, which display different images depending upon page name.
    Is there any APIs to get the current page name in pl/sql.
    or is there any way to get the page name ?
    Thanks
    Sha

    I can't help you with the Javascript option - don't know if this is possible.
    A simple PL/SQL item type that demonstrates how to do this:
    declare
    page_id varchar2(100);
    begin
    page_id := WWPRO_API_PARAMETERS.GET_VALUE('_pageid','a');
    htp.p('The page id is ' || page_id);
    exception
    when others then null;
    end;
    A custom item type procedure is even simpler - you can pass the page group id and page id directly to the procedure, so you don't need to call WWPRO_API_PARAMETERS.GET_VALUE to pull the pageid off the URL.
    There is a very good example of using custom item type procedures in this submission on the Knowledge Exchange. You must register for Portal Developer Services to access the Knowledge Exchange.
    If you are not familiar with PL/SQL item types and/or custom item procedures, please consult the documentation.
    Regards,
    Jerry
    PortalPM

  • How to get the class name of a page in oracle apex

    Hi All,
    Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
    I appreciate any help on this.
    Regards
    Raj

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to get the function name/ID  of the current page

    HI,
    I searched the forum and google, but it is not clear on how to get the function name of the current page.
    I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
    so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
    I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    Or is there a better way of know where user is coming from ? like geturl....
    Please help, I need this ASAP.
    Thank you.

    Use below to find out how the user came into the page
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
    boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
    boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
    boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
    So one of them will be true based on the function the user came in.
    Write your logic based on these flags.
    Regards,
    Peddi.

  • How to get the page FUNCTION NAME?

    Hi All,
    How can I get the page Function Name? I tried below codes but it returns null value.
    <i>pageContext.getPageLayoutBean().getAttributeValue(FUNCTION_NAME)</i>
    Please help. Thanks!

    Sorry guys, i got it now.
    instead of getAttributeValue, use .getPageFunctionName()
    :-)

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • Getting the page of a link

    hello forum
    I use applescript to automate indesign.
    now I've to do a job, where I make textframes on a new layer, same size and position as image/grafic-objects on other layers.
    to do this, I check the links of the document. if there are more than one page, I need the page-number/id to position my textframe.
    I've tried a lot of things to find out the page of a link, but nothing is perfect.
    does anybody know an absolutly sure way to get the page number of a link - for example the to get the number in the link palette of the application.
    InDesign CS3 on Mac OS X 10.4.11
    thank you in advance.

    P.S. Once you know that the link is on a page, you can easily find the page name (aka page number). Take note that this function works for images nested in groups (no matter how deep).
    #target indesign
    myDoc = app.activeDocument;
    myLink = myDoc.links[0];
    myMessage = whereIsTheLink(myLink);
    alert("My link is on " + myMessage);
    function whereIsTheLink(theLink){
       while (theLink.constructor.name != 'Application') {
          if (theLink instanceof Page) {
             var myPageName = theLink.name;
       theLink = theLink.parent;
       myHierarchy += theLink.constructor.name + '|';
       if (myHierarchy.lastIndexOf('|Character|Story|Document|Application|') != -1)
          return 'inline object';
       else if (myHierarchy.lastIndexOf('|Page|MasterSpread|Document|Application|') != -1)
          return 'master page';
       else if (myHierarchy.lastIndexOf('|MasterSpread|Document|Application|') != -1)
          return 'pasteboard of master page';
       else if (myHierarchy.lastIndexOf('|Page|Spread|Document|Application|') != -1)
          return 'page ' + myPageName;
       else if (myHierarchy.lastIndexOf('|Spread|Document|Application|') != -1)
          return 'pasteboard';

  • How to get the specific name of the workset which is currently selected by the user in sap portal 7.0

    Dear Expert,
    I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
    I am using portal 7.0.
    Thanks & Regards,
    Patralekha

    Hi Expert,
    I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
    But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
    But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
    INavigationService is available there.
    But didn't get any proper discussion on this interface for the same requirement.
    Can you please help me.
    Thanks & Regards,
    Patralekha

  • How to get the page number in the break section?

    Hi expert,
    The user wants the page number came right after the Break group name if the break section contains more than 1 page. E.g.
    ABC Compnay
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 1
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 2
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    CDE Company
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    How to get the page number in section break level?

    Hi Wes
    * Create a Field on the margin.
    * Set its "Source" to "Page Number"/"Physical Page Number".
    * Click "Page Numbering" button.
    * In "Reset At" list box, choose the Repeating frame that surrounds your detail group in the layout.
    This should cause Reports to increment the page number until the "Company" repeating frame resets.
    Regards
    Sripathy

  • Using JCom for getting the user name

    I am using jcom610-win.exe and weblogic610sp2_win.exe .I need to use the Jcom for getting the user name of the NT Iser Logged in.I have got the process for this on the page at http://e-docs.bea.com/wls/docs61/jcomreference/Security.html .But this page uses a method isCallerAuthenticated() from a class file called jcom .I looked into the whole bea directory but there was no class like in the server dir.Can you tell where to get this class from.And if this has not been provided into the jar files that come along with the installable then why is it mentioned in the page @ http://e-docs.bea.com/wls/docs61/jcomreference/Security.html

    Hi.
    You might have better luck posting this in teh jcom newsgroup.
    Regards,
    Michael
    Manoj Gupta wrote:
    I am using jcom610-win.exe and weblogic610sp2_win.exe .I need to use the Jcom for getting the user name of the NT Iser Logged in.I have got the process for this on the page at http://e-docs.bea.com/wls/docs61/jcomreference/Security.html .But this page uses a method isCallerAuthenticated() from a class file called jcom .I looked into the whole bea directory but there was no class like in the server dir.Can you tell where to get this class from.And if this has not been provided into the jar files that come along with the installable then why is it mentioned in the page @ http://e-docs.bea.com/wls/docs61/jcomreference/Security.html
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How to get the user name from Single Sign On Process?

    Post Author: sasikumar
    CA Forum: Authentication
    I am loging in Single Sign On Page. Then it goes to one JSP which lists out some links including InfoView link. While clicking InfoView link, I need to pass user name with the url for authentication. How and where can I get the user name?

    Care to be more specific what you mean with single sign-on? There are numerous ways this can be done.
    Just how you get the authenticated o/s user from within an Oracle session, depends on just how the actual authentication to Oracle was done in order to create that Oracle session.
    E.g. dealing in Oracle with a LDAP server is very different than dealing with a NT Primary/Secondary Domain Controller using o/s authentication, than dealing with a Java-based application server that does it own thing, etc.

  • Get the region name

    Hi all,
    i need to get the region name for a selected page, but i don't know how to do it.
    Does it exist a method called 'GetRegionName' or 'GetRegionId'?
    Thanks
    bye,
    Simona

    i have a page with 2 tabs and i need to get the unique name or the unique id of every tab. According to their values i have to show some information...

  • Find the page name with page sid?

    Because my top_page is dislpaying the page id instead of the name of the page
    and the output of the id is something like this
    page_id = 2,11,6_23
    Had any idea on where to find the page name?
    Thank you very much for the help

    Hi thank you for the reply...i have seen the path it was only that page name ...actually i want to e more specified like i is at the "TestPage" in the 2 tab call "test 2" is it possible to get the tab name?

Maybe you are looking for