Passing parameter from applet to portal is failing

hi all.
We have an external applet that we can view on the portal. We want to have two parameter (parm1 and parm2) passed from the applet to the gateway and thus have them re-written by the portal gateway.
When we access the applet from the portal, and View Source inside the browser's window, we see that the gateway URL does not precede the parameter's url:
we see:
<PARAM NAME = "param1" VALUE="http://host.domain.com:8080/JUPL/...
instead of:
<PARAM NAME = "param1" VALUE="https://http://host.domain.com/http://host.domain.com:8080/JUPL/...
However, we are following sun docs on how to apply rules for HTML content (As in http://docs.sun.com/source/816-6359-10/rewrtadm.html#23362).
here's our rule:
     <Applet source="*/applet1.jsp" code="java2.applet1.client.MApplet.class"
     param="param1;param2;"/>
Any ideas on how to solve this?
Thanks!

Here this shold work for ya
you just have to add a extra text file or what ever but this will give you some ideas
  import java.awt.*;
import java.net.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
public class a extends Applet implements ActionListener {
Button button = new Button("click");
TextField field = new TextField(20);
JFrame frame = new JFrame();
  String gg;
public void init() {
  add(button);
   add(field);
   button.addActionListener(this);
public void actionPerformed(ActionEvent eve) {
       if(eve.getSource() == button) {
            try{
                     gg = field.getText();
                 JOptionPane.showMessageDialog(frame, gg);
           } catch(Exception e) {}
}hope this helps

Similar Messages

  • How to pass parameter from 1 stored procedure to another stored procedure inside crystal report

    Hi
    I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
    I have 3 stored procedure
    The 1st one is used to gather information and process the calculation
    another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
    After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
    Thanks in advance
    Chi

    Hi Chi
    To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
    After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
    Regards
    Poonam Thorat.

  • How to pass parameter from form6i to report6i

    when i passed parameter from form6i to report6i, while previewing report the data was not displaying only fields heading was displaying, but in report6i there is a parameter form thru that it was displaying data, but thru form6i to report6i it was not. Please kindly help me and give me the some sample or example of it.
    Thanks
    Best regards
    Zaheer

    ADD_PARAMETER(pl_id,'P_SCRIPT',TEXT_PARAMETER,:b1.script);

  • Master-detail relationship - passing parameter from form to form

    Hello.
    I have a question about master detail relationship.
    In first form we have master-detail relationship.
    Example on dept, emp tables:
    We query dept (master), so we can get one or many emp (detail) records. Then we have a third table - tasks. Tasks table (detail) can have many records for one employee.
    Tasks table is in another form, which is called with call_form built_in. So we pass a parameter from master to detail - parameter empno. Because of that, we can only see tasks for one employee and can't navigate to another employee. This is normal.
    Now comes the question.
    Is it possible to call a form (with tasks table) with deptno parameter (so we can navigate through all employees with that department), but first show employee that was last used in first form?
    Example of our goal.
    Master: deptno = 20
    Detail: navigate to JONES employee
    Call new form (tasks)
    Tasks for JONES employee are first shown
    Can navigate to another employee - without requery
    Is this possible?
    If we pass deptno parameter, we can navigate through all employees - but must navigate to the employee we last used in first form.
    If we pass empno parameter to second form, we see last used employee but cannot navigate to another employee without requery.
    Hope you understand my problem.
    Thanks.

    Hi
    yes you can pass parameter from one form to another.
    In your master detail form set the trigger when-new-instance and there define the global variable like
    :GLOBAL.G_CIRCLE_ID := NULL;
    and in your task table set the trigger when-new-instance and there define the global variable like and also write this code
    :GLOBAL.G_DIVISION_ID := NULL;
    IF :GLOBAL.G_CIRCLE_ID IS NOT NULL THEN
         GO_BLOCK('DIVISION');
         SET_BLOCK_PROPERTY('DIVISION',DEFAULT_WHERE,'CIRCLE_ID ='||''''||:GLOBAL.G_CIRCLE_ID||'''');
         EXECUTE_QUERY;
    END IF;
    :GLOBAL.G_CIRCLE_ID := NULL;
    now you maintain your trigger according your need.
    Regards,

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

  • How can I pass parameter from report to form?

    Hi :)
    Now I try to build conference room like this by using form
    and report. And i design that when users click at group report
    then i'll show page that contain questions report and add
    question form. And question form and report must receive the
    same parameter from group report.
    First Problem: is I don't know how group report send the
    same parameter to question report and add question report at the
    same time. And is it possible??? If not please suggest me what
    should I do???
    Second Problem: is I don't know how can I pass parameter from
    report to form. I don't know the way to do it.
    Please tell me!!! Please...
    I look forward to hearing from all of you.
    Thank You.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • How to   Pass Parameter from BIP  to Dashboard  Report

    Hi,
    Parameter from BIP to Dashboard Report
    If I select BIP report paremeter should pass value to dashboard report
    thanks in advance.
    CHEERS ,
    Jel

    Hi Saichand,
    I hav gone through above link its passing values from Dashboard prompt to BIP report only..
    just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
    Thanks in advance
    Cheers,
    Jel

  • Hw to pass parameter from report to forms

    Dear Friends,
    I m working on Forms n Reports 6i,
    I m running report n passing parameter from the forms now the requirement is that if report run successfully it shuld give the msg otherwise give an user define error msg.
    Hw do i pass any parameter from report to form for acknowledgment.
    Thanking yours
    Chandan

    Hi Rajat,
    using run_product built in i can pass parameter from forms to reports but hw can i get some parameter value from reports to forms as mentioned earlier my post
    Thanking Yours,
    Chandan

  • Passing Parameter from URL to Web Forms - Oracle 10 Application Server

    Hi All -
    I want to pass parameter from a URL to 10g Oracle Web Forms - Oracle Application Server 10.1.2
    http://server1/forms/frmservlet?config=SATWEB_SSO&otherparams=username_sso=BABUS
    How to receive this 'username_sso' value inside my forms application ?
    Created a Parameter in the same name as URL parameter 'username_sso' in forms but didn't receive the value. I want to know how to receive the value of this parameter within forms from URL.
    Thanks - Suresh

    Try this,
    1. Create a parameter in the formsweb.cfg (say username_sso) under default section ( or you can create it in your own config section)
    2. Add the username_sso in otherparams parameter as username_sso=%username_sso%
    3. Add this username_sso parameter in your form.
    4. Run the form as
    http://<machine>:<port>.....?form=blahblah....&otherparams=username_sso=scott
    Regards,
    Arun

  • Not able to pass parameter from one fragment to another fragment in another taskFlow

    Hi,
    I'm trying to pass parameter from one fragment to another fragment and want to print the parameter value in second fragment.
    i have inputtext in first frag---
    first fragment belongs to one taskflow1 and this taskflow1 i had darg and drop to one mainPage.
    Under taskflow1 itself i drag and drop one taskflow call activity and on top of that i drag and drop another bounded taskflow as taskflow2
    under taskflow2 i have one fragment as fragment2and in that i have one outputtext field, now here i want to print the value from fragment1--inputtextfield value
    to achive this i had tried many ways but somewhere doing mistake please explain step by step.
    Thanks
    Mahesh

    In addition you need to tell us your jdev version!
    Can you elaborate on your use case a be more?
    On which event this should happen?
    In general contextual events should allow you to implement this, however, as I don't understand the use case, I find it hard to help.
    Timo

  • Passing parameter from workitem to bsp page

    Hi,
    is it possible to pass parameter from workitem to bsp page and also vice versa?

    SAP_WAPI_READ_CONTAINER function works well.but i need to pass a parameter to workitem container.
    what i am trying to do is;
    1-get data by using sap_wapi_read_container
    2-change data
    3-send changed data back to workitem
    my problem is in third step.I am using SAP_WAPI_WRITE_CONTAINER. but it doesnt work.After execution the FM return_code set to 1.
    Do u know how to set a variable in workitem?

  • How to pass parameter from javascript to applet ?

    i have some parameters from form in html,
    and i would like to pass from javascript to an applet,
    (which a type of calling method in applet from javascript)
    and get back data from applet to display in html
    how could i do this ?

    in my program,
    i pass 3 string to the applet
    var reply = document.test.called(ft, fc, tc)
    in the fucntion "called" in the "test" applet
    i simply test it by
    public String called(String l, String from, String to){
    return "abcd";
    but the result should the value return is "1"
    can anyone help me ?

  • Passing a file as parameter from applet to servlet

    hi
    i have just started to use servlets. i have developed applet gui interface. when i click the button i want a file "abc.txt" to be send to the servlet. i am doing like this:
    URL serv_url = new URL(null,"http://host:port/xyz/servlet/TestServlet);
    URLConnection connect = (URLConnection)serv_url.openConnection();
    output = new File("abc.txt");
    connect.setDoOutput(true);
    connect.setDoInput(true);
    connect.setUseCaches(false);
    connect.setDefaultUseCaches(false);
    connect.setRequestProperty("content-type","application/x-www-form-urlencoded");
    ObjectOutputStream outputToServlet = new ObjectOutputStream(connect.getOutputStream());
    outputToServlet.writeObject(output);
    outputToServlet.flush();
    outputToServlet.close();
    //for printing purpose on the gui listbox          
    listmodel1.addElement("ConnectingToRemoteServlet");
    BufferedReader in = new BufferedReader ( new InputStreamReader (connect.getInputStream()));
              while((line = in.readLine())!= null)
              listmodel1.addElement("Response:"+line);
              in.close();
    but i am not sure if this is correct. because when i tried to print the file that is send to servlet. it is giving some ascii characters...
    please tell me how to make sure if the file has reached the servlet. or any other method!!
    thanks
    pre_pra

    i don't want to use any third party packages to achieve this. I have looking into forums and i understand that some object serialization stuff has to be done. but i am still not clear abt how to proceed. any example code or details of steps regarding to pass file object from applet to the servlet would be greatly appreciated. i have already spend two full days on this. i wish i can get a better understanding wiht you help
    thanks a lot:)

  • How to pass parameter from unix to oracle

    Hi all,
    Kindly need your help regarding to this problem
    for i in `ls *.dat*`
    do
    echo "File $i"
    sqlplus -s $conn <<END
    set echo off
    set termout off
    set feedback off
    set verify off
    set showmode off
    set pagesize 0
    set recsep off
    spool file_$day
    select nvl((select file_name from abc where file_name=$i),'Files Not Found') from dual;
    spool off
    exit
    END
    done
    I need to pass parameter to the select statement but it failed. The error is
    select nvl((select file_name from abc where file_name=),'Files Not Found') from dual
    ERROR at line 1:
    ORA-00936: missing expression
    It seems like the parameter didnt passed to the query. Need everyone helps. Urgent!
    Many thanks
    Tiiim

    I would have helped you had you not been abusive and called your request urgent. If it is truly urgent call an ambulance or the fire department or Oracle Support.
    We are volunteers and your request is no more important, or urgent, than that of anyone else here.
    An apology would be appropriate.

  • Passing parameter to Applet Dynamically

    Hi All,
    How can i pass the parameter to applet at the runtime?
    I want to play a video file. So 'm using one applet(I got this from JMF Documentation).
    Here is the Applet._
    import java.applet.Applet;
    import java.awt.*;
    import java.io.File;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    import javax.media.*;
    import javax.swing.JOptionPane;
    public class TypicalPlayerApplet extends Applet implements ControllerListener
    // media player
    Player player = null;
    String mediaFile = null;
    // component in which video is playing
    Component visualComponent = null;
    // controls gain, position, start, stop
    Component controlComponent = null;
    // displays progress during download
    Component progressBar = null;
    * Read the applet file parameter and create the media
    * player.
    public void init()
    setLayout(new BorderLayout());
    // input file name from html param
    //String mediaFile = null;
    // URL for our media file
    URL url = null;
    // URL for doc containing applet
    URL codeBase = getDocumentBase();
    // Get the media filename info.
    // The applet tag should contain the path to the
    // source media file, relative to the html page.
    if ((mediaFile = getParameter("FILE")) == null)
    Fatal("Invalid media file parameter");
    try
    // Create an url from the file name and the url to the
    // document containing this applet.
    if ((url = ((new File(mediaFile)).toURI()).toURL()) == null)
    Fatal("Can't build URL for " + mediaFile);
    // Create an instance of a player for this media
    if ((player = Manager.createPlayer(url)) == null)
    Fatal("Could not create player for "+url);
    // Add ourselves as a listener for player's events
    player.addControllerListener(this);
    catch (NoPlayerException ex)
    JOptionPane.showMessageDialog(null, "Error "+ex.getMessage());
    catch (MalformedURLException u)
    Fatal("Invalid media file URL!");
    catch(IOException i)
    Fatal("IO exception creating player for "+url);
    * Start media file playback. This function is called the
    * first time that the Applet runs and every
    * time the user re-enters the page.
    public void start()
    // Call start() to prefetch and start the player.
    if (player != null) player.start();
    * Stop media file playback and release resources before
    * leaving the page.
    public void stop()
    if (player != null)
    player.stop();
    player.deallocate();
    * This controllerUpdate function must be defined in order
    * to implement a ControllerListener interface. This
    * function will be called whenever there is a media event.
    public synchronized void controllerUpdate(ControllerEvent event)
    // If we're getting messages from a dead player,
    // just leave
    if (player == null) return;
    // When the player is Realized, get the visual
    // and control components and add them to the Applet
    if (event instanceof RealizeCompleteEvent)
    if ((visualComponent = player.getVisualComponent()) != null)
    add("Center", visualComponent);
    if ((controlComponent = player.getControlPanelComponent()) != null)
    add("South",controlComponent);
    // force the applet to draw the components
    validate();
    else if (event instanceof CachingControlEvent)
    // Put a progress bar up when downloading starts,
    // take it down when downloading ends.
    CachingControlEvent e = (CachingControlEvent) event;
    CachingControl cc = e.getCachingControl();
    long cc_progress = e.getContentProgress();
    long cc_length = cc.getContentLength();
    // Add the bar if not already there ...
    if (progressBar == null)
    if ((progressBar = cc.getProgressBarComponent()) != null)
    add("North", progressBar);
    validate();
    // Remove bar when finished ownloading
    if (progressBar != null)
    if (cc_progress == cc_length)
    remove (progressBar);
    progressBar = null;
    validate();
    else if (event instanceof EndOfMediaEvent)
    // We've reached the end of the media; rewind and
    // start over
    player.setMediaTime(new Time(0));
    player.start();
    else if (event instanceof ControllerErrorEvent)
    // Tell TypicalPlayerApplet.start() to call it a day
    player = null;
    Fatal (((ControllerErrorEvent)event).getMessage());
    void Fatal (String s)
    // Applications will make various choices about what
    // to do here. We print a message and then exit
    System.err.println("FATAL ERROR: " + s);
    throw new Error(s); // Invoke the uncaught exception
    // handler System.exit() is another
    // choice
    Following is my HTML Code,_
    <applet id="TypicalPlayerApplet" name="TypicalPlayerApplet" code="TypicalPlayerApplet.class" codebase="app" width=320 height=300>
    <param name=file id="param1" value="c:\\avi\\cineloop1.avi" />
    </applet>
    What my question is how can i pass this location "c:\\avi\\cineloop1.avi" at the runtime. I am passing the cineloop location along with the URL. Now i want to pass this location which is taken from the URL, to the Applet.
    How can i achieve this. Will some one help me out.
    Thanks and regards
    Chennaibee.

    Thanks winj,
    I tried to pass the cine loop filename via java script on page load event.
    function assignit()
    var filename='c:\\avi\\loop3.avi';
    var myapplet = document.getElementById('TypicalPlayerApplet');
    myapplet.mediaFile=filename;
    And in the page load event i called this JS.
    *<body onload='assignit();'>*
    It's passing the file name after the applet getting started.
    How can i pass the file name before the applet getting starts.
    Is it possible to call this Java Script during the page initialization.
    Regards
    Chennaibee.

Maybe you are looking for

  • Creative Cloud will not install correctly on Windows 7

    I've downloaded Creative Cloud several times and cannot get it to install. I also cannot get Adobe Air to install. I continue to get Error Message 205. Adobe Creative Cloud

  • How to get custom columns from Database in BO Universe

    Hi, We have 'n' databases. All the databases have identical tables and views but some tables in few database have custom columns. Ex. 'database1' has table 'sites' with the following columns        1. sitenumber        2. sitename        3. siteaddre

  • Download proccess and error

    I had tired on two different laptops so far to download Creative Cloud for a free trial of Phtoshop, and both times when I have tried to download "Adobe Installer" time it comes up with the same error, it downloaded the exact same amount on both time

  • Need to know the reference table incase of 105 (GR for Blocked STK)

    Hi, I have created one PO and then I have done two 103(GR into Bolcked STK) then after I have done a 105(GR for Blocked STK) against one of the 103. My question is how could I identify for which 103 I have done 105. Is there any reference table-field

  • Parallel Routing in Production

    Hi all, I am using parallel routing. When we creder production order, routing gets coppied in production order.I am able to see only standard sequence but not able to see parallel sequence. How can we see it in production order? and how it works? Its