Adding automatic header using OC4J

Hi,
I have a web application coded in pure java and deployed to an OC4J container. In that application, I used iFrame to open a new session in another server in the frame. The new frame shows Oracle BI reports, as if it is a part of the developed application. However, as the security settings of Internet Explorer, the session is lost in the frame, and the frame forwards itself to the logon screen of the BI application. This can be solved by lowering security settings of IE, however, as there is hundreds of users and we don't want to change the IE security settings.
Searching through web, I have found that, adding header information to the target application solves the problem, too. This can be done by the following (I am not sure whether this is Java or C# code, bu I am sure, this can be done in each):
HttpContext.Current.Response.AddHeader("p3p", "CP=\IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\");
However, as the target application to be opened is a packaged application by Oracle (oracle BI), we cannot add this header information to the application.
Finally, my question is: Is there a way to add this header information directly into OC4J so this is added to BI pages and I can restore my session?
I hope I made myself clear enough :)
Thanks a lot
Özgür

Hey Zvika,
Chek out this website:  http://zone.ni.com/devzone/cda/epd/p/id/4759
NI doesn't support any changes in the xsl however so if you change it you are on your own.  You can look to this website for help with that: http://www.w3.org/XML/
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • How can i get a file header using this method cl_gui_frontend_services= gui

    Hi Experts,
    How can i get a file header using this method cl_gui_frontend_services=>gui_download
    Thanks
    Basu

    Hi,
    You can use the FM - GUI_DOWNLOAD to specify the headers. It can be done in the following manner -
    TYPES: BEGIN OF ty_head, "Structure for header
                 h(10) TYPE c,
                 END OF ty_head.
    DATA: it_head  TYPE TABLE OF ty_head WITH HEADER LINE.
    "Adding header details
    it_head-h = 'Field1'.
    APPEND it_head.
    it_head-h = 'Field2'.
    APPEND it_head.
    it_head-h = 'Field3'.
    APPEND it_head.
    it_head-h = 'Field4'.
    APPEND it_head.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = p_file
       filetype                        = 'ASC'
       write_field_separator           = 'X'
       header                          = '00'  "<= note this
      TABLES
        data_tab                        = it_tab
       fieldnames                      = it_head[] "<= Pass your header table here
    EXCEPTIONS
       OTHERS                          = 1.
    Hope this helps.
    Regards,
    Himanshu

  • Creating automatic header in abap editor

    Hi
    I want to create an automatic header in abap editor as soon as program is created instead using patterns.
    for e.g. when i create a new report below template comes, i want to replace with my custom header template.
    *& Report  ZXXX
    REPORT  ZXXX.
    Any clues,
    Regards
    Swatantra

    you need to modify table TSE05 - for APP_OBJ = ADDM and keyword = REPORT
    with your own pattern.
    you can also use FM RS_MODIFY_TSE05 for that.
    Regards
    Raja

  • Adding new header in doFilter()

    Hi all..
    I'm having problem.. with adding customized header in my application...
    Here's a sample of my code....
              try {
    HttpServletResponse httpRES = (HttpServletResponse) res;
              if (!httpRES.containsHeader("cpa_cp_id"))
    httpRES.addHeader("cpa_cp_id","hi");
                        chain.doFilter(req, res);
              } catch (Exception ex) {
    Is there something else I had left out??
    Thanks..

    That page (inside another server) which I'm calling
    requires me to add new header information (once
    again, not session nor request.getParameter()).
    Hope you'll understand my situation...Your original code does that. So no, I don't understand your situation. Unless it's this:
    I'm unable to retrieve the new header valueSo what? You can't retrieve a header from the servlet response in any case. Using a HttpServletResponseWrapper doesn't change that fact. If you've got a design that wants to retrieve headers from the servlet response then you've got a design that wants to be changed.
    Note that you DO have a "containsHeader(String)" method to see if the response contains a certain header.

  • Using oc4j Jaas with external user-base

    Hi,
    Im evaluating the possibility of migrating my application from BEA Weblogic 7.00 to Oracle9iAS. I Use OC4j 9.0.3 for the migration proof.
    My Weblogic application uses a LoginModule, written by us which access our existing user-base (stored in an rdbms).
    We use proprietary Principal classes and update the Subject when a login 'transaction' is committed.
    Our EJB code (which is the resource we want to protect) includes role definitions and the specific weblogic deployment-descriptors includes mapping between the roles defined in the ejb dd and the principal names we return with the login-module.
    I have some questions:
    1. How can i perform a similar mapping (propriatary principal names to ejb roles), do i have to declare all those principals in jazn.data?, where do I have to declare them?
    2. Can i disregard the UserManager concept?
    3. Do i have to implement a LoginContext on my own?
    4. Do I need to explicitly call LoginCOntext.login in my login code or is it automatically done (please elaborate)?
    5. Do i have to keep using RealmLoginManager along with my LoginModule?
    6. Where is the preferable place for putting the login module (application’s ear file?)
    7. Can i use any LoginModule which simply implements the JAAS LoginModule interface?, are there any specific oracle behavior/requirement i should know about?
    8. What is the class name for the JAZN class which serves as the default LoginContext?
    Note: I dont want to integrate with OID or manage the user-base using Oracles JAZN-XML, i want to simply integrate with my own existing user authentication data and use it for authorizing calls to EJBS.
    Thanks in advanced,
    Yuval.

    sorry for delay in repsonding.
    I only use my LDAP directory to manage poeple and groups but not organisational units.
    When a user logs in using BPM, you view the details for a person in process administrator or view a groups members etc that information is then stored in the bpm database. That information is refreshed whenever the directory service is polled. The frequency of this is determined by the value of 'Directory Polling Interval' set under the Other tab of your engine.
    I don't belive the user passwords etc are stored in the bpm database only meta information about people and groups and therefore your directory service must be available whenever a user tries to login to workspace etc.
    Hope that helps,
    Mike.

  • How to run a 10g Report from form in client using OC4J

    Hi,
    Every time we make a report, in order to test it we have to deploy in application server.
    In our application we make the report is written as a PDF in the server and shown in the client browser using WEB.SHOW_DOCUMENT.
    Is there a way we can do this in the development environment?
    Like this: I create a report (i.e. RDF). Now in my development machine I want the form (we use a Oracle Form as a parameter form, not the Reports para form) to have a button, and when I press this button the report has to run, create the PDF in my machine and show it my client browser.
    How to do it using OC4J??

    Steps to take.
    (1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
    (2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
            (a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
                   or, if it does not work
            (b.) Add D:\OracleDevR2\bin to the system env. variable PATH
    (3.) Start OC4j
    (4.) Now you can access the jobs using URL like:
        http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
          where 192.161.11.143 is your machine's IP address.

  • How GET Output to Excel with Oracle9i Report using OC4J

    how GET Output to Excel with Oracle9i Report using OC4J.
    I FINISHED THE SETPS CONCIDERING THE JSP CODE NEEDED TO GET THE EXCEL OUTPUT ON LOCAL MACHINE.
    I NEED TO PUBLISH THIS REPORT THROUGH APPLICATION SERVER.
    THE QUESTION IS:
    1- HOW TO START AN OC4J INSTANCE FROM ORACLE 9I DS FOR THIS REPORT?
    2- WHERE (PATH) TO PUBLISH THE REPORT ON THE APPLICATION SERVER?
    3- WHAT IS THE DEFAULT URL TO RUN THIS REPORT AND WHERE TO PUT IT?
    4- HOW TO MAKE MAPPING FOR DIRECOTRY PATH TO TRANSLATED AS URL FOR THIS REPORT?
    5- IF ANY ONE CAN GIVE ME THE FULL CODE TO RUN AND CALL SIMPLE JSP REPORT TO BE VIED IN INTERNET EXPLORER.
    THANK YOU

    Hi,
    I can't answer to all your questions, however I can tell you that:
    2) The directory where to put the report file is specifiend in a file named
    <serverName>.conf
    in the sourceDire property
    <property name="sourceDir" value="/directory/dove/mettere/i/report"/>
    that you can find under ORACLE_HOME/reports/conf
    3) The URL is
    http://<server IAS address>:<port number>/<jsp file path>/<repName>.jsp?server=<report server name>&userid=<user>/<pwd>@<DB conn string>[&<param>=<valore>[&...]]
    5) In IE you have only to set the previous URL in the address bar.
    Hope this helps you
    Bye
    Raffy

  • How can I change excel column header using Labile.

    Dear Experts,
                          How can i change excel column header using LabVIEW.
    Thanks for any and all help!
    M.S.Sivaraj.
    Sivaraj M.S
    CLD

    As I said in my previous post, column headers in Excel are merely row 1 cells. May be I missing something here, so please be more explicit with your question.
    I guess you are using the Excel Report tools, and you want to modify an existing sheet. From my limited experience with the Excel Report tools, it is not possible to open an existing woorkbook (except as template...), so the answer to your question should be "Forget it"...
    The work around is to use the example I pointed for you before, and either to write the whole new colum headers as a string array, starting in A1, or to write a single string to a given cell in row 1.
    Hope this helps 
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to Use / Configure Eclipse Ganymede to use OC4J in SOA / OAS

    Hi all
    Just wanted to share this with you all,
    For quite a while now I've been trying to get eclipse to add applications and delopy applications to the OC4J embedded in the OAS/SOA but found very little help out there but I seem to have found a work around
    I know that I could have used the OC4J standalone but we needed to use the one in the SOA
    Note that the OC4J found in OAS/SOA components is managed by OPMN so you cannot stop or start it from eclipse however you can deploy applications and BPEL processes to it from eclipse. You can also associate applications with the oc4j in the OAS in your eclipse project. If you need to stop and start OC4J in the OAS, then use opmnctl.
    The reason eclipse will not use OC4J in the SOA/OAS is because eclipse tries to start the OC4J but seeing as that is managed by opmn, it fails but if you had a way of telling eclipse that it it did not need to start the OC4J (it has already been started), then eclipse will use it happily without trying to start it
    Here goes
    Start the SOA/OAS Components using opmnctl startall from command prompt
    In Eclipse Goto Window > Show View> Other > Server > Server
    The Server View should now open up
    Right Click > New > Select your version of the OC4J > Click Next > Point the Oracle J2EE Home to OAS_HOME\j2ee\home > Click Next > Fill in Details as they apply to you > Next > Select Any applications(If any )that you want associated with the OC4J and click Finsh
    The the server state should say “stopped”
    Close Eclipse
    For (OEPE i.e. Oracle Enterprise Pack for Eclipse)
    Open the plugin.xml file found at ECLIPSE_HOME\dropins\wtp\eclipse\plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805140145\plugin.xml
    If you don’t have the above folder structure, then you maybe using the Standard version of Eclipse Ganymede in which case it may be @ ECLIPSE_HOME \plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805140145\plugin.xml
    Search for the following String "<extension point="org.eclipse.wst.server.core.serverTypes">"
    Make sure the id attribute for the serverType element corresponds to your version of the OC4J in the OAS i.e. id="org.eclipse.jst.server.generic.oracle10131". This corresponds to 10.1.3.x i.e. 10.1.3.1 and above
    Either change the value of the initialState attribute to initialState="started" ot remove the initialState="stopped"
    Save the file
    If you are using OEPE, then there is a further step, you need to open %ECLIPSE_HOME%\ configuration\org.eclipse.core.runtime and delete .mainData.1. It will be recreated once eclipse starts up again
    It seems that OEPE writes server information to this file and will not read the plugin.xml if this file exists. This rule applies to every change that you make to \plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805140145\plugin.xml
    Startup eclipse
    The server state should now say “started” i.e. if you used initialState="started"
    You should now be able to deploy your BPEL Process or Other application to the OC4J in the OAS
    This workaround is only valid if the SOA Components are running
    Happy programming
    NOTE. If you need to Stop and Start the OC4J, you will need to use opmnctl from outside eclipse. Trying to stop and start the OC4J from eclipse will fail as OC4J in the OAS is managed by OPMN.
    Hope this helps someone out there!!!

    Hello,
    Java Beans Integration
    http://forms.pjc.bean.over-blog.com/article-4018331.html
    Hope it helps,
    Jose.

  • Problem setting Unicode (utf-8) in http header using tomcat

    Hi:
    I am trying to set a file name in utf-8 to http header using the following code:
    response.setContentType("text/html; charset=utf-8");
    response.setHeader("Content-disposition", "attachment; filename=&#35299;&#27770;.zip");
    // I actually has file name in utf-8 here to set to the header, and I know that the name is correctly
    // and I also looked into the response object MimeHeaders object and saw the head is correctly there
    then write the content of zip file using ServletOutputStream.
    The problem I have is that the file name is not displayed correctly when prompted to save or open in the pop up window next. I found out using Fiddler that the request header is wrong:
    Content-disposition: attachment; filename=&#65533;zn&#65533;�.zip
    I am using Tomcat 5.0.28. Any idea how to get this working?
    Thanks in advance!

    You are setting the charset for the content to be UTF-8. (That is why the method is called setContentType.) But HTTP headers are not part of the content and so that has no effect on the header.
    The original specification for HTTP only allowed US-ASCII characters in headers. It is possible that more recent versions have features that allow for non-ASCII header data, but I don't know if that is the case or how you would use those features if they exist.

  • How can i add a table header using DefaultTableModel?

    Im having problems finding examples of creating a table header using the DefaultTableModel. Can anyone point me in the right direction?
    so far i am able to create a table and add rows, but i need the first row to be the header with title and i am not able to do that with this model.
    Below is an excerpt of what i have thus far...
    JTableHeader header = new JTableHeader();
            checkOutTable.setModel(tableModel);
            checkOutTable.setRowSelectionAllowed(true);
    private DefaultTableModel tableModel = new DefaultTableModel(
                new Object [][] {
                        {"Item ID", "Title", "Type", "Serial ID", "Status", "Response", "Print"},
                    new String [] {
                        "TITLE 1", "TITLE 2", "TITLE 3", "TITLE 4", "TITLE 5", "TITLE 6", "TITLE 7"
                ){Class[] types = new Class[] { java.lang.Object.class,
                        java.lang.Object.class, java.lang.Object.class,
                        java.lang.Object.class, java.lang.Object.class,
                        java.lang.Object.class, java.lang.Object.class };
                public Class getColumnClass(int columnIndex) {
                    return types[columnIndex];
                }};

    Use the constructor that takes a Vector of column names and a row count.
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/DefaultTableModel.html#DefaultTableModel(java.util.Vector,%20int)

  • How can I make the status bar hide automatically when using safari?

    How can I make the status bar hide automatically when using safari?

    When Safari is in FullScreen mode, menu bar will be hidden.
    Safari window to fit the screen?
    Move the mouse pointer to the bottom right corner of the Safari window.
    Double arrows will appear. Drag it to resize the window to fit the screen.

  • How to show the VALUE as the Column Header using SQL query?

    Hi
    I have a requirement to show the picked value as the column header using SQL query.
    Example:
    ======
    SELECT EMPNO FROM EMP
    WHERE EMPNO=7934;
    Result Should be:
    7934
    7934

    I have a requirement to show the picked value as the column header using SQL query.In sql*plus you can do
    SQL> set verify on
    SQL> def e =  7934
    old: SELECT empno "&&e"  FROM emp  WHERE empno = &&e
    new: SELECT empno "7934"  FROM emp  WHERE empno = 7934
    SQL> SELECT empno "7934"  FROM emp  WHERE empno = 7934
          7934
          7934
    1 row selected.

  • Email adress adding automatically to contacts. How can I deactivate this to happen?

    Each email that I send got their adress added automatically in 'contact' or 'adress book'. How can I stop this to happen?

    I'm very glad that helped!
    It's good you looked in the Manual first. Certainly not everyone does that.
    With Apple products, I've found that not everything is completely documented, but sometimes if you try something that seems like it should work, it actually does work.
    That's how I personally learned about this feature.
    Enjoy your Apple gear!

  • Changing colors in webdynpro page header using themes

    hi all,
             I have created  a webdynpro page. how to change the color webdynpro page header using themes.
    where to make changes in the themes.
    Regards,
    Shanthakumar

    Hi
    Check it out
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3ea0d790-0201-0010-80b8-b680496a3838
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d2b1d790-0201-0010-25b7-d1fb059a8ad9

Maybe you are looking for