Open URL, use POST method in new window

From a Java program, how do we open a https connection, basically a secured site, in a new window and pass some parameters to the link, using POST method?

Hi
Is JavaProgram a Applet or Servlet?
Opening a new window directly from server,probably not possible? From your question
what I understand is, A html page is displayed
and when u click on a link opens a new window.
The parameters to the link should be posted using POST method, again
it is not possible this can be done only by appending
"?name1=value1&name2=value2..."to the link
Vinay
[email protected]

Similar Messages

  • Opening URL for report in a new window

    I have a report with URLs to other reports, and also to dialogs in Dynamics CRM. The URLs all work perfectly, however, I want to open the reports the URLs point to (and the CRM dialogs) in a new window. I tried adding &rc:LinkTarget=_blank to the
    end of the URL, but that causes an Invalid Parameter error:
    >System.InvalidOperationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #969F3622: System.InvalidOperationException: CRM Parameter Filter - Invalid parameter 'rc:LinkTarget=_blank' in Request.QueryString
    on page /Company/cs/dialog/rundialog.aspx
    >The raw request was 'GET /Company/cs/dialog/rundialog.aspx?DialogId=%7bc4918a58-6faa-4915-8620-1ebfb1980263%7d&EntityName=phonecall&ObjectId=%7bC51D5ECC-DF43-E411-BC10-00155D3FE201%7d&rc:LinkTarget=_blank' called from
    http://vulcanbasevm/Reports/Reserved.ReportViewerWebControl.axd?ReportSession=bzys1s55lpwiai55sny1borg&ControlID=e5c10494dc3048b199babe9e2aabd82a&Culture=6153&UICulture=9&ReportStack=1&OpType=ReportArea&Controller=ctl143&PageNumber=1&ZoomMode=Percent&ZoomPct=100&ReloadDocMap=true&SearchStartPage=0&PageCountMode=Estimate&LinkTarget=_top.
    >   at Microsoft.Crm.Application.ParameterFilter.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source, EntityType pageEntityType, FormAdditionalAllowedParameters additionalAllowedParameters)
    >   at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp)
    >   at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp)
    >   at Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters()
    >   at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
    >   at System.Web.UI.Control.InitRecursive(Control namingContainer)
    >   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Hi ,
    You can try with below ;
    ="javascript:void(window.open('http://www.google.ca','_blank'))"
    I use google url you can type your URL.
    you can take help from below link;
    http://www.bidn.com/blogs/BrianKnight/ssis/972/ssrs-action-to-open-a-url-in-a-new-window
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem.

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • Linking to external URL using POST from a button in APEX

    APEX Experts
    Does anyone know how to link to an external URL using POST rather than GET behind an APEX button? I'm pretty sure there must be a javascript call but I'm a real newbie to both APEX and Javascript.
    Also does anyone know why APEX decodes an encoded URL before sending it out and how to stop it?
    Thanks
    Deborah

    I did something similar recently but it was in .NET.
    Hopefully someone else here can help you do with Apex and Oracle. I am new to both.
    To POST instead of GET is not as easy as it sounds.
    What I did was open a new window where I outputted a dynamically created form. I would think that you would do that by using the pl/sql web toolkit to call a procedure and output the form using htp.p. You may also be able to do it with Apex (I think they are built using the same tech).
    Basically, your proc would look something like this:
    htp.p('<html><head>');
    htp.p('</head><body onload="document.FORM.submit();">');
    htp.p('<form name="FORM" method="POST" action="www.UrlToPostTo.com" >');
    htp.p('<input name="PostVar" type="hidden" value="' || MyValueToPost || '">');
    htp.p('</form></body></html>');
    So, it creates a html page with a form. When the page loads, it runs the javascript to submit the form to the other site. You can add in as many post items as you need. I marked them as hidden so that the user only sees a blank page briefly before the form is submitted.
    I am sure there is more to it than that, but it gives the general outline of how to post to another site dynamically. Hopefully someone else can fill in the rest.

  • Can we open URL iview in  existing browser NEW TAB?

    Hi,
    Can we open URL iview in  existing browser NEW TAB?
    if so how do we take care of this.
    I have tried all the window options and anyone of them did not meet my requirement?
    rgds
    Vara

    Hi,
    Try using this option:
    IE7 -> Internet options->General-> Tabs Settings (button)-> When a popup-encountered option -> Select "Always open pop-up in new tab".
    Hope it should solve the problem.
    Regards
    Parth

  • SSRS 2008 : Open a linked report in a new window.

    Hi,
    How can I open a linked report, specified in the Action property, in a new explorer window?
    Thanks,
    Anurag

    Hi Anurag,
    If I understand correctly, you have used the "Jump to report" function to open a sub reoprt(linked report in your question). Now, you want to open the report in a new windows.
    By default, if using "Jump to report" function, the sub report will be opened in itself. That menas, it won't be opened in a new window.
    To open the sub report in a new windows, we can use the "Jump to url". Use JavaScript function "window.open" in the URL to open the reoprt in a new window:
    ="javascript:void(window.open('subreport name'))"
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin ChenJin Chen - MSFT

  • I recently updated to version 5.0, however, when I open up a link in a new window, there is no address in the new window's address bar, just a blank box.

    I recently updated to version 5.0, however, when I open up a link in a new window, there is no address in the new window's address bar, just a blank box.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to use POST method to send & recieve XML data in WebDynpro application

    Hi There,
    How can we use POST method in a Url (callign weebdynpro application) and pass XML String content. How can we read this this inside WD Application.
    Any pointers will be great help.
    Rgds

    Closed

  • HTTP Transformation using POST Method

    Hi, I will have to use POST method with header as application/json to get the results in http transformation. I downloaded the RESTFUL client utility from Chrome, to see how JSON would look like by passing parameters and the result is displayed as expected.  But I'm not sure how the URL to be constructed in HTTP transformation and appreciate if you have any suggestions. My URLL http://dev1.com/contract-api/contract/public/contractValidationMy input parameters:  {"hierarchies":[10],"properties":[18],"licId":123} If I use the above URL and parameters in RESTFUL client, I'm getting the output, but having difficulty in setting up the URL using HTTP transformation.  RegardsSelva

    Thanks Marc.
    Let me rephrase the scenario.
    I have an external application which is capable of sending information only in XML through HTTP requests. It does not send SOAP messages. I guess in this case, we would need to use the HTTP binding using POST method. Much like the sample at http://blogs.oracle.com/reynolds/2005/09/invoking_bpel_from_an_html_for.html which uses the GET method.
    In this sample reynolds is using the GET method. I have been trying to get the POST method to work.
    Regards
    John

  • [REPOST]How to force ADF Dialog / POPUP to use POST method ?

    Hi all,
    Is there any way to make ADF Dialog / POPUP to use POST method ?
    I need that approach to implement this post : [SOLVED] Faces - Preventing user from entering URL manually
    But it breaks in my application because ADF Dialog / POPUP is using GET method.
    Thank you very much,
    xtanto

    repost.
    Thank you

  • Sending XML messages from server to client using POST method

    Dear everyone,
    I have a simple client server system - using Socket
    class on the server side and URLConnection class on
    the client side. The client sends requests to the
    server in the form of an XML message using POST method.
    The server processes the request and responds with
    another XML message through the same connection.
    That's the basic idea.
    I have a few questions about headers and formats
    especially with respect to POST.
    1. In what format should the response messages from the
    server be, for the client? Does the server need to
    send the HTTP headers - for the POST type requests?
    Is this correct?:
       out.println("HTTP/1.1 200 My Server\r");
       out.println("Content-type: text/xml\r");
       out.println("Content-length: 1024\r");
       out.println("\r");
       out.println("My XML response goes here...");2. How do I read these headers and the actual message
    in the client side? I figured my actual message was
    immediately after the blank line. So I wrote
    something like this:
       String inMsg;
       // loop until the blank line is through.
       while (!"".equals(inMsg = reader.readLine()))
          System.out.println(inMsg);
       // get the actual message and process it.
       inMsg = reader.readLine();
       processMessage(inMsg);But the above did not work for me. Because I seem to
    be receiving a blank line after each header! (I suppose
    that was because of the "\r".) So what should I do?
    3. What are the different headers I must pass from
    server to the client to safeguard against every
    possible problem?
    4. What are the different exceptions I must be prepared
    for this situation? How could I cope with them? For
    example, time outs, IOExceptions, etc.
    Thanks a lot! I appreciate all your help!
    George

    hello,
    1) if you want to develop a distributed application with XML messages, you can look in SOAP.
    it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
    2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
    examples :
    a client method to send a message to the server :
    public void send(String message)
    fluxOut.println(message);
    fluxOut.flush();
    whith
    connexionCourante = new Socket(lAdresServeur, noPort);
    fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
    a server method in a thread to receive and print the message :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    System.out.println(texte);
    that's all ! :)
    If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
    ex :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    // to stop
    if (texte.equals("@end"))
    {break;}
    processMessage(texte );
    hope it will help you
    David

  • How can I open a customized report in a new window?

    I am trying to create printable views for my reports that are published as portlets. In specific, I would like a link to open the report up in a new window where the user can print at. I have figured out how to do this with the default report created. However, after a user has customized the report, is there a way to open the customized report in a new window?

    Hi
    I do not think it matters whether your reports portlet is a default one or a customize one. I think whne you place the portlet, you can specify in the property to open up the result in new window. I think it is common feature of Portal.
    Thanks
    Rohit

  • How to use post method in j2me

    I used post method and when im about to receive the response from the servelt i get the output like
    str=<html><head><title>Apache Tomcat/4.1.24 - Error report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{ ................                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks supareno I have tried the weblink u hav given. It helped me a lot

  • Want to send information in Header dynamically using HTTP adapter using post method

    Hi ,
    I have a requirement to send below information in http Adapter header dynamically using post method. which will be authenticated by third party system.
    Authorization : WSSE realm="SDP", profile="UsernameToken", type="AppKey" X-WSSE : UsernameToken Username="XXXX", PasswordDigest="Qd0QnQn0eaAHpOiuk/0QhV+Bzdc=", Nonce="eUZZZXpSczFycXJCNVhCWU1mS3ZScldOYg==", Created="2013-09-05T02:12:21Z"
    I have followed below link to create UDF
    http://scn.sap.com/thread/3241568
    As if now my third party system is not available while sending request I am getting 504 gateway error. is there any approach I can validate my request is working fine?
    Regards,

    Hi Abhay,
    Correct me if I'm wrong but I think WSSE requires a SOAP Envelope. If that is the case, there are two approaches: the first one is to use SOAP Axis and the second one is just to build SOAP Envelope via Java mapping.
    You also need to test it successfully externally, capture the request and replicate it in XI.
    Hope this helps,
    Mark

  • Open a bsp page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi,
    Pls try the below logic :
    <htmlb:button id = "help"
    text = "Help"
    design = "standard"
    onClientClick = "window.open('http://www.sap.com')"
    tooltip = "Help"
    />
    This will work for you.
    Regards
    CSM Reddy

Maybe you are looking for

  • Can the EJB from JDeveloper be deployed to WebLogic ?

    I am evaluating the tools for a major web sites developing. Amazed by the Business Components framework. But little bit worry about the platform dependency. Any information is appreciated. Thanks in Advance, Z-

  • Laptop wont eject cd/dvd

    I just bought my g4-2149se from wal-mart and It wont eject my cd with the botton, nor when i go to the drive and select eject. It gives me an error message. Any help? or should I just take it back to wal-mart?

  • ALV with few multiple columns header

    Hi, I have to do an ALV report with some of the columns grouping like this: I---- I I--IIIABCI-- I      I-AB-I-CD-I-EF-I-GH-I-JK-I-LM-I-NO-I I---- I I--IIIIII-- I I--IIIIII-- I Can you please help me? Tarick.

  • Post-power surge question. Please help.

    I just had a power surge and my G5 iMac shut off. However, my external hard drive did not. I restarted my computer and the external hard drive is not appearing on the desktop. I don't know what to do. Should I simply shut off the external hard drive

  • Upgrade from 6.40 - 7.10, Analyzer giving compile errors

    We are testing out an upgrade to SAP GUI 7.10 (SP 9, V7100.2.9.1039), BEx (SP7 P1 R1352). When running queries in the Analyzer, we get the following error "Compile Error: Can't find project or library" and the VB editor pops up to the following VB co