Securing a JSP call from within the OAF

Dear All
I am calling a custom JSP file ($OA_HTML/test.jsp) from within the controller class of an OAF page using the pageContext.setForwardURL where the JSP file is registered as an AOL function, so therefore the first parameter of the setForwardURL call is the function name.
Now the whole reason of wrapping this JSP file around OAF, is to take advantage of OAF’s security framework and Apps Specific Functionality, so that we can perform various security checks and validation before proceeding with the call to the JSP page.
This is working fine and we are getting the desired result, however, there is nothing stopping someone from directly typing the call to the JSP into the browser and executing the JSP and effectively bypassing the OAF page/controller, e,g:
http://server.host.domain:port/OA_HTML/test.jsp
Now the question is, is there any way for us to either
·     Prevent a direct execution of the JSP from the URL, by placing some kind of special JSP commands, which intrinsically ties the JSP with the OA controller.
·     Inside JSP validate and authenticate a user.
·     Any other methodologies that will secure the JSP file.
Your help and Guidance is appreciated.
Thanks
Patrice

Actually there is AOL security u can use to validate whether the particular jsp is directly invoked or coming from secure session.You can use code like
WebAppsContext webAppsContext = WebRequestUtil.validateContext(request, response);
The validateContext method checks whether the session associated with the request and response streams is a valid one - if so it returns a properly validated context. If the session is invalid or expired, this will take care of displaying a login page to the user and the method will return null.
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Making an RFC call from within the VM container

    Hi all,
    since a long time I am searching for information on how to implement an RFC call from within the VMC. The problem is that we have implemented several (p)functions in ABAP and we need to implement them in JAVA.
    Now I am searching for a way how to just call the already existing pfunctions???
    Is it possible to read CRM DB tables too?
    Thank you in advance
    Boris

    Hi Freeto,
    This may be due to the Network Failures.
    If you have triggered a job then because of the Network fluctuations the system may not respond properly and cannot execute the job.
    So, this is the cause for the failure.
    Hope you understood.
    With Regards,
    Ravi Kanth

  • How can we get a url for a "Meet Now" conference call from within the Windows Store App?

    Hi,
    Is it possible to get the url for the current meeting / new "Meet Now" call from within the Windows Store app?
    You have the option of inviting your current Lync contacts, but I don't see a way of giving a URL to clients that would launch Lync on their device, or take them to the web app.
    I can see how to get the link using the Outlook plugin, for pre-scheduled meetings. Is this link always the same and the one that should be used for an impromptu "Meet Now" meeting? It would still be good to know how to get this URL from within
    the store app so I can tell clients where to get it.
    Some people may be on Windows RT devices and not have access to the plugin in Outlook, and want to start a meeting at short notice and then invite others via email or pasting a link to them elsewhere.
    Any help appreciated.
    If I have answered your question, please mark it as the correct answer. If I have provided helpful information, please mark it as so.

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Calling a concurrent request from within the trigger

    Oracle apps r12.
    Calling a concurrent request from within the trigger.
    Does it requre apps initilization.
    Thanks,
    Lavan

    Hi,
    Whether apps initialization needed or not will depend on followings
    1. Trigger is written on which table seeded or custom. In case of seeded tables, there is no need for apps initialization (although oracle does not recommend writing trigger on seeded tables).
    2. Triggering Table Update/Insert/Delete event processing is done from apps front end or Backend. In case of front end apps initialization is not required.
    Regards,
    Saurabh

  • How to call a Oracle Form from within the oracle APEX application

    Hi,
    I am new for Oracle APEX. I have a requirment where need to call a Oracle form (.fmx file) from within the Oracle APEX application.
    Can someone help me out ?
    it would be a great help.
    Thanks

    This might help you...
    http://roelhartman.blogspot.com/2008/11/integrate-oracle-forms-with-apex.html

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

  • I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • How to refer to enclosing instance from within the member class?

    Hi
    How to refer to the enclosing instance from within the member class?
    I have the following code :
    import java.awt.*;
    import java.awt.event.*;
    public class MyDialog extends Dialog
         public MyDialog(Frame fr,boolean modal)
              super(fr,modal);
              addWindowListener(new MyWindowAdapter());
         public void paint(Graphics g)
              g.drawString("Modal Dialogs are sometimes needed...",10,10);
         class MyWindowAdapter extends WindowAdapter
              public void windowClosing(WindowEvent evt)
                   //MyDialog.close(); // is this right?
    In the above code, how can I call the "close()" method of the "Dialog" class (which is the enclosing class) from the inner class?
    Thanks in advance.
    Senthil.

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • Is it allowed to make a rmi call from within an ejb??

    Hello,
    Am I allowed to make a rmi call from within an ejb such as:
    String host = "localhost";
    RemoteObject ro = (RemoteObject) Naming.lookup("rmi://"+host+"/MonServeur");
    ro.myMethod();
    package pack;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class MyRemoteObject extends UnicastRemoteObject implements RemoteObject {
        public MyRemoteObject() throws RemoteException {
        public void myMethod() throws RemoteException {
            System.out.println("toto");
        public static void main(String[] args) {
            try {
                RemoteObject ro = new MyRemoteObject();
                Naming.rebind("MonServeur", ro);
            } catch (Exception ex) {
                ex.printStackTrace();
    }Is it allowed by the spec?
    Is it good design?
    Thanks in advance,
    Julien Martin.

    Allowed - yes
    Good design - no, in my opinion.

  • Need to start JINI registrar instance from within the code

    HI All,
    I need to write JUnits for our app using JINI for which we need to start JINI registrar from within the code and then publish some services to it.
    Any idea how we could be starting the JINI registrar from Java Code ? Any thoughts/suggestions/pointers would be highly appreciated.
    Thanks in advance
    Vikram

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • Change display language of smartform from within the smartform itself

    Hi!
    The smartform is invoked to display from the standard with some language, which we want to change.
    We can't change calling code (because it's standard).
    Is it possible to change the displaying language of a smartform from within the smartform. Say, "Initialization" section?

    Hi Concern,
      We can change language at run time. With following way.
    1.    Define a variable and allocate language u want to langu fields.
    DATA  lV_CT_PARA  TYPE SSFCTRLOP.
    Here LV_lang contain the language u want to assign.
      LV_CT_PARA-LANGU  = LV_LANG.
    2. Pass it to smart form.
    CALL FUNCTION FM_NAME
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         =  LV_CT_PARA
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    Itu2019s working for me.
    Regards
    Swati.
    Edited by: Swati Namdev on Apr 28, 2010 7:06 PM

  • RetrieveJXM metrics from within the cluster?

    I would like to know if it is possible to retrieve the metrics the JMX adapter exposes from within the cluster e.g. by running a thread on the invocation service that would query the underlying data structures to get the metrics out.

    You could still snapshot the stats if you wanted to but you would have to do it using queries into the local JMS server running in the JVM rather than using Coherence API calls.
    Or, depending on what you want to do with the stats, you could look at the JMX reporter that will log stats to a file every so often or you could look at one of the third-party monitoring tolls that will do this.
    JK

  • Find out current old heap usage from within the process

    Hello!
    We use the CMS garbage collector and need a way to find out how much memory is used of the old heap by reachable objects. This we have to do from within the process (not using jvmstat or jstat etc.).
    Since there is no way to distinguish between reachable and non-reachable objects (except for traversing the entire heap... -- or are there other possibilities?) our idea is to get the amount of used memory right after a garbage collection in the old heap.
    Using Java 1.5, this can be done by
    java.lang.management.MemoryPoolMXBean pool = <Pool for Old Generation>;
    pool.getUsage().getUsed();However, java.lang.management is only available in Java 1.5.
    Therefore my first question: Is there a similar way of finding out old heap usage in Java 1.4?
    There is another problem with this method: By calling pool.getUsage().getUsed();, one has to know when a GC has occurred (this could be done by calling it in an interval of x seconds -- if the current value is lower than the one before, a GC must hava occurred). A better way would be to use pool.getCollectionUsage().getUsed();, but this seems not to work for the CMS collector.
    Second question: Is pool.getCollectionUsage().getUsed(); really not working with CMS, or are we just doing it in a wrong way? Are there other ways of finding out the used memory in the old heap after a GC even when using the CMS?
    Thanks for any help!
    Regards,
    Nicolas Michael

    Hi Nicolas,
    There is no API in 1.4 to get the after GC memory usage of the old generation. The only thing close to it is (Runtime.totalMemory - Runtime.freeMemory) but it is the approx amount of memory used for the heap (not just the old generation).
    MemoryPoolMXBean.getCollectionUsage() returns the after GC MemoryUsage. This method should work for all collectors. I have a simple test case that shows it working fine with CMS. It shows the same value as the -XX:+PrintGCDetails shows.
    If you have a test case showing that this method doesn't work correctly, please submit a bug along with the test case. We'll investigate it.
    Thanks
    Mandy

  • How to create Default Schema from within the application

    Hi friends
    I am creating users using the following within my application using this syntax
    BEGIN
    APEX_UTIL.CREATE_USER
    (:P124_USER_ID, :P124_USER_NAME,:P124_USER_FIRST_NAME,:P124_USER_LAST_NAME,' ',:P124_USER_EMAIL_ID,'xxxx');
    END;
    The default workspace for the user is set as blanks. I would like to set it to be the default workspace as per the current logged in user.
    Can you help me with the syntax for this
    thank you in advance
    Laxmi

    Laxmi,
    The subject of the post is "How to create Default Schema from within the application".
    But your question asks how to set the "default workspace" for a newly created user.
    Those are different questions and not the ones I think you need answered.
    Let me answer this question "How can you set the default schema for an account when creating the account and set it to the same value used for the default schema attribute of the administrator account used to authenticate to the currently running application?".
    In the apex_util.create_user call use named parameter notation and fetch the information about the currently logged-in user first, e.g.,declare
      l_workspace               varchar2(256);
      l_user_name               varchar2(256);
      l_first_name              varchar2(256);
      l_last_name               varchar2(256);
      l_web_password            varchar2(256);
      l_email_address           varchar2(256);
      l_start_date              varchar2(256);
      l_end_date                varchar2(256);
      l_employee_id             varchar2(256);
      l_allow_access_to_schemas varchar2(256);
      l_person_type             varchar2(256);
      l_default_schema          varchar2(256);
      l_groups                  varchar2(256);
      l_developer_role          varchar2(256);
      l_description             varchar2(256);
    begin
    apex_util.fetch_user (
      p_user_id                  => apex_util.get_current_user_id,
      p_workspace                => l_workspace,
      p_user_name                => l_user_name,
      p_first_name               => l_first_name,
      p_last_name                => l_last_name,
      p_web_password             => l_web_password,
      p_email_address            => l_email_address,
      p_start_date               => l_start_date,
      p_end_date                 => l_end_date,
      p_employee_id              => l_employee_id,
      p_allow_access_to_schemas  => l_allow_access_to_schemas,
      p_person_type              => l_person_type,
      p_default_schema           => l_default_schema,
      p_groups                   => l_groups,
      p_developer_role           => l_developer_role,
      p_description              => l_description);
    apex_util.create_user(
      p_user_id        => :P124_USER_ID,
      p_user_name      => :P124_USER_NAME,
      p_first_name     => :P124_USER_FIRST_NAME,
      p_last_name      => :P124_USER_LAST_NAME,
      p_email_address  => :P124_USER_EMAIL_ID,
      p_web_password   => 'xxxx',
      p_default_schema => l_default_schema);
    end;Scott

  • Retrieving Jar path in the HD from within the jar?

    I have a small problem. I wrote a program which is packed in a jar file and this program is able to compile and run java files (Which I do by running javac and java processes) but the kind of files that this program compiles requires some other libraries inside the same package (In the jar file) so I am wondering how can I retrieve the jar path in the harddisk from within this jar because at the moment I ask the user where the program is and I think it is kind of ugly to ask the user where the program is from within the exact same program we are looking for.
    Hope I made myself understandable.
    Best Regards
    NooK

    Thanks for the answer. I mistakenlly ended writing a new thread (New to the forum)
    but if you would kindly look here, I have other problem now which I have been working on for a whole day.
    http://forum.java.sun.com/thread.jsp?thread=524717&forum=31&message=2514471
    Best Regards
    NooK

Maybe you are looking for

  • Adobe Reader XI AppV with Office 2013

    Dear all, I've deploy Adobe Reader XI to RDS farm succesfull. The users can open PDF documents and so on. There is also Microsoft Office 2013 Professional (locally) installed on the Windows 2008 R2 RDS. No, I would not deploy Office 2013 via AppV due

  • Pp order actvity tables

    hello , masters , i am searching of tables related to pp-co in which i can find  production order no, actvity , activity plan quantity , actvity actual quantity, activity text.

  • APO Client

    Can u Clarify that APO Client is different from R/3 Client Can we use R/3 Client AS APO Client? N .Prem Nivas

  • Adobe reader over writes all other icons on the screen

    Does any one know about the adobe icon over writing other icons and reverts back after adobe is removed??

  • Query using WSDL 2.0 cannot fetch the fields other than type string

    I'm trying to query the fields with different data types using WSDL 2.0 in C#. But the response I get is having only fields with String data type. Please let me know if I need to set anything in the XML request to fetch all the fields. Request: <?xml