Post without using a form.

Hello,
The below HTML would post the form data to the made up address:
"http://www.something.com/index.php" when the the user clicks the submit button that says "Log in". Assume that the above address is on another server.
<form method="post" action="http://www.something.com/index.php">
<input type="text" name="user" value="" size="10" maxlength="10" />
<input type="password" name="pass" value="" size="10" maxlength="10" />
<input type="submit" name="button" value="Log in" />
</form>
But if my JSP already knows the form data (usersname and password), how can my JSP post the info to another website e.g. "http://www.something.com/index.php" without having to bring up a form. Is there some code that I can just use to do post without using a form?
Cheers,
Lloyd.

forward forwards to the page, which has to be a JSP or servlet in the same server. It's internal to the server, the browser will have no idea it's happening.
URLConnection supports POST. There are examples around the forums. Yes, you'd have to parse the responding HTML to know what happened.
URLConnection urlConn = new URL("...").openConnection();
if(urlConn instanceof HttpURLConnection) {
     HttpURLConnection httpConn = (HttpURLConnection)urlConn;
     httpConn.setRequestMethod("POST");
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
urlConn.setUseCaches(false);
urlConn.setDefaultUseCaches(false);
PrintWriter out = new PrintWriter(new OutputStreamWriter(urlConn.getOutputStream(), "UTF-8"));
out.println("name=value&name=value&...");
out.flush();
out.close();
BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream(), "UTF-8"));
// read from in.

Similar Messages

  • Attach library webutul.pll without using 10g forms builder

    Does anyone know if their is a way to attach a library to a form without using oracle forms builder? I want to attach the webutil.pll without using the forms builder (10g)..to save a lot of time upgrade 6i forms.
    Thanks

    I have used Java APIs to manipulate forms without using forms builder, i have simple examples in my website
    http://www.e-ammar.com/Oracle_TIPS/Forms_API.htm
    (additional different tips can also be found), i have also extracted this example for the same website that handles attached library
    Hope this helps
    Ammar Sajdi
    www.palco-me.com
    www.e-ammar.com
    Amman Jorda
    public class Class1
    public static void main(String[] args)
    JdapiModule.openModule("c:\\SAJDI.FMB");
    JdapiIterator fmbs = Jdapi.getModules();
    FormModule fmb = (FormModule)fmbs.next();
    JdapiIterator libs = fmb.getAttachedLibraries();
    while (libs.hasNext())
    AttachedLibrary lib = (AttachedLibrary)libs.next();
    System.out.println(lib.getLibraryLocation());
    System.out.println(lib.getLibrarySource());
    System.out.println(lib.getName());
    fmb.save("c:\\ammar.fmb");
    // finally, free API resources
    Jdapi.shutdown();
    C:\jdev\jdk\bin\javaw.exe -ojvm -classpath C:\jdev\jdev\mywork\Workspace1\Project1\classes;C:\DevSuiteHome\forms90\java\f90jdapi.jar mypackage1.Class1
    C:\ammarsajdi.pll --- this is the library path
    AMMARSAJDI --- this is library name
    Process exited with exit code 0.
    Note: for some reason, if the library is attached without keeping the paht, the program does not detect the attached library. i posted a message on oracle OTN with this regard
    an extensive example is submitted by Wilfred and published on his weblog. Wilfred says:
    "I’ve put up the Forms converter for download at http://www.oratransplant.nl/files/convforms.zip
    It all started out as a very small (hacked) project and grew over time. It grew much larger"

  • How can I add check boxes without using the form widget?

    I would like to use check boxes for our facets for our search engine.  You can see an example below.  Is there anyway to do this without using the form widget?
    PJM - Site Updates

    It is not possible to accomplish this with the Muse's Form Widgets. You may need to look for other online solutions and fetch the source code and add to the Muse page using the Insert HTML feature.
    Cheers,
    Vikas

  • Displaying and Printing Payslip without using Adobe forms in WD

    Hi,
      Is it possible to Display&Print Payslip in WD application without using Adobe forms?,is WD supports Smartfomrs?
    Thanks in advance...!!!

    Yes, you can convert  convert smartform into pdf and display it using web dynpro application. Below link contains detailed information about it.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]
    Regards
    Vishal Kapoor

  • Is there a way to login to Iplanet 5.2 by using a URL that contains the login and password (without using the form) ?

    I would like to be able to login to Iplanet using a URL like this:
    http://server:port/<exec>?user=john&password=doe
    or like http://user:password@server:port/<some_params>
    I knew how to do it with SIMS 4, but with Iplanet 5.2 I just don't have a clue. Do you know how to do that?

    http://server:port/login.msc?user=john&password=doe
    This works for me.
    Regards,
    Niels

  • Struts how can validate form without using validate method.

    Hi
    Is this possible validate a form without using validate form
    if it is possible then
    please tell me how can we validate it
    Thanks
    Surendra

    Make use of validator framework.. this would enable you to do validation both @ client side by javascript under defined validation rules and also enables you to do it @ serverside....
    And if want to create a Dyanamic Form beans which takes care of validations to make use ValidatorForm or DynaValidatorForm class under the pacakage org.apache.struts.validator and create an instance of it with preconfigured validations under structs...
    Make use of the links below which i think are the best tutors for newbies....
    http://www.roseindia.net/struts/struts_validator_framework.shtml
    http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
    http://www.onjava.com/pub/a/onjava/2002/12/11/jakartastruts.html
    Hope might be of some help.. :)
    REGARDS,
    RaHuL

  • Use HCM processes and Forms without using the Enterprise Portal

    is it possible to leverage existing HR Admin Services (HCM processes and Forms) functionality without using the Enterprise Portal?
    1) Create an Adobe form and Interface using SFP
    2) Set up ISR and Form Scenario
    3) Set up Forms configuration to use existing Backend and generic Services
    4) Set up workflow to updated Backend using Services
    is it possible to do the above steps and not use the Portal? If Yes, how do we present the forms to the Manager, and provide different buttons that appears on the Portal by default?
    Any ideas will be greatly appreciated.
    Thanks,
    Saurabh

    Hi Saurabh,
    your assumptions and findings (items can not be started from the backend workflow inbox etc.) are correct: These processes can not be started without the Portal and it is not intended to do this.
    The above mentioned backend report are only forseen for implementation and testing purposes and not for productive use.
    In addition to the fact, that you already can't execute the work items a lot of other features of the framework (Process Browser etc.) are only available through the Portal.
    Best Regards
    Michael Bonrat - Solution Manager HCM Processes and Forms
    Info about HCM Processes and Forms:
    www.service.sap.com/erp: 
    - SAP ERP Human Capital Management -> Workforce Process Management -> HCM Processes and Forms

  • Adobe form-Able to post  data using Adobe Reader 9 but not with Adobe Proff

    Hello Guru's
    I am facing one problem with adobe forms.
    We have develoed a adobe form using adobe reader 9.
    Now when user are posting the purchase requistion using the form,they are able to post the data using
    Adobe Reader 9 but not with Adobe Reader professional.
    Can anyone please advice me what can be the problem here.

    Adobe Reader 9 can't save the old FDA forms. FDA must update their forms.

  • Can you create a form in Adobe XI without using formscentral?

    I am trying to create a form that does not fit with any of the templates offered by Adobe.  I used Adobe LiveCycle to create my form last time.  I now have Adobe XI and want to do a simialr type of form but none of the offered formats allow me the freedom of LiveCycle.  Is there a way I can still create a form without using FormsCentral?

    Hi,
    Tables are not currently supported in FormsCentral. Please cast your vote on the featue request at http://forums.adobe.com/ideas/1709. We take votes in consideration when planning new features.
    Thanks,
    Wenlan

  • How to save the session states for a tabular form WITHOUT using check boxs?

    Greeting guys,
    As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
    My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
    Thanks in advance.
    Luc

    The following is the first collection solutin I've tried:
    htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
    for i in 1..p_row_num loop -- Loop on the whole form rows
    if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
    --If either of them has some input values, the row should be saved into the colleciton.
    then
    htmldb_collection.add_member(
    p_collection_name => 'TEMP_TABLE',
    p_c001 => htmldb_application.g_f01(i),
    p_c002 => htmldb_application.g_f03(i),
    p_c003 => htmldb_application.g_f04(i),
    p_c004 => htmldb_application.g_f05(i),
    p_c005 => htmldb_application.g_f06(i),
    p_c006 => htmldb_application.g_f08(i)
    end if;
    end loop;
    Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
    Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
    Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error.

  • Migrating Oracle forms to APEX 3.2 without using Forms2XML tool

    Can we migrate Oracle forms to APEX 3.2 without using Forms2XML tool?

    Hi Anoo,
    In order to convert Oracle Forms to Oracle Application Express, using the Forms Conversion utility in Oracle APEX 3.2, you are required to convert your Forms Module (FMB) files to XML format, using the Oracle Forms to XML conversion tool, Forms2XML. I would recommend that you review Chapter 4 [Converting an Oracle Forms Application|http://download.oracle.com/docs/cd/E14373_01/migrate.32/e13368/appmgr_forms.htm] , in the Oracle Application Express Migration Guide Release 3.2
    If you have any further questions relating to the Oracle Forms to Oracle Application Express conversions, I would recommend that you refer to the [Application Express|http://forums.oracle.com/forums/forum.jspa?forumID=137] forum.
    I hope this helps.
    Regards,
    Hilary

  • Create database table using Forms Developer 6/6i without using SQL*Plus

    hello there,
    I need help in creating tables in Oracle using Forms Developer 6/6i without using SQL*Plus interface.
    your help is appreciated
    email: [email protected]

    please use Forms_ddl package to create a table dynamically
    from the Developer6/6i.
    you can check the success or failure by using the
    form_success builtin.
    if u want to avoid using the Forms_ddl package
    use stored procedure or create a sql querry record group.
    regards
    sriram.

  • My user doing the direct posting in MIRO without useing the PO

    Hello Exports
    My user doing the direct posting in MIRO without using the PO.
    but after posting in MIRO, its picking up the R ( invoice Verification ) in Payment block field. and also i ve check in Vendor master there is no "R" Falg in Payment block field.
    Can  any body give me suggestion on the same
    Thanks and Regards
    sudharshana vamsi

    Thanks for all
    The probelm was solved
    Regards
    vamsi

  • Customizing infopath form without using infopath designer in SharePoint 2013

    hi friends
    i need to depoly infopath from in client environment. this form fetch data from some lists. 
    they dont have infopath designer in their environment how can i customize my infopath form to link with those list without using infopath designer is there any way to do it.

    You cannot edit Infopath without using Designer.

  • Hiding a Form without using EXIT_FORM.

    Anyone know how to hide a form without using exit_form or minimize? Im shocked I havent found a way to keep a form active in the back ground without having it displayed. Imagine a minimize without all the annoying windows on the bottom of the oracle desktop... anyone know how to do it? Let me know :)

    HIDE_WINDOW does not hide a window that is associated to the main canvas of a form, same goes for HIDE_VIEW. And what do you mean by open_form?

Maybe you are looking for

  • Back up plan for Asset year end closing

    Hi, Do you have any back plan prepared for Asset year end closing especially t.code AJRW and AJAB (running this in Background). what back up plan we should recommend if it fails for already happened activities. Regards Shanu

  • Is there continuous play of a song while importing cd's iTunes?

    I would like to know if there is a feature for, once the songs you are importing from a cd, when you play a song from the cd itself, if you hit the eject button while the song is playing, the song continues to play without delay. If there isn't, this

  • Cisco ASA 5505 IOS 9.2(1), ASDM 7.3(2) NAT issues

    Hey all, I am really new to Cisco and am trying to get this Cisco ASA 5505 configured that I bought recently configured properly. Things I have successfully been able to do: 1. Configure static WAN IP on WAN port e0/0 (I have a /29 block of addresses

  • How to view  "View Session" in Premium Access Zone

    Hi all, can you please tell me how can i view session... when iam trying to clicl on the link it is not showing any hyper link... is this link only for SAP employees or any other persons who have special access.. can please help me in this Regard Tha

  • The "Find my iPhone" troubleshoot help needed....

    "The find my iPhone" app is locating my device in a different state vs. the current state I live in. Can anyone help me troubleshoot this? Does this have a fix?