How to submit POST data to a JSP in iFrame

Hi,
We are accessing a JSP from the iFrame from a web collaborator product ( TIBCO PortalBuilder) .
I have an iFrame where I display the application whose startup page is a JSP. I pass the userid using get method in the iFrame URL but there is a security risk as the userid is visible in the URL. In my situation I don't have any such form that I can submit when I click on the link. I want to parameters using POST method to the JSP.
Is it possible to build a request on the client side that sends the post data to JSP without using form? Kind of manually building the request.
How does the http header look like when I send request using POST method ?
Any other suggetions/ ideas
Regards,
Sunil Parmar
http://sunilparmar.com

You may find the apache commons httpclient PostMethod useful.
If it was me, I'd dropped the frames. They are a headache to develop and maintain and last, but not least, can cause bad user experience.

Similar Messages

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • How do I post data in HTML fields

    Hi.
    I need to log onto a web server from LabVIEW 7.1. I have this working in VB, but I don't know how to use the Microsoft Web Browser ActiveX object (specifically how to find the types of some variants).
    In VB, I'd do the following to post data into two fields and click a button:
    WebBrowser1.Document.frames(1).loginform.UserName.Value = "username"
    WebBrowser1.Document.frames(1).loginform.Password.Value = "password"
    WebBrowser1.Document.frames(1).loginform.Item(2).Click
    From the web browser object in LV I can navigate to the URL, and decode the Document variant which seems to be of type MSHTML.DispHTMLDocument. How do I proceed from here? How do I access the different frames, forms, data fields and buttons on the web page?
    Since variants in LabVIEW carry type descriptors internally, it'd be nice to have some way to access this so I wouldn't have to guess what object prototype to convert the variant with.
    Regards
    Steen Schmidt
    CLA and CTA. Worked with LabVIEW from 4.0 to 2010 and counting...

    Hi Steen,
    I was workin in an application of accessing frames, forms and then buttons in web pages in background...
    In labview there was a problem in the MSHTMLDocument.frames functions and so will not be able to get the frames ..
    but it is possible to access forms in a page directly...i have an eg for searchin in google..(i have attached the vi)
    I need to know whether it is possible in VB to go to a particular frame in a page and then if the frame has a form i need to login in form in that frame...
    Could you please share me the code in VB (for the same)..so that it would be helpful for me...and also is it possible to make dll in vb and use in other enviorment like VC++..
    REGARDS
    vevek
    Attachments:
    autologin.vi ‏67 KB

  • How to retrieve the data from a jsp page for print?

    i have a dynamic jsp file which will get the data at runtime.I have a print button in the jsp.When i chick the print button it should capture the data from the jsp and print it as LANDSCAPE mode. Now i am using Java Api for this
              Following code is a working sample which prints some data in LANDSCAPE mode..This is working fine....How can i modify this to get the data from a jsp?....I am using weblogic workshop for development
              package Awtjava;
              //working example
              import java.awt.*;
              import java.awt.print.*;
              public class testPrint implements Printable {
              private static String s[];
              private static Font f;
              private static int nLines;
              public static void main (String arg[]){
              s = new String[10];
              f = new Font("Arial", Font.PLAIN, 11);
              int i;
              s[0] = "This is a printer test";
              for (i=1; i<10; i++){
              s[i] = "The next line";
              nLines = 10;
              testPrint.printa();
              public static void printa(){
              System.out.println("public static void printa () ");
              PrinterJob pj=PrinterJob.getPrinterJob();
              Book b = new Book();;
              PageFormat pf = new PageFormat();
              pf = pj.defaultPage(pf);
              b.append(new testPrint(), pf, 2);
              pj.setPageable (b);
              try{
              if (pj.printDialog()){
              pj.print();
              catch (Exception e) { System.out.println ("Error"); }
              public int print (Graphics g1, PageFormat pf, int n){
              System.out.println("public int print");
              int x,y,i,fa,fh;
              FontMetrics fm;
              Graphics2D g = (Graphics2D) g1;
              pf.setOrientation(PageFormat.LANDSCAPE);
              fm = g.getFontMetrics (f);
              fa = fm.getMaxAscent();
              fh = fm.getHeight();
              x = (int)pf.getImageableX();
              y = (int)pf.getImageableY() + fa;
              g.setFont (f);
              g.setColor(Color.black);
              if (n==1){
              for (i=0; i<10; i++){
              g.drawString (s, x, y);
              y += fh;
              return PAGE_EXISTS;
              else {
              for (i=10;i<10; i++){
              g.drawString (s[i], x, y);
              y += fh;
              return PAGE_EXISTS;
              Hope you will reply soon...
              Thanks in advance
              Maria

    Hey, I got a doubt that who will call the print method in the same program and what about the g.drawString() it is showing any output effect. Finally how the variable n will get initializing to 0 and 1 for two times respectively. Can u please elaborate on this...

  • How to capture the data from a JSP form

    Hi
    I have a JSP form, My task is to capture the data from a JSP and submit to Data Base. for example I have the field like
    Enter Table name to be created in data base: The table name is to be captured by a servlet and by that table name, table should be created in the data base.
    Edited by: Reddy_Prasad on ?? ?????, ???? ?:?? ???????
    Edited by: Reddy_Prasad on ?? ?????, ???? ?:?? ???????

    Get the entered value from the jsp into servlet using request.getParameter("enteredTableName"). it will return the String,pass this table name to execute query using JDBC connection and statement objects.
    -cheers Ram

  • How to change posting date in J1IH  Code

    i posted the posting date wrongy for current date, in J1IH t code. how to change that into last march month date in table. what is the table name? how to do?

    Hi hi,
    Posting date is system date you shoudnt change it.
    What is your perticular requirement , why you want to change it?
    If you have already post the document then it is not possibe the change the posting date..
    Rgds,
    Kareena

  • How to add posting date in MB5S ?

    Sir ,
    I have been assigned the same task to add posting date in MB5S . kindly provide me steps and logic .
    First Step According to me would be to first Copy Program RM07MSAL in ZRM07MSAL using se80 .
    But How to add Filteration according to Posting Date in the Existing Logic ?
    Thanks in advance for your help .
    kindly provide me steps and logic .
    Rgds ,
    Bharti

    Hi Abap Gurus ,
    Thanks for your reply . I have already copied MB5S into Z Report through se80 . My task is that the output should come filtered according to Posting date which is not there in MB5S selection screen .
    What would be the Logic to filter according to Posting date BUDAT i.e., Table relationships and data retrival from which table .
    Rgds ,
    Bharti

  • How to submit the Data with Business rule auto executed with VBA in excel?

    Anyone knows how can I submit the data into planning with the business rule auto executed in planning?
    Currently, I am using HypExecuteCalcScriptEx () + HypSubmitData() in my program that auto executed the business rule prior saving the data into planning.
    However when it try to run HySubmitData(), the Business rule window pops up again and ask user to run the business rule again.
    Therefore, is there a way that I can submit the data with auto execute the business rule?
    many thanks, highly appreciate !!!!!!

    Hi Rafeek,
    One solution is to set the column width after manually or programmatically refresh the PivotTable, for example:
    Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
    Dim ws As Worksheet
    Set ws = Application.ActiveWorkbook.ActiveSheet
    ws.Columns("A").ColumnWidth = 10
    End Sub
    Another option is to set the column width, then protect the columns from been updated by the user, before refreshing the PivotTable, unprotect the worksheet. For example:
    Public Sub LockColumnA()
    Dim ws As Worksheet
    Set ws = Application.ActiveWorkbook.ActiveSheet
    ws.Columns("A").ColumnWidth = 10
    ws.Columns("A").Locked = True
    ws.Protect "123"
    End Sub
    Public Sub UnprotectWorksheet()
    Dim ws As Worksheet
    Set ws = Application.ActiveWorkbook.ActiveSheet
    ws.Unprotect ("123")
    End Sub
    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 change Posting Date in Accounting Document

    Dear All,
    Query: While Releasing Invoice Document (BL) for Account Posting, How can we change the Posting Date for Accounting Document (AB)?
    Explanation: User has created one Invoice on 26.02.2009. that time, Because of Missing Foreign Trade Data, No Accounting Document had been generated. Now, if today i.e. 10.03.2009, I maintain Foreign Trade Data and Release Invoice for Account Posting, The Accounting Document will be posted as on Today's Date, i.e. 10.03.2009.
    User's requirement is the Invoice Document (BL) Date and Accounting Document (AB) Date must be same, i.e. 26.02.2009.
    It shouldn't be like Invoice is getting generated on 26.02.2009 and Accounting Document is getting posted on 10.03.2009.
    Thanks in Advance.
    Amit

    Dear Michael,
    It was a User confusion with Creation Date of Invoice, Billing Date of Invoice and Posting date of Accounting Document.
    User had created Invoice on some 01.03.2009 but Kept Billing Date as 26.02.2009. So, while released Accounting Doc. on 10.03.2009 (Releasing date and not Posting Date), It gets Posted on 26.02.2009, only, and not on 10.03.2009.
    The whole confusion was:
    When User refers Document Flow (for Invoice in VF02), System shows Invoice Date as 01.03.2009, against Accounting Posting Date 26.02.2009.
    Whereas,
    When I showed FBL5N to user, BL Document and AB Document both get posted on 26.02.2009 only.
    Its Clear now.
    Best Regards,
    Amit

  • How to update posting date in WINVE idocs

    Hi Expert,
    Is there any function module OR BAPI available to update posting date in physical inventory documnet (WINVE03) idocs.
    Regards
    Rajesh

    Hi,
    Please check whether BAPI_MATPHYSINV_POSTDIFF is useful in your case.
    With regards,
    Gokul

  • How to change posting date in AFAB for previous terminated run.

    Hi Experts,
    I cannot do the depreciation run of May, the system tells me that the run of April was terminated by an error and that I have to restart the depreciation of April first. But when I try to restart it, I have to mention period 4 and then system automatically will book the run in the posting period 4. But this is no more possible, the period has been closed and results of it were reported to the Corporate. So they do not allow us to reopen it.
    Is there a way or possibility to change the posting date so we may run AFAB successfully on the current open period?
    Appreciate for your fast feedback as we will have to do the May closing soon and this has to work then.
    many thanks.

    Apart from the above solution ,another option is to restart the depreciation in April which might post additional documents in April and then post negative unplanned depreciation in April for that amount ( for this u might have to create a new transaction type where positive depreciation is allowed ) and do the repeat run. By doing this the books will not have any value impact in April 2008
    And then reverse this negative unplanned depreciation in May through regular transaction type i.e 640 or 650.
    Let me know if this helps

  • How to HTTP POST data to SAP Business Connector

    Hello,
    I would like to transfer data from a client with HTTP POST to SAP Business Connector. SAP BC acts as server. In SAP BC I created a Java service containing the code:
    IDataCursor idatacursor = pipeline.getCursor();
    idatacursor.first("node");
    Object obj1 = idatacursor.getValue();
    System.out.println(obj1.toString()); //for test
    But how can I access the data that was sent with HTTP POST in my service?
    Thank you
    Piotr Dudzik

    Hi,
    quite easy:
    StringBuffer buffer = new StringBuffer();
    String resultString = null;
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
            "<biztalk_1 xmlns=\"urn:biztalk-org:biztalk:biztalk_1\">"+
            "<header>"+
            "<delivery>"+
            "<to>"+
    "<address>urn:sap-com:logical-system:XXX</address>"+
            "</to>"+
            "<from>"+
    "<address>urn:sap-com:logical-system:YYY</address>"+
            "</from>"+
            "</delivery>"+
            "</header>"+
            "<body>"+
            "<doc:Z_RFC_CALL_NAME> xmlns:doc=\"urn:sap-com:document:sap:rfc:functions\" xmlns=\"\">"+
            ... [PARAMETERS]
            "</doc:Z_RFC_CALL_NAME>"+
            "</body>"+
            "</biztalk_1>";
            try {
                URL url = new URL(SCHEMA, this.host, Integer.parseInt(PORT), FILE);
                HttpURLConnection connection = (HttpURLConnection)url.openConnection();
                initConnection(connection);
                OutputStream out = connection.getOutputStream();
                out.write(xmlString.getBytes());
                out.close();
                InputStream reader = connection.getInputStream();
                char ch;
                while((ch = (char)reader.read()) != -1 && ch != 0xFFFF)
                    buffer.append(ch);
                resultString = buffer.toString();
                if (this.getXMLEntry(resultString, "E_STATUS").equals("E")) { // ERROR
                    System.out.println("errormessage: "+this.getXMLEntry(resultString, "E_EMSG"));
                } else {
                    // ok, is supose this is an S (success), parse the stuff
                reader.close();
            catch (Exception e){
                e.printStackTrace();
                System.out.println(e);

  • How to submit spry data to database

    Hi you all;
    I have studied the spry form submission samples but have not seen how to putthe data in the database. I know this might be more a php thing than a spry thing. This is what is in the spry sample:
    <pre><?php
        echo("<strong>Response from AjaxSubmitChecker.php:</strong> \n\n");
        echo("<strong>POST</strong>:\n");
        print_r($_POST);
        echo("<strong>GET:</strong>\n");
        print_r($_GET);
    ?></pre>
    Does any one know how to process the post or get arrays and pass them to the database? Thank you.

    i realised that its simple to query the database after you pass the form data to the submitchecker.php.
    here is a simple test that works perfectly:
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_conn = "localhost";
    $database_conn = "pricewatchers";
    $username_conn = "root";
    $password_conn = "";
    $conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);
    echo("<strong>POST</strong>:\n");
    $doinsert = "insert into   administrator_adm (user_adm, pass_adm) values ('".$_POST['textfield']."', '".md5($_POST['passfield'])."'  )";
    $result = mysql_query($doinsert) or die(mysql_error());
    if($result){
    echo "the insertion was successful";
    }else {
    echo "there was an error!";
    ?>

  • How can I post data (via soap/xml) to a web services?

    Please help. I am new to this concept.
    The web service runs at (not an actual website name) -- https://something.someone.sometms.com/cgibin/somthing.exe?Script=/someapp/some_interfaces/webservice/ws_main.wml
    The soap/xml output expected will lok similar to:
    <?xml version="1.0"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body>
    <d1:HereIsSomeData xmlns:d1="http://www.vendorname.com/namespace">
    <InputStruct>
    <HereMineData>
    <HereIsDataStruct>
    <Resource>SomeResource</Resource>
    <Date>2006-02-27</Date>
    <SomeInterval>1205</SomeInterval>
    <SomeMtrMW>5</SomeMtrMW>
    </HereIsDataStruct>
    <HereIsDataStruct>
    <Resource>SomeResource</Resource>
    <Date>2008-02-27</Date>
    <SomeInterval>1405</SomeInterval>
    <SomeMtrMW>5</SomeMtrMW>
    </HereIsDataStruct>
    </InputStruct></d1:HereIsSomeData>
    </soap:Body>
    </soap:Envelope>
    The data is in regular table with 4 columns (not an xml schema- table).

    And what does soap/xml have to do with Oracle?
    You should post this thread in the appropiate soap/xml forum to get some adequate help.

Maybe you are looking for

  • Error : The value is not set for parameter number"

    Hello All, I am getting an error message when I tried modifying a program by adding a new ID column to a database table. All DML is working except the Delete. So to look at the delete method, I am setting the parameter correctly as can be seen in the

  • Widget can't find mobileme gallery

    Question has been asked before, but is archived and not resolved. I have several mobileme galleries, but when I call up the widget in iWeb, it says I have no galleries and to post one. The galleries show up in the media browser to the side, and I can

  • I am having a probelem with one website saying it is unsecure and untrusted.Other people are not getting same message.I have tried everything.

    Hi there. I am having constant problems when trying to connect to www.pretty green.com.When going to check out it is telling me that the site is unsognes,unsecure and doesn't use encryption.Other people are not seeing this message. I have tried every

  • Ipad is asking for passcode and i have never had one

    i  updated to new operating system the other day, and when i went to use it safari was missing. i have now just turned on again and its asking for a passcode to enter but i have never used a passcode before, so i cant get in. i have synced the ipad,

  • OPM with India Localization

    Hi Folks, Now i got a project in OPM but the mandatory thing is it must be with "indian Localization". Here i need help about... 1. OPM Reference Doc. 2. OPM Organization Structure and India Localization Setup Doc. Razzy