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.

Similar Messages

  • Logical DB - passing values for parameters

    Hi experts,
    i writing program basing on logical DB. How can i pass default values for parameters, which are defined in a selection screen for this logical DB?
    Thanks
    Juzio

    in my program PNP is used. identify the selection screen fields. and then use it in initialization event,
    report ztest.
    tables: pernr.
    initialization.
    PNPPERNR-LOW = '12455'.
    PNPPERNR-sign = 'I'.
    PNPPERNR-option = 'EQ'.
    append PNPPERNR.
    PNPBEGDA = SY-DATUM.

  • Pass values other than string to applet

    Can you pass values other than strings via the <param> tag to an applet?

    I guess I didn't make my question clear enough. I know that you can pass integers and floats and what not because you can always call parsing functions. What i meant was can you pass java objects like Image objects, or session objects, things that cannot be parsed from strings

  • Passing values to parameters in row created by createInsert method

    Hi,
    I am passing some values from one task flow to other as input parameters for the other.
    There(in second task flow) i am using a createInsert method to create a row.
    How can i pass the values of the input parameters received to the parameters of the createInsert row before reaching create page.
    Any suggestions will be really helpful.
    Thanks.

    User, which jdev version do you use?
    Instead of the createInsert you can use createWithParameters. Check Andrejus Baranovskis's Blog: CreateWithParams Operation for Oracle ADF BC 11g
    Timo

  • Passing value thru parameters

    select *
    from (select b.accode,c.actitle,nvl(sum(b.debit),0) op_dr,nvl(sum(b.credit),0) op_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date < '01-JUL-04'
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    full join
    (select b.accode,c.actitle,nvl(sum(b.debit),0) dur_dr,nvl(sum(b.credit),0) dur_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date between '01-JUL-04' and '30-JUN-05'
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    using (accode)
    Problem :- The above qurey is works perfect but if use parameters instead of using fixed dates it gives an erroe ( "VARIABLE TODT IS NOT DECLARED".
    Please expedite.
    Regards,
    Hassan

    select *
    from (select b.accode,c.actitle,nvl(sum(b.debit),0) op_dr,nvl(sum(b.credit),0) op_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date < :fmdt
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    full join
    (select b.accode,c.actitle,nvl(sum(b.debit),0) dur_dr,nvl(sum(b.credit),0) dur_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date between :fmdt and :todt
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    using (accode)
    This qurey is running and generating report only and only if I use fixed dates in place of :FMDT and :TODT like '01-JAN-05' , but if I use :FMDT and TODT to ask date parameters at run time then the qurey gives an error at compilation.
    I am sure u must have understood kinldy help me out OR do tell me other way to pass vaules thru parameters

  • Passing values as parameters from forms

    We are trying to use the On successful submission of a form area to forward to a report based on a value entered on the form.
    Is there a way to use a value from the form in the url?

    Here is the code I used. The code in bold allowed me to use the value entered on the form as a parameter for the report I am forwarding to.
    declare
    bidder_id number := 0;
    blk varchar2(10) := 'DEFAULT';
    begin
    bidder_id := p_session.get_value_as_number(p_block_name => blk,
    p_attribute_name => 'A_BIDDER_ID');
    go('PBR.SUM_REG_INFO.show?p_arg_names=pbr_bidder.bidder_id&p_arg_values='||bidder_id);
    end;

  • Passing values to parameters in Documents using se61..

    Hi Experts/Gurus,
    Can we define parameters in SE61 under type "Document  class: General Text" for a document?
    If so can any one please tell the steps?
    Regards,
    Yugesh
    Edited by: Yugesh Reddy on Nov 6, 2009 8:39 AM

    Hi  yugesh,
      Yes you cane create the documentation for document .
        Give the name of the document in Name field and click on create Button .
       now you can write the document and save it.
    Thanks
    Shambhu

  • Passing values to parameters

    Good morning all,
    I want to assign default value to parameter which is not equal to some fixed value
    for example :if i take currency field .i have to declare waerk field with default not equal to "INR" like that.
    can any one help me in this .
    thanks and regards,
    gopal

    Hi Gopal
    As per my understanding we use DEFAULT to assign a particular fixed value to the parameter.
    However if you do not want to some value like 'INR' in that parameter , you can always check the input at the selection screen before proceeding.
    Something like
    AT SELECTION-SCREEN.
    IF pa_waers = 'INR'.
    MESSAGE e000(Message class)... message can be smtg like 'Please enter a valid currency' etc.
    ENDIF.
    I am not sure if i have understood what you really are asking for.
    Thanks
    Shivika
    Edited by: Shivika Bhorchi on Aug 21, 2008 8:28 AM

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

  • Using Form to pass value to query parameters in the selct part of query

    I created a form in Access 2007 to pass 2 values to an Access query.  I am doing this to create delimited output (very large) with the parameters included in the selected data. The select works and is something like this:
    SELECT "^"+!FORM!EXPORT2DAT!PREF_VALUE+"_"+Replace(UCase([column_1])," ","_")+"^|" AS OUTPUT_column1, "^"+!FORM!EXPORT2DAT!COMPANY_VALUE+[COLUMN_3]+"
    ([COMPANY_VALUE])"+"^|" AS OUTPUT_column2,....................
    The form has text boxes for the values I want to pass PREF_VALUE and COMPANY_VALUE to the query parameters, and an execute button to open the query when clicked.
    However when I enter the values and click the execute button, I still get the parameter boxes for the 2 parameters. 1 for this: !FORM!EXPORT2DAT!PREF_VALUE, and FORM!EXPORT2DAT!COMPANY_VALUE. I thought I was filling in with the form text box values.
    Can I use the form's text boxes to pass values to concatenated using(+) columns in the select part of the query as I'm doing above?
    Thanks in advance for your response.

    I have never seen a select statement like that! 
    For query criteria I would use this --
       [FORMS]![EXPORT2DAT]![PREF_VALUE]
                   and              [FORMS]![EXPORT2DAT]![COMPANY_VALUE]
    Build a little, test a little

  • Passing different (multi-) values for parameters to drill-through report, based on clicked subtotal in main report

    In Report Builder 3.0, I have made a main report in which the user can filter the underlying dataset using three parameters (all multi-value). The report shows totals grouped by these three parameters, as well as a grand total. What I want is to click
    on a total, which then opens the drill-through report for the corresponding records. I have achieved this for the grand total; the action in the corresponding text box passes all selected values of the parameters to the drill-through report.
    What I cannot figure out is how to make this work right when clicking on a subtotal. When I use the same expression as for the grand total, the same values for the parameters are passed, instead of the subset that apply to the corresponding text box in the
    main report. I expected this to work, because Report Builder /does/ correctly calculate the SUMs for the different levels, even though the expressions are the same.
    My question is: how do I pass different drill-through (multi-) values for parameters, corresponding to the respective subtotals in the main report?
    (FYI: I am using Microsoft SQL Server 2008 R2 and Report Builder 3.0 .)

    Hello Katherine,
    Thanks once more for your quick reply.
    I was aware of the textbox action "Go to report", and how to pass parameters in general. My question concerned how to determine the scope of the passed multi-value parameters (to the values that apply to the respective group/subtotal). The article you linked
    to is informative, but not a solution to my problem.
    A colleague of mine came up with a pragmatic solution: instead of trying to determine the scope of the parameter values, now I "look to the left in the results table". The two screenshots below should illustrate this. (Screenshots are in Dutch. Specific information
    is pixelated.)
    Unfortunately, I am not able to post images. Once my account is verified, I will edit them in. For now, I hope the text speaks for itself enough.
    [Screenshot: Drill-through parameters - 01: Report Builder tablix with subtotals]
    [Screenshot: Drill-through parameters - 02: Textbox properties (selected in screenshot 01) - Action - Go to report]
    The first screenshot shows the tablix in the Report Builder. The second screenshot shows the properties of the textbox selected in the first.
    Notice that I do not pass parameters for the first two columns, but the actual values. I only pass the parameter (containing /all/ user-selected values) for the third column. In the textbox below the selected one, I pass the actual values for the first column,
    and parameters for the last two. In the textbox above the selected one, I pass the actual values for all three columns.
    The only (cosmetic) flaw this approach has is that in the drill-through report, the list of selected parameters might show values that do not occur in the (corresponding part of the) results, and only for those parameters for which the main report passes (all
    user-selected) parameter values, and not the actual values in the results. The results are correct, though.
    If there is a way to directly determine the scope of multi-value parameters for passing to a drill-through report, I would still like know. But for now, this seems to work.

  • Can applet pass value back to web page?

    if i run an applet in a web page, eg: aspx
    is it possible for me to pass value back to the page?

    if say i'm playing a maze, which written in applet.
    and the applet is run under a web page.Lika applets usually are.
    at the time i solve the maze, it will show a
    messagebox,
    at the beginning, i plan to write a solving data
    fileto the disk, but later i found out applet doesn't
    allow writing of file.It does. You just need to sign it.
    so i would like to pass the data value back to the
    web page, when i click the ok button on the message
    box.You didnt' answer my question. Web pages are HTML and don't accept data, so your question as it is makes no sense.
    pass back an integer value which store the solvign
    time.If you want to talk to Javascript, see my previous post about using Google to find out how. It's often-documented.

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

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

Maybe you are looking for

  • Unable to capture the parameter values from a PL/SQL procedure

    hi. i'm trying to capture the parameter values of a PL/SQL procedure by calling inside a anonymous block but i'm getting a "reference to uninitialized collection error" ORA-06531. Please help me regarding. i'm using following block for calling the pr

  • How to get my macbook pro out of VGA mode

    I plugged my new Macbook Pro into a VGA adapter to do a slideshow on a projector screen, and after i was finnished, my mac is still in VGA mode on the lcd screen - is a awkward view mode.  Does anyone know how to revert back to a normal viewing mode?

  • Spontaneous startups and shutdowns

    Ever since I got my G5 in 2004, I've had spontaneous startup/shutdown problems. I will wake up in the morning or come home from work and find the computer on and at the login prompt (I have set no such predetermined startup time.) Or, I'll be working

  • How to compare files with Java - help me!

    Is there any free utilities?

  • Print queue stalling when spooling many documents

    Hello all, need help with a peculiar issue. We have just built a brand-new Server 2003 R2 SP2 x86 virtual server in VMWare.  This server is also installed with the Subsystem for UNIX-based Applications components and a program called PrintMonitor tha