Passing parameters to my applet on apex

i cannot seem to pass parameters to my applet which i embedded on my apex region. can anyone help.

We probably can't help without more information, details and perhaps and example to look at.

Similar Messages

  • Issue with passing parameters to an applet?

    Hi,
    I have an apex page which is a popup page. I am passing parameters to the applet and then reading them in from my java code.
    Here is my applet code
    <SCRIPT>
      function getStatus(retStatus) {
        $s("P3_MESSAGE", ''||retStatus||'')
    </SCRIPT>
    <APPLET ARCHIVE="/i/bin/offline_load.zip" CODE="offline_load.class"  STATUSMSG WIDTH=0 HEIGHT=0>
    <PARAM name="username" value="&APP_USER.">
    <PARAM name="dbuser" value="&P3_DBUSER.">
    <PARAM name="dbpassword" value="&P3_DBPASSWORD.">
    <PARAM name="dbserver" value="&P0_DBSERVER.">
    <PARAM name="dbport" value="&P3_DBPORT.">
    <PARAM name="dbsid" value="&P3_DBSID.">
    </APPLET>P3_DBUSER, P3_DBPASSWORD, etc are all defined on page zero as hidden and protected items
    My applet code
    public void init() {
        CallableStatement load_stmt = null;
        String userName = this.getParameter("username");
        String dbUser = this.getParameter("dbuser");
        String dbPass = this.getParameter("dbpassword");
        String dbServer = this.getParameter("dbserver");
        String dbPort = this.getParameter("dbport");
        String dbSid = this.getParameter("dbsid");
        try {
          System.out.println("init(): loading OracleDriver for applet created at " + created.toString());
          Class.forName("oracle.jdbc.driver.OracleDriver");
          System.out.println("init(): getting connection");
          conn = DriverManager.getConnection("jdbc:oracle:thin:@" + dbServer + ":" + dbPort + ":" + dbSid, dbUser, dbPass);
        } // end tryThe odd thing is I have gotten this working twice then unexpectedly it just stops working when I make a change to the java applet code.
    And the changes have absolutely nothing to do with the above code it can be anything the first time was error handling I added
    to another section and the second I modified a stored procedure call.
    Anyone have any idea why this might be occurring as this is driving me completely insane :(
    Thanks in advance

    Hi,
    In your init() code, you have a "try" block - do you have a "finally" block to close the connection? Something like:
    finally {
      try {
        conn.close();
      catch (Exception ignore) {
    }Could it be that you have reached the limit of the number of available open connections?
    Your code looks ok as far as I can see (based on examples at: http://www.orafaq.com/wiki/JDBC )
    Also, in your new bits of code, have you added try/catch/finally blocks? Does the code compile fully (ie, no warnings)? Have you added new imports that may conflict with existing code such that you have to fully qualify existing objects/classes (eg, you may now have two DriverManager classes or CallableStatement objects)?
    Andy

  • Passing parameters to an applet dynamically

    I am looking for suggestions on how I can pass parameters to my applet which generates a simple bar graph. If I pass parameter names and values using HTML tags the number of bars are fixed. I want my applet to accept variable number of values for the x and y axes.

    Then use a JSP for the HTML page. This can then pass dynamically generated numbers as params. Alternatively, your applet could communicate to the server through a Socket (package java.net) - although this can cause problems if there are firewalls inbetween client and server.

  • Passing parameters from an applet to a URL

    I need to pass information from an applet to an html page or JSP page, is this possible? Thanks.

    Yes you can!
    The following code might works (with some modifications ;)):
    AppletContext context = this.getAppletContext();
    URL url = new URL("http://host:port/path?parameter=value");
    context.showDocument(url, "windowName");In addiction, consider java.net.URLEncoder.encode() method to encode properly your parameters.
    Regards
    Paolo

  • Passing parameters to an applet

    Hello,
    I'm developing a set of services supported by CORBA; the services are all done and tested OK with a command-line client. However, the final client will be an applet and I'm having trouble starting it. The command-line client was started with a command-line argument like "java -Xbootclasspath/p:/usr/share/java/JOB/OB.jar myApp" and it's lacking is causing problems whilst starting the applet. How do I pass this argument to the applet? Is it possible to set it via System.getProperties().put(...) ?
    Thanks in advance! :)

    Hi,
    search the web by google for passing parameter to java applet. These words gave me a lot of links related to this topic.
    L.P.

  • Passing input parameters from an applet to a JSP page

    Hello all,
    Yes, its one of these questions which I have tried to find a solution from the already large number of postings but with no luck. I'm still a novice to Java/JSP so bear with me.
    Consider this scenario.
    1. An applet which has two input boxes (say First name and surname). 2. These parameters will be passed to a JSP page (so the applet will call a JSP page).
    3. The JSP will have have the necessary logic (or actually a JavaBean will) to connect to a database and add a new record with these parameters (first name and surname).
    I also need to consider editing/updating the record in the database. So a JSP page will connect to the database, retrieving the required record from the database and then display the parameters back in an applet in two input boxes (first name and surname) to be edited and saved again.
    I have been able to develop a similar application using simple HTML forms to add and update records in a database so I'm not worried about the database connectivity simply the issue of passing parameters from the applet to the JSP page and vice versa (for edit/update).
    Once i've managed to do this with input boxes, I can experiment with the other input types radios, checkboxes, select etc.
    Many thanks in advance,
    Assad

    create an URL object with u'r specified link of the java class and send the parameters..write trhis action in any buttonclick event in u'r applet.

  • Unable to pass parameters from APEX to Oracle EBusiness suite R12 forms

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

  • Passing values as parameters to an applet

    I would like to pass some parameters from a HTML page to an applet. I want to know which would be better in passing the values to the applet. Will java script, php, or applet be better. The HTML page has some list boxes, text field and i want to pass these values as parameters to my applet which opens in different page. The HTML page & the applet will be in the same codebase.
    Thanks

    Here's an example of what you can do in an Applet:-
    <html>
    <head>
    <title> My slide show</title>
    </head>
    <body>
    <center>
    <applet code ="Show.class" width=480 height=300>
    hspace = "10"
    vspace = "10"
    <PARAMETERS>
    <param name="leg0" value= "1: Some text for this slide">
    <param name="leg1" value= "2: Some other text for this slide">
    <param name="leg2" value= "3: text etc">
    <param name="leg3" value= "4: text etc">
    <param name="leg4" value= "5: text etc">
    <param name="leg5" value= "6: text etc">
    <param name="leg6" value= "7: text etc">
    <param name="leg7" value= "8: text etc">
    </center>
    </applet>
    </body>
    </html>
    The parameters leg0, leg1 etc stand for legend btw and can be got from the web page in an array with this;-
    for (int i=0; i<=7; i++) {
         slide=getImage(getDocumentBase(),"slide"+i+".jpg");
         legends[i]=getParameter("leg"+i);
    Where your images are labelled from slide0 to slide7. This has the advantage of everything having the same value, so if you want to use
    i++;
    everything moves to the same value ie: slide[2] will be = legend[2]
    Finally you will discover at the expense of the learning curve that
    1. This is a far more reliable way for applets to operate
    2. Depending on what you want to do javascript, perl, servlets, JSP and PHP are more robust and reliable.
    Ask the next question !!! What do you want to do? It is possible that an applet can handle it best.

  • Best way to have signed applet pass parameters to local Java applicaiton

    Hi all, I have a web application that needs to interact with a camera on the local computer. I first created an applet but the time to start the camera up was un acceptable. Now I have converted the applet to an application on the local user's computer that keeps the driver running. I call the applet from the web page to pass information to the local applicaiton that will take the pic and then load it into a database using jdbc.
    The question is how to pass the parameters from the applet to the java applicaiton? Iwas thinking of using network sockets to have the local app listening and then a signed aplet that will connect to the port and pass the parameters (just text fields).
    Has anyone already done this and have a better method?

    It will be working only on a computer, where JRE is installed. I assume that if someone has installed JRE nowadays, it will be "higher" version than is needed for your applet.
    L.P.

  • Passing parameter between two applets

    hi all,
    i want to pass parameter between two applets. in other words, when user clicks the button; close the running applet, pass parameter to another applet and run another applet.
    now i think that could be, ( creating a parameter table in database, when user click on button write parameters to table and stop active applet and run other applet. when other applet runs in init methot it takes parameter from table). but it will be very indirect way.
    if you have an idea or information, plesae tell me.
    thanks for your interest

    Hi ,
    Plz pay a visit to this wonderful website,
    http://www.rgagnon.com/javadetails/java-0022.html / http://www.rgagnon.com/howto.html
    Best Wishes,
    Gaurav
    PS : Thanks to Real Gagnon. This is all I can do at this stage, but wanted to say you are doing a wonderful job.

  • Passing a parameter in applet

    hi.. i am a beginner in applet programming and have some problem in passing parameters. If anyone could help me, how can i pass a dynamic parameter in the <param name="username" value="user"> tag. what i meant was i wanted to assign different value for the above attribute everytime a user insert a new username. thanks you

    If you post the login information to a server side script page the whole page will be
    reloaded, this includes the applet.
    For example mail.yahoo login, after filling out user and password you click submit and the
    username and password will be posted to server side script running on the yahoo web
    server. This script will generate a new page for you.
    If you use an applet to send the username and password you can use the URL and
    URLConnection objects to post these values to the server. No need to set a dynamic
    parameter in the html page since the applet will not be reloaded.
    If you wish to post user and password (like mail.yahoo login) than the server side script
    generates the html code for you and yes you can generate a dynamic parameter since
    the server side script generates the output.

  • Passing parameters to web based oracle forms

    Hi,
    How can I pass parameters from web page to oracle form applet? OR is there anyway i can know (within a form) if that form is run from a client/server or from web. This is just to set some parameters depending on the condition: client/server or web application.
    thank you

    To know if you are on the Web use the get_application_property built-in, check out the online help for it.
    To pass parameters - if you are using the forms servlet you can pass parameters on the URL that calls your Forms application.

  • Non-string objects as parameters to an applet

    how can i pass non-string objects as parameters to an applet?
    thanks in advance...

    those are some objects that i wroteThen, you could use Class.forName() method for your string parameters.
    If you get the classes, then you can call newInstance() method on them to get objects.
    Alternative way could be using your string parameter as index or keys for some
    data structures that contains ready-made objects.

  • Passing parameters into the Oracle form

    I want to pass some paramaters into the .fmx file which i invoke through the applet. like say, in the following line
    serverArgs="module=abc001.fmx userid=user/pwd@dbuser useSDI=no"
    i want to pass parameters in the following manner:
    serverArgs="module=abc001.fmx(param1,param2) userid=user/pwd@dbuser useSDI=no"
    since one cannot pass parameters to a .fmx file before invoking it, it does not seem possible.
    But is there a sort of a workaround? A java wrapper for oracle forms?? so that i pass parametrs to the java class and it passes this info to the form.
    i need to pass these parameters because these param1,param2 are the username/password for my oracle forms-based application which implements its own in-house user validation logic and i need to display the menu in the applet based on the user without prompting him for this application username/password
    thanks
    Any help will be highly appreciated.

    In the form FNDRSRUN which is the Standard Request Submission form there are parameters CHAR1-CHAR5, NUMBER1-NUMBER5, and DATE1-DATE5. I was wondering if i populate the parameter NUMBER1 with my value how can I access this parameter when the form is brought up. This is more of an applications setup issue I will be creating a function that calls the FNDRSRUN form this function will force this form to use a single request not a request group. In the request setups there is a parameter. When I set up the request parameter I have to select a value set and then for Default Type I can select Constant, Profile, SQL Statement, or Segment and then I have to give a default value. Can I default this parameter to use NUMBER1 or another parameter in the FNDRSRUN form.

  • Passing objects to a applet.

    hi there,
    i have a jsp and a applet. i need to pass an object from my jsp to the applet and the applet will present the results.
    how can i do it?? how do i pass objects to the applet??
    thanks

    you typically pass strings as applet parameters in the page.
    otherwise, you have your applet connect back to the server with a socket or URLConnection to a servlet, which can send serialized objects if that's what you need, or other data.

Maybe you are looking for

  • How can I make a jQuery accordion panel tab collapsed by default?

    I have Googled this and saw that someone recommended placing the 'collapsible' option before the 'active' one. For example, $( ".accordion" ).accordion("option", {     collapsible: true,     active: false I am completely new to Dreamweaver. I inserte

  • How can I open psd files into Potoshop CC from bridge

    PSD files will not open into Photoshop CC from Bridge CC. I get this error message..."Windows cannot find, C:\program files\adobe\adobe photoshop CS5 (64 Bit)\photoshop.exe." I can open jpeg, tiff and raw.   I'm using Windows 7. I do not have CS5 on

  • ISE - NAC agent profile

    Dears I want to deploy NAC agent via GPO and I need to create agent profile , I know how to create it on ISE but how i get the file in xml format to be distributed ?

  • Computer keeps slowing down until unusable

    So. This just happened again. I noticed rtorrent on my fileserver doing max 4kbps up or down ( few minutes ago I was maxing out my connection ). And as I said this has happened before so I have a pretty good idea of whats coming Basically the slow ne

  • How to return a array which be created in native method?

    i wrote my native method like this: jintarray array=env->Newintarray(10); jint* p=env->GetIntArrayElements(array,0); for(int i=0;i<10;i++){ p=i; return array; the result is that i got a array which has ten elements and all the elements are 0. it seem