Problems calling a html form from a different page

Hi,
I'm working on a logon for a website. I have a html page and a jsp page that contains the login function. I want to call the login form after the user presses submit. But I'm having problems calling the form from the html page.
Any help appreciated.
Here is my html page:
<form method="POST" action="login.jsp">
<table>
<tr>
<td>
<div align="center">
<b>UserName:</b>
<input name="user_name" type="text" class="input" id="username" maxlength="18">
<b>Password:</b></font>
<input type="password" name="password" class="input" maxlength="18">
</input>
<input type="button" border="0" value="Login" width="30" height="20">
</input>
My jsp page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body bgcolor = "#E5E8EF">
<script language="javascript">
function login(form) {
     alert("hello");
if (form.username.value=="joe") {
if (form.password.value=="bloggs") {             
location="success.html"
} else {
alert("Invalid Password")
} else {  alert("Invalid UserID")
//-->
</script>
</body>
</html>

So your intention is that the JS function would be invoked somehow?
Are you aware that Javascript is a completely different language from Java/JSP/JSTL?
Here is a listing of some JSP/Servlet tutorials which might help you further:
http://www.google.com/search?q=java+tutorial+site:sun.com
http://www.google.com/search?q=jsp+tutorial+site:sun.com
http://www.google.com/search?q=servlet+tutorial+site:sun.com

Similar Messages

  • Is it possible to launch a form from an OAF page using OAF Personalization

    In R11, the Customer Standard form ARXCUDCI was customized to call a custom block from the Address screen. In R12 the customer standard form has become an OAF page. We have decided to create a custom form for the custom block using Oracle Developer. However we need a mechanism to call this custom form from the Customer Standard OAF page.
    My query is if it is possible to call a custom form from an OAF page using OAF personalization only (i.e. without directly customizing the code of the OAF page)
    Thanks
    Sanjay

    Dear Apurba,
    I have made some progress.
    I have open the Customers OAF Page, queried a customer, selected a site and opened it.
    Then chose Personalize "Account Site Address"
    There I added a Button on the Header Address level
    ID=XXTVL_LASSY_BUTTON
    Populated the Additional Text and Prompt properties.
    Also set Destination URI=form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDMNMNU.
    The button is now showing in the address page, and when I click on it it opens the seeded Menu form.
    I now have to create the custom form and set Destination URI to the Custom Form.
    I am also aware how to add parameters to Destination URI.
    But could you let me know how to read the value from a OAF page form field and reference it in Destination URI.
    I need the value of PARTY_SITE_ID of the Address OAF page.
    Alternatively, the Site Number is displayed on the OAF page. If I can read it that will also do. I can use the Site Number in the custom form rather than PARTY_SITE_ID
    Thanks
    Sanjay

  • How do you call a single block in a form from a different form ?

    Hello All,
    I'm trying to call a particular block in a form. The actual call is done via fnd_function.execute. This brings up 2 blocks:
    1) a find/search block
    2) the block I want with the correct information based on the parameters I have passed in.
    Everything so far is OK with the exception of not wanting the 'find' block to appear. I've tried to hide the associated window by using the hide_window function but this doesn't work. Anyone got any new ideas I can try ?
    Thanks in advance
    Sandy

    If you have both blocks on the same canvas they will both appear if you navigate to a field in either block.
    So, put each block on its own canvas. When you navigate to a field in one block only that block will appear.
    As far as navigating to a block from another form there is not built-in function to do that. You can only call and entire form from another form. You could however pass a parameter from the calling form to the called form. On the when-new-form-instance of the called form check for the parameter value and go_item('myblock.myitem') which will display the block you want.
    Message was edited by:
    Mark Reichman

  • Calling Oracle Ebusiness Forms from a Webcenter Portal application

    Hello All,
    Would there be any known/standard procedure of calling Oracle EBusiness Forms from a Custom WebCenter Portal Application. The issue we are facing currently is that we are successfully able to call an Oracle EBS Forms as a GO Link from the application. The problem is when there are multiple links to open different EBS Forms. Multiple instances of the Forms sessions are created. We would like to have only one. We are trying to mimic the Oracle EBusiness Home Page / Landing Page.
    Any pointers are much appreciated.
    Thanks,
    Nachi

    Hi.
    Are you using Portal or Framework Portal?.
    In case of <noscript> is generated by JAVA internal classes and the unique way to change the message is with a Non supported workaround overriding a CoreBundle class.
    About the af:skipLinkTarget usually is in the Page Template. The default templates has it in next snippet:
    <f:facet name="center">
        <af:skipLinkTarget>
        <af:facetref facetname="content">
        </af:facetref>
      </af:skipLinkTarget>
    </f:facet>
    If you're using default Templates then copy them and remove the af:skipLinkTarget tag from the copied one and assign it to the Portal.
    I hope it helps.
    Regards.

  • Can I Call a 10g Form from 10 Report???

    Can I Call a 10g Form from 10 Report??? I'm using Developer Suite 10g Rel.2.

    Hello,
    It is possible to include hyperlinks in the output generated by oracle Reports (when DESFORMAt=HTML / HTMLCSS or PDF)
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_lay_hyperlink.htm
    When clicking on the hyperlink , a Form can be called...
    regards

  • Problems calling context-sensitive AIRHelp from Adobe Flex App

    Hi everyone...
    I´m having problems calling context-sesitive AIRHelp from Flex.
    I can launch the help from flex using the following code (flex), but allways starts on the default topic.
    private function invocarAirHelp(tema:String):void {
          var appID:String = "pc1";
          var pubID:String = "8C47FDE4638CAF7F210634E52A5F8318D893A57C.1";
          var mgr:ProductManager = new ProductManager("airappinstaller");               
          mgr.launch("-launch " + appID + " " + pubID);
    the launch method can recive parameters after the publisherID, but i dont know the parameters that i should give to the method to start the AIRHelp on an specific topic.
    I tryed using the parameters as the call was on the command line, ex:
      mgr.launch("-launch " + appID + " " + pubID + " -csh mapnumber 12");
    but i can get any results... with those parameters the help application doesn´t even start
    Anyone have an idea to make this works?
    Thanks in advance, Sabin

    Hi Sabin,
    The only supported way to launch AIR applications from the browser is the air "browser API": http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html#1035834
    The browser API uses ProductManager internally and exposes higher-level browser API so that we change the implementation if necessary someday. The browser API will stay the same, even if the interactions through ProductManager (or something else) change.
    The browser API (air.swf) has other features that make it the preferred way to launch apps. For instance, it provides accurate information about which platforms support AIR, and can therefore manage install of new apps and of the runtime itself.
    Also, if the application is not installed then Browser API will return Error to the flex application, but that does not happen in case of ProductManager.
    That said, you can probably use "--" to separate arguments intended for airappinstaller from arguments that should be passed through to the app itself. 
    mgr.launch("-launch " + appID + " " + pubID + " -- -csh mapnumber 12");
    -Praful Jain

  • Setup needed to call a tuxedo service from a different machine

    Hi,
    I tried to search for the subject but I couldn't find a clear indication on the subject.
    I have a scenario where I need to call a Tuxedo Service from a different server (machine) than the one where Tuxedo is installed.
    What I need to know if it's possible and what exactly is the setup needed on this machine?
    Any help is appreciated.
    Thanks :)
    Wassim
    Edited by: 986270 on Feb 5, 2013 8:21 AM

    Hi Wassim,
    Can you give a little more background and what you are trying to accomplish?
    If the machine that is making the call doesn't have Tuxedo installed on it (either full Tuxedo install or the client-only install), then you would have to use something like a web service client. If you want to use standard Tuxedo APIs instead, then you would need at a minimum the Tuxedo client install on the machine. If you have just the Tuxedo client installed, then you would be using the workstation protocol and would need to configure a WSL on the machine hosting the service.
    If full Tuxedo is installed on both machines, you can either configure the two machines as separate single machine domains (SHM mode), or configure them as a cluster (MP mode). In the former case, i.e., two separate domains, you would configure the Tuxedo domain gateway on each system to allow services to be shared between the domains. In the second case where the machines are clustered by Tuxedo, then there is nothing to do as Tuxedo will be able to route the request to the machine where the server offering the service is located.
    Hope this helps.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Is it possible to call a 9i Forms from a 6i Forms ?

    Hello,
    I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
    Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
    Is it possible to call a 9i Forms from a 6i Forms ?
    Thank you in advanced for help,
    Marcos Souza.

    I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.

  • How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?

    How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?
    -Luis

    Hi,
    You can embed the form on your website, but you need to make sure that javascript has been enabled in the browser. You need to copy the embed code and add it into your HTML code. If you would like FormsCentral to generate embeded HTML form without using javascript, you may post a feature request and vote it. Hope it helps! Thanks!
    Kind regards,
    Shiyao Bao

  • Create HTML Form from PDF Form

    Does anyone know of a quick way to create an HTML Form from an existing PDF Form?
    Thanks everyone!
    mars

    From ID you can export to XHTML which is indeed consumed by DW but not via Acrobat...
    So, can I import a PDF form into ID?
    When I meant was - InDesign can export to XHTML
    Acrobat cannot
    Indeed, it would be great if forms could be created as ID objects and then exported to a PDF form but not yet (all fingers and toes crossed for CS5/CS6)
    Cheers,
    Jon

  • 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>

  • FRM-10242:  Cannot call linked-in Forms from Form Builder. error

    FRM-10242: Cannot call linked-in Forms from Form Builder.
    Cause: The menu designer specified a call to linked-in Forms from within Form Builder.
    Action: Notify your DBA.
    does anyone know why this happens.
    I have this main-menu.. and when i click on one of the submenus which should call the form....i get this error.

    Same issue here... Been trying to get this working since a week now. I tried all the solutions like memory heap and all but no luck.
    One thing that I would like to know is that, in some threads the resolution was to recompile the INS_FORMS.MK file under /forms/lib32 but with my installation I don't have that "lib32" folder under /forms/ and I can not even find that file anywhere in my entire installation.
    I am using 12.1.1 on Windows Server 2008.
    Any help or guidelines is greatly appreciated.
    Santhosh.

  • Target Named Anchor in a Spry Collapsible Panel from a different page

    Let me start by saying I have combed this forum (and others) looking for a resolution to this.  I am familiar with David Powers solution on Foundationphp.com and am using that code in project to open the collapsible panel from a separate page and it works beautifullly.  The problem I have is that I want the browser to move down to a specific named anchor inside that opened collapsible panel when clicked from a different page.
    Snippets of my current code here.
    Below is the code that I have on an image that when clicked goes to the correct page and opens Panel1.  Works Perfectly!
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1"><img src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227" height="175" /></a>
    Below is the link to the .js file and the script in the head of the target page
    <script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    Below is the code that I have on the target page for Panel1
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:params.col1 ? true : false},{duration: 1000});
    </script>
    If I have a named anchor say <a name="species1" id="species1"></a> down in the page, how do I target that named anchor from my link on the separate page.  I have tried adding the #species1 to the end of the link on the link page (see below) but with no luck. I believe those were the instructions on foundationphp.com site.
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1#species1"><img  src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227"  height="175" /></a>
    I hope (and suspect) that this is an easy fix, I just do not know what it is.  Any help or direction where to look is greatly appreciated.

    I once had the same issue can created a small function that allows me to "jump" to a element.
    function scrollTo( element ){
         var stylize = function( element){ return !+"\v1" ? element.currentStyle : document.defaultView.getComputedStyle( element , null ) },
              getPosition = function( element ){
                   // based on the SpryEffect's module:
                   var computedStyle, tryComputedStyle,
                        position = { x: 0, y: 0 };
                        if ( element.style.left  && /px/i.test(element.style.left) ){
                             position.x = parseInt(element.style.left, 10); // without padding
                        } else {
                             computedStyle = stylize( element );
                             var tryComputedStyle = computedStyle && computedStyle.left && /px/i.test( computedStyle.left );
                             if (tryComputedStyle)
                                  position.x = parseInt( computedStyle.left, 10 ); // without padding, includes css
                             if(!tryComputedStyle || position.x == 0) // otherwise we might run into problems on safari and opera (mac only)
                                  position.x = element.offsetLeft;   // includes padding
                        if ( element.style.top && /px/i.test(element.style.top) )
                             position.y = parseInt( element.style.top, 10); // without padding
                        else
                             if ( !computedStyle )
                                  computedStyle = stylize( element );
                        var tryComputedStyle = computedStyle && computedStyle.top && /px/i.test( computedStyle.top );
                             if ( tryComputedStyle )
                                  position.y = parseInt( computedStyle.top, 10 ); // without padding, includes css
                             if( !tryComputedStyle || position.y == 0 ) // otherwise we might run into problems on safari and opera (mac only)
                                  position.y = element.offsetTop;   // includes padding
                   return position;
              scroll( 0, getPosition( element ).y );
    So now we have a scrollTo function that accepts a pure HTML element as argument, all what is left to do is figure out if we have a hash, and if the anchor exits on the page.
    ( hopes this works, i wrote it without testing, but you get the general idea ):
    if( window.location.hash ){
         var hash = window.location.hash.substr(1), // remove the # from the hash
         element;
         // as anchors can also be used with id attributes, check that first,
         element = document.getElementById( hash );
         // maby we used name="" attribute
         if( !element && ( element = document.getElementsByName( hash )) ){
              element = element[0];
         // if we have a match:
         if( element ){
              // give the collapsible panel some time to init and update the DOM;
              setTimeout(function(){ scrollTo( element ) },0);
    \o/

  • Smart form with 2 different pages

    Hi Experts
    I have a requirement, I need to develop a smart form with 2 different pages, and each page has different data and presentation of the data also is different.
    In the first page I need to display the contract data with the line items and amounts and in the second page I need to display the partner details with their contact details. From second page onwards it may go further based on the partners exists for that contract.
    Plesae advice me best possible way to achive this.
    Thanks
    Praveen

    Hi Praveen,
    Create two Pages:
    First Page:
    In general Attributes section- Keep page2 as next page
    Create Main window and under that
    Keep the text elements for contract data of line item and amounts as required
    Second Page:
    In general Attributes section- Keep page2 as next page
    create main window and under that
    get all the partner details of line item into an internal table(using program lines node).
    Now use 'Tables' node which behaves as loop for this internal table (so that it continues further if it contains date more than 1 page)
    And display the values in smartform using Text node
    Regards,
    Swarna Munukoti.

  • Problem activating simple adobe form from SFP

    Hi
    I created a simple adobe form from transaction SFP....2 steps ...created interface then form.
    the problem is when try to activate the form there are no syntax errors but iam getting a message
    1,275 bytes transmitted, code page 0000
    Message no. FES032
    and the form is still inactive...
    any idea why iam getting this error? is configuration from basis not configured properly?
    Please advise
    Govi

    1. Create RFC (ABAP system side) destination through SM59 called as ADS which should of type G
    u2022     RFC Destination          : ADS
    u2022     Connection Type          :G(HTTP Connection to External services)
    u2022     Destination 1               : ADS connection to SID (Java system)
    Target System settings:
    u2022     Target HOST          : JAVA system Host 
    u2022     Port               : java system port
    u2022     Path prefix          : this defaults(/AdobeDocumentServices/Config?style=rpc)
    2. Login to Visual Administration
    Navigate to Server  Services  Destinations and select HTTP drop down.
    Create the RFC destination as FP_ICF_DATA_<SID>.
    Destination Name: FP_ICF_DATA_<SID>
    Destination Type: HTTP
    Connection settings:
    u2022     URL          :http://<hostname>:<ABAP-portno>
    u2022     system Id     :--NIL
    u2022     client            : ABAP system client no(200 or 300)
    u2022     Language     :--NIL
    Logon Data:
    u2022     Authentication: BASIC
    BASIS Authentication:
    u2022     Username:ADS_AGENT
    u2022     Password:xxxxx
    3. Please activate SOAP service:
    Login your ABAP System
    u2022     Use transaction: SICF  execute  and Select default hostselect sap---select bcu2014select-SOAP Select and activate

Maybe you are looking for