How to get the filename of the active jsp page?

how can i get the filename of the active jsp page?

You could register the JSP [ages in the web.xml and then use the ServletConfig.getServletName.
You could use the JspContex.getServletName which will return the registered name or the name of the servlet class.
You could programmatically add a page context attribute that holds the jsp page name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to get the active application users IP address in R12 by sql command

    Hi ,
    I need to know how to get the active application users IP in R12 by sql command
    in order to kill any session by the IP address ?
    Am working on 12.1.3 Application
    And 11.2.0.3 Oracle Database
    Thanks

    936921 wrote:
    Am still couldn't found the IP address for the connected Application users.
    If there any select statement can help me with that?
    Really? Then how do you explain me finding the following docs from the links I referenced above?
    How To Find The IP Address Of The Client Machine From Where A Particular Forms User Is Connected ? (Doc ID 879092.1)
    How to Track IP Address of the Form Session in Oracle application 11i (Doc ID 878931.1)
    Where to find the Client IP Address for a Client in E-Business Suite? (Doc ID 1258415.1)
    How To Get The terminal ID For The Machine From Which A User Is Logged To E-Business Suite Applications (Doc ID 751658.1)
    Thanks,
    Hussein

  • RRB-How to get the activity description instead of WBS element in the bill

    Dear All,
    I am using RRB DIP profile to do my Resource related billing
    RRB-How to get the activity description instead of WBS element in the billing
    document.Now  iam able to get the cost and the quantity used as line items but instead of getting the respective line items in the invoice iam still getting the WBS
    element description for all the activities.Can some body guide me to overcome this problem.
    Assured reward points for your suggestions and help.
    Thanking you,
    Best regards,
    R.Srinivasan

    Dear All,
    Please can any body help me for the same.IT is urgent.I will award you points.
    thankyou,
    Best regards,
    R.Srinivasan

  • How to get the Pdf's page size?

    Hi,
    Anyone can tell me how to get the pdf's page size with js in acrobat?
    Regards
    Goldbridge

    The page size will not always necessarily conform to a standard size such as A4 - PDFs can be defined at any abstract size a user wants. Having a function that only output standard sizes would greatly limit its ability, so it was left up to the user to calculate whether or not the returned rectangle is a standard size as that satisfies many more workflows than the opposite method.

  • Unable to get the AppsLocalLogin.jsp page

    Hi,
    We are on oracle Db 11.2.0.2 and EBS : 11.5.10.2 on Solaris Sparc 64 Bit 5.10.
    We have recently added a web node to an existing setup.
    Although Apache services are up , but we are unable to get the AppsLocalLogin.jsp page.
    Replacing the domain name and Ip in line 4  with HOSTNAME.DOMAIN_NAME/IPADDRESS
    We have found the below error in the Jserv log :
    [12/04/2012 20:09:38:868 IST] <info> ApacheJServ/1.1.2 is starting...
    [12/04/2012 20:09:38:868 IST] <debug> using confFile /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties
    [12/04/2012 20:09:39:016 IST] <info> Connection authentication enabled
    [12/04/2012 20:09:39:045 IST] <info> Connection allowed from HOSTNAME.DOMAIN_NAME/IPADDRESS
    [12/04/2012 20:09:39:045 IST] <info> Connection allowed from /127.0.0.1
    [12/04/2012 20:09:39:046 IST] <debug> port 16000 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16001 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16002 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16003 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16004 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16005 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16006 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16007 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16008 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> port 16009 is specified in properties file
    [12/04/2012 20:09:39:046 IST] <debug> try to start on port 16000
    [12/04/2012 20:09:39:050 IST] <debug> try to start on port 16001
    [12/04/2012 20:09:39:050 IST] <debug> cannot create socket on 16000
    [12/04/2012 20:09:39:051 IST] <debug> cannot create socket on 16001
    [12/04/2012 20:09:39:051 IST] <debug> try to start on port 16002
    [12/04/2012 20:09:39:051 IST] <debug> cannot create socket on 16002
    [12/04/2012 20:09:39:051 IST] <debug> try to start on port 16003
    [12/04/2012 20:09:39:051 IST] <debug> cannot create socket on 16003
    [12/04/2012 20:09:39:051 IST] <debug> try to start on port 16004
    [12/04/2012 20:09:39:051 IST] <debug> cannot create socket on 16004
    [12/04/2012 20:09:39:051 IST] <debug> try to start on port 16005
    [12/04/2012 20:09:39:052 IST] <debug> cannot create socket on 16005
    [12/04/2012 20:09:39:052 IST] <debug> try to start on port 16006
    [12/04/2012 20:09:39:052 IST] <debug> cannot create socket on 16006
    [12/04/2012 20:09:39:052 IST] <debug> try to start on port 16007
    [12/04/2012 20:09:39:052 IST] <debug> cannot create socket on 16007
    [12/04/2012 20:09:39:052 IST] <debug> try to start on port 16008
    [12/04/2012 20:09:39:052 IST] <debug> cannot create socket on 16008
    [12/04/2012 20:09:39:052 IST] <debug> try to start on port 16009
    [12/04/2012 20:09:39:052 IST] <debug> cannot create socket on 16009
    ApacheJServ/1.1.2: Failed to bind to port(s) specified in /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties.  Please check /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties and jserv.conf file, and make sure number of JServ process specified in jserv.conf is less than number of ports specified in /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties. and the ports are not used by other processes.
    [12/04/2012 20:09:39:053 IST] <critical> ApacheJServ/1.1.2: Failed to bind to port(s) specified in /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties.  Please check /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties and jserv.conf file, and make sure number of JServ process specified in jserv.conf is less than number of ports specified in /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties. and the ports are not used by other processes.The IP of this web node is different from the IP mentioned in the log, at line 4.
    Regards
    KK

    Hi;
    ApacheJServ/1.1.2: Failed to bind to port(s) specified in /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties. Please check /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties and jserv.conf file, and make sure number of JServ process specified in jserv.conf is less than number of ports specified in /pch3/oracle/external/prdora/iAS/Apache/Jserv/etc/jserv.properties. and the ports are not used by other processes.Please check your port is avaliable or not also check related path
    Regard
    Helios

  • I am getting ready to wipe a PC clean but wanted to know how to get the activation code for the Version of Adobe reader that is currently installed on the PC?

    I do not have the activation code for this PC and need to know how to get the software loaded back on it after a clean install of the OS and other programs.

    If you use any additional subscription services to Adobe Reader, they are activated with your Adobe ID & password.

  • How to get the activity of a user?

    Hi Experts,
    How can we get the activity of a user i.e. Which transaction a particular user has gone or some activity log on a particular date? Any table, FM or Tcode. I have already checked the STAD and SM20 transactions. Some authorization problem. So anything except these Tcodes would be helpful. Thanks in advance.
    Regards,
    Prashant.

    >
    santhosh kumar wrote:
    > Hi,
    >
    > I guess if it is not updated or traced under STAD means, i.e. related to authorization failures etc.. kind of stuff will be saved at runtime only in the SAP memory.
    >
    > As it is stored in the buffer, can not be traced in any of the transaction.
    > You should request the user to save and send the screen shot of the SU53 of the user whenever he gets some authorization issue.
    >
    > Based on that, by looking into the SUIM transaction, it can be known whether he is authorized or not, which roles have been assigned etc.. kind of details.
    >
    > Regards,
    > Santhosh.
    Hi Santosh,
    Actually I am doing a root cause analysis for which I need to know whether a particular user has used a particular TCode. I guess the STAD will display only the current data, is there a TCode to display historical data related to user accessing a particular data. Note: I don't have basis authorization.
    Regards,
    Prashant

  • How to get the activity instance id and process id

    Dear All,
    For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
    // dynamically assign a user to a role
    rtm.addRuntimeDefinedUserToRole(
                      // process instance
                      prInstance,
                      // role name
                      "Processor",
                      // user that is assigned (IUser)
                      user,
                      // user context (IGPUserContext)
                      userContext);
    // dynamically change the user assigned to a role for a particular task
    String prInstanceID = prInstance.getID();
    rtm.changeTaskProcessor(
                      // process instance ID
                      prInstanceID,
                      // activity instance ID
                      activityInstanceID,
                      // current user (IGPUserContext)
                      currentProcessorContext,
                      // new user (IGPUserContext)
                      newProcessorContext);
    But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
    Any gentllement can give me an idea.
    Thank you.
    Regards
    Eric

    process =  GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  // by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
                                                 /* and the user accessing it */ userContext);
         //          retrieve the Runtime Manager
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         // create an empty role assignment list
         IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
         //Initialising the input params
         IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
         params.setAttributeValue("Name",value);
         //Starting the process
         IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user);

  • How to get the no of pages in a report?

    Hi All,
    I have a requirement to get the number of pages in the crystal report.
    I found that the following method of IReportSource gives the value.
    public int getLastPageNumber(com.crystaldecisions.sdk.occa.report.application.IRequestContext requestContext)
                          throws java.lang.NullPointerException,
                                 ReportSDKException
    But the issue issue is with the paramter requestContext. How can I get this requestContext.
    Appreciate your time.
    Regards,
    Anil Chowdary K

    Because of the page on demand feature, by default there is no clean way to get the page number, because each page is generated as requested.  To get the total page count, the viewer must render the entire report first.  The easiest way to accomplish this is to use the CrystalReportViewer object and call the showLastPage() method, then using the CrystalReportViewer object generate a ViewInfo object, and call the getPageNumber() method.
    For more information review the Viewer documentation in our [SDK Library|http://www.sdn.sap.com/irj/sdn/bi-sdklibrary].

  • How to get the number of page by creating OLE microsoft word document

    Hihi Experts,
    I have generated a word document using ole in sap abap report.
    May i know which command can i use to call the word object to get the number of page before closing the word document?
    eg. call method of wordobj 'insertpagefield' ? and i need to require the page number in a variable eg. gv_pagenumber for other filtering purposes.
    Thanks and Regards,
    li Hui
    Edited by: lihui lil on Aug 11, 2009 9:35 AM
    Edited by: lihui lil on Aug 11, 2009 12:36 PM

    hi,
    use the following code:
    CALL METHOD OF gv_selection 'Information' = gv_curpage
        EXPORTING
        #1 = 3. " get current page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = gv_curpage. "show current page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = ' of '.
      CLEAR gv_endpage.
      CALL METHOD OF gv_selection 'Information' = gv_endpage
        EXPORTING
        #1 = 4. "get total page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = gv_endpage. " show total page number
    Edited by: VoonHan on Oct 13, 2009 7:35 AM

  • How to get the active Paragraph?

    I have following TLF XML:
    private var text:XML =
    <flow:TextFlow fontSize="20" paddingRight="50" paddingBottom="50" paddingTop="50" paddingLeft="50" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008">
            <flow:p>
                     <flow:span>Hallo liebers Programmili... du tust schon langsam meinem koepchen weh</flow:span>
            </flow:p>
    </flow:TextFlow>;
    I try to get the Paragraph for a selection inside the text using following Methodes:
    var index:int = tf.interactionManager.anchorPosition; // i get 29 here
    var child:FlowElement = tf.getChildAtIndex(index); // undefined - it should be the flowElement containing the text... <flow:span></flow:span>
    var para:ParagraphElement = test.getParagraph();//undefined - it should be the paragraph
    I really started to enjoy the new framework... but now i am getting really mad
    Can anybody imagine what i am doing wrong? The undefined itself makes me suspicious... shouldn't it be null?
    Help would be much appriciated!

    You are confusing index and position.
    What you want is:
    var position:int = tf.interactionManager.anchorPosition;     // this is a position not an index
    var leaf:FlowLeafElement = tf.findLeaf(position);     // maps a position to a leaf
    var para:ParagraphElement = leaf.getParagraph();     // find the leaf element's owning paragraph
    Also consider whether you want the anchorPosition or the activePosition.  In a point selection they are the same.  In a block selection the anchor is where the block began and the active is the end being modified by the UI (mouse dragging and keys).
    Hope that helps,
    RIchard

  • Formatted Search: How 2 get the active value

    Hi ,
    I defined a simple FS to learn, but keep getting the same values for different codes.
    Shortly, I have 2 tables, first one (
    REASON) keeps ReasonID,Reason Description, etc.
    In the second one (MAIN) I enter other unrelated data and ReasonID.
    I wanna get Reason Description from REASON table into that MAIN table by the help of FS. So I defined something like that:
    SELECT T0.U_ReaDesc from .[@REASON]  T0 , .[@MAIN] T1 WHERE T0.U_ReasonID = T1.U_ReasonID</b> 
    When I use this query, I keep getting the same reason description for different reason codes, actually the description of the first data in the REASON table.
    Ouery settings : Search By Saved Query - Auto Refresh - When exiting altered column - Column "REASONID "- Refresh regularly
    I guess, I have to add or change something in the query, so that I can refer to the <u>activ ReasonID value</u> in the MAIN table and get the descr. for it.
    (Sorry if this subject is handled before but I couldn't find anything related in SDN.)

    Hi Gul,
    Why don´t you download the help files from the SBO marketplace?
    You can find a document about the FS under Service & Support SAP Business One  Knowledge & Services  Knowledge Base Customizing Formatted Searches.
    There it explains lot of things about them.
    The FieldId is the variable number seen when you are in debug mode. ColID is used only for matrix columns. And you could use 0 for the format is no formating is needed.
    Regards,
    Ibai Peñ

  • How to get the number of pages in a PDF file with AcroPDF ActiveX control

    Hi,
    I am using the AcroPDF ActiveX control provided by Acrobat Reader and Professionals(version 9). I just wonder if I using LoadFile to load a PDF document, how can I know the number of pages in that PDF? I do not find any properites or methods that can do that.
    Thanks
    Alan

    Hi unk2,
    There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
    Please let us know if you need additional assistance.
    Best,
    Sara

  • How to get  the number of page which exists the change bar ?

    In FDK development, I want to find the number of page which exists the change bar.

    zhaopeng,
    You can get the page number by querying the FP_PageNum property of the FO_Page object:
    pageNum = F_ApiGetInt(docId, pageId, FP_PageNum);
    ...or you can use FP_PageNumString if you are using string page numbers.
    If you do not have the ID of the FO_Page object, you can get it from the paragraph ID using the following function, courtesy of Rick Quatro, posted to the Yahoo Framedev list. Send the paragraph (FO_Pgf) ID as oObj and it will return the page ID:
    F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
    F_ObjHandleT oFrame = 0;
    IntT iObjType;
    F_ObjHandleT oRow, oCell;
    while(oObj)
    oFrame = oObj;
    iObjType = F_ApiGetObjectType(oDoc, oObj);
    switch(iObjType){
    case FO_SubCol:
    oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
    break;
    case FO_Tbl:
    oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
    oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
    oObj = oCell;
    break;
    case FO_Row:
    oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
    oObj = oCell;
    break;
    case FO_Cell:
    // handle FO_Pgf case
    case FO_Pgf:
    // handle FO_AFrame case
    case FO_AFrame:
    oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
    break;
    // handle graphic object cases
    case FO_TextLine:
    case FO_TextFrame:
    case FO_UnanchoredFrame:
    case FO_Arc:
    case FO_Ellipse:
    case FO_Group:
    case FO_Inset:
    case FO_Line:
    case FO_Math:
    case FO_Polygon:
    case FO_Polyline:
    case FO_Rectangle:
    case FO_RoundRect:
    oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
    break;
    default:
    // prevents loop if unknown object type is found.
    oObj = 0;
    break;
    if(oFrame){
    // Use FP_PageFramePage to get the page identifier of the object.
    return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
    else
    return(0);
    Russ

  • How to get the number of pages when assemble pdf with DDX

    Hi,
         I have tried to add two bookmarks to one pdf with DDX(in java code),
         the first bookmark I shall add to the first page,and the second I shall add to the second page....
        the question is:
         If the pdf has only one page, I will not add bookmarks to the pdf. so I need to get the pages of pdf before my processing.
        but I did not found any APIs in the SDK about it .
         Can anyone help me.
         thanks.

    I have solve the problem myself
    I use the tag "DocumentInformation" in DDX and get the xml after invoking DDX,
    the xml contain the information of document
    the sample DDX as:
         <?xml version="1.0" encoding="UTF-8"?>
       <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
               <DocumentInformation source="mergedPDF" result="doc_info.xml" />
       </DDX>

Maybe you are looking for