About Calling PHP from Applet

I'm developing a web page which incorporate applet. Now i want to call php(server side) from applet. It's ruuning good when the client is working in Direct Internet Connection. If client accessing internet from proxy ...how can i call the php
With Regards
Santhosh

got answer :)..if any one need help post ur queries in this question.

Similar Messages

  • Call php from PL/SQL

    Hello !
    i want to call PHP from PL/SQL(procedure).
    Is it possible .
    If yes then how.
    if no then is there any other way to do it.
    Regards
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Michael Kleiser ([email protected]):
    Look at this: http://www.oracle.com/oramag/code/tips2001/index.html?021201.html
    It`s a java-function which calls a os-command.
    I haven4t testet it.
    In this forum http://www.dbasupport.com/forums/showthread.php?threadid=3703
    someone asked the same question as you.
    I hope this helps you.<HR></BLOCKQUOTE>
    I've tried the tip above without success. Has anyone got it to work?
    null

  • About calling servlet from an applet

    In one of my jsp, I have an applet which is to call a servlet. When I run it, I get an error in the status bar of IE. It says 'Exception: java.lang.runtimeException: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:8080....)'
    Does anybody have similar experience?
    Thanks,
    Joe

    hi;
    to call a servlet from applet i give you a link:http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html.
    read cearfuly, and if you have any question you can post it to me?
    goodluck

  • Calling EJB from applet

    Hi friends,
    I have a problem of caling EJB from applet.that too from browser.
    Through dos prompt,I am able to set the classpath and then open the applet and then call the EJB.but thru browser i am encontering two problems,
    First,The codebase of applet is not being set and i am unable to view the applet.
    Second,my Initial Context Factory is not being found it is giving error as
    Cannot instantiate class: com.evermind.server.rmi.RMIInitialContextFactory.I am using oracle app server Oc4j2.
    can any one help me out.
    i am able to get output thru dos prompt where i can set classpath

    kyren,
    he has used something called HTML ConvertersDepends on the version of the plug-in you are using.
    (I'm sorry, but I couldn't find that detail in any of your posts!)
    You have to use the (HTML) converter with java version 1.3 (for example), but you don't have to with java version 1.4.
    thru my jbuilder version i am able to solve my
    problem.
    but thru browser,i am first of all not able to
    display applet.That's because "JBuilder" uses the appletviewer to display the applet (and not a browser).
    I Think for normal displaying applet we don't need of
    signed or unsigned applet.when calling ejb we may
    require.As Anupama has stated, the "codebase" attribute of the applet tag must be relative to the directory where the HTML file (containing the "applet" tag) is located. Where I work, we also use the "archive" attribute that tells the applet where to download the JAR files from. In order to lookup your ejb from your applet, you need (at least) the "oc4jclient.jar" file.
    By the way, if you want your name to appear next to your posts (instead of your ID number), you need to update your profile. Click on the "Forum Settings" link at the top of the (Web) page.
    Good Luck,
    Avi.

  • How to call  servlet from applet residing in Oracle9i forms bean area.

    Dear Members
    I have an applet which is calls a servlet for database operations. If access this from a browser it works fine as the applet is signed. But When i place this applet in a bean area of Forms in Oracle 9i. It gives access control exception. Can anyone help me, as i feel this problem is with oracle9i forms.

    Dear Members
    I have an applet which is calls a servlet for database
    operations. If access this from a browser it works
    fine as the applet is signed. But When i place this
    applet in a bean area of Forms in Oracle 9i. It gives
    access control exception. Can anyone help me, as i
    feel this problem is with oracle9i forms.As far as I recall - Oracle 9i forms is operating on a top of another special/internal servlet. I can't really recall, since I've been working with Oracle 9i forms 2 yrs ago. So total procedure looks like following:
    applet -> Oracle 9i Forms servlet -> my servlet
    instead of
    applet -> my servlet
    I think this is an actual reason why your signed applet can't work with your servlet.
    Oracle 9i servlet has a number configuration files, I think among them you should change smth to get your construction working. Another approach would be to use servlet filtering before calling Oracle 9i servlet
    Hopefully it will help
    Paul

  • Calling javascript from applet

    I want to access some javascript code from an applet.
    The applet should use swing, so the html page has all the code to launch java plug-in.
    As per jsbible, ch. 38, I import netscape.javascript classes and insert the following statement in init():
    mywin = JSObject.getWindow(this);
    While opening in browser, I get the following error:
    netscape.javascript.JSException
    at netscape.javascript.JSObject.getWindow(Unknown Source)
    at ShowDoc.init(ShowDoc.java:19)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Q1. How should the statement look? The problem seems to be with this, but I don't know what to replace it with. Or it could be Q2:
    Q2. Where shoud the magic word MAYSCRIPT be placed in the swing applet call (I'm using the universal template - both IE and NS - in htmlconverter).
    Thank you all

    I narrowed the problem to Q2:
    Where in the call of a swing applet does one insert the MAYSCRIPT parameter?

  • Calling php from java

    Hi all!
    I've searched everywhere and I can't find a solution.
    How can I call a php script from java?
    What I want to do is to open a pop-up window when I click a node from a tree, something like this: http://192.168.2.111/SecuritySystem/Security/main.php?user=admin&pass=1234"
    user and pass are properties of a session bean.
    I can open a pop-up window running a javascript code, but if I do it, I can not read the user and pass properties form the session bean.
    Any solution will be really helpful for me. Thanks in advance.

    try{
    URL url = new URL("http://webserver/php/create.php");
    HttpUrlConnection conn = url.openConnection();
    conn.connect();
    conn.disconnect();
    }catch(Exception e){
        e.printStackTrace();
    }Please reply if it works as you expected ;-)

  • The problem about call dll from VB....

    Dear All.
    I have a device and  VB dll file.I want to use labview to call  dll.But Labview show "An Exception occurred within the external code ..."
    Below is  to call this dll details.
    1、FindHardware:
    Call it at beginning when load program first, it can let program auto detect printer port address and model of dso scope.
    parament
    winversion:
    winversion = 2  "Windows NT,XP"
    UIP: open UIP(2048) array
    UCP:open  UCP(1023, 1023 + 11, 6)  array
    return:
    board_model:
    dso2902_128 = 27
    Then is my program
    Could somebody tell me what's wrong?
    Attachment file is this dll.
    http://us.f1.yahoofs.com/bc/500cf3ac/bc/dll/dll.ra​r?bfd1QSDBkHPgKI9c
    Thanks.
    由 Samyang 在 10-09-2005 07:14 AM 上編輯的訊息

    I can't say I understand the documentation snippet you provides, and I also can't access the DLL, but here are a couple things...
    1. I doubt very highly that a VB DLL is built with the C calling convension. I believe you should try the stdcall instead.
    2. You have the winversion being passed by pointer, but the docs make it look like a regular integer. Is that correct?
    3. Your board model is being passed by value, but it is listed as a return value in the docs. That would indicate an actual return value or a parameter passed by reference.
    My guess is that one or more of the above is causing the stack to get corrupted or an invalid pointer to be accessed and that is generating the error. Is there anyway to see the document (pdf or webpage)?
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Call ejb from browsers

    Hello Developers!
    I deployed my ejb to OAS4081. I call that
    from JDeveloper so it good. But when I try
    to call from applet in IExpl5 I can't
    instantiate the ORB. I've got a com.ms.security.SecurityException : oracle.oas.orb.CORBA.ORB.init
    I coded the CLASSPATH(oasoorb(yoj),client,
    ejbapi...) perfectly, I think.
    If anybody could help, please...
    Thanx!

    Hi there,
              I saw someone on this group had a problem to locate proper classpath
              to call EJB from JSP. I thought if you call EJB from classpath, you are
              calling the bean. But you loss all the EJB functions. To be able to utilize
              EJB features like object pooling. You need to call it from Weblogic server
              using url/jndi, not from the jar directly.
              Any comment? Am I right?
              BTW, my question about calling EJB from JSP means calling through URL,
              not a local path.
              Thank you
              >-------------------------------------------------------------------->
              Jim wrote in message <[email protected]>...
              >Hi there,
              > Can I call EJB from JSP? Is there a particular security setting or
              >concern for Weblogic? Is there an coding example?
              >
              >Thank you
              >
              >
              

  • Calling fontStyle from dropdownlist

    forum,
    Can i get some tips about calling "fontstyle" from dropdownlist.
    var myDialog = new Window('palette', 'Highlight_fontStyle_Gobally');
    var myGroup = myDialog.add('group', undefined, '');
    var newButton1 = myGroup.add('button', undefined, 'Highlight Words', {name:'Button'});
    var arrays = ["select font style", "Regular", "Medium", "Bold", "Italic", "Bold Italic"];
    var ddown= myGroup.add("dropdownlist", undefined, arrays);
    myDialog.show();
    newButton1.onClick = function() {
    myCondition = app.activeDocument.conditions.add ({name:"Highlight_Text",
    indicatorMethod:ConditionIndicatorMethod.USE_HIGHLIGHT, indicatorColor:UIColors.YELLOW});
    if (!myCondition.isValid) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.fontStyle = "Regular";  //here i have to assign arrays instead of fontStyle: Regular.. ie. app.findGrepPreferences.fontStyle = "arrays.onClick";
    app.changeGrepPreferences.appliedConditions = ["Highlight_Text"];
    app.changeGrep();
    please advise,
    shil...

    @ shilpa25.
                   Jump_over also correct. and you need to add add try...catch.. here. otherwise it will throw error while running second time.
    var myDialog = new Window('palette', 'Highlight_fontStyle_Gobally');
    var myGroup = myDialog.add('group', undefined, '');
    var newButton1 = myGroup.add('button', undefined, 'Highlight Words', {name:'Button'});
    var arrays = ["select font style", "Regular", "Medium", "Bold", "Italic", "Bold Italic"];
    var ddown= myGroup.add("dropdownlist", undefined, arrays);
    myDialog.show();
    newButton1.onClick = function() {
    try{ //use try... catch... here
    myCondition = app.activeDocument.conditions.add ({name:"Highlight_Text",indicatorMethod:ConditionIndicatorMethod.USE_HIGHLIGHT, indicatorColor:UIColors.YELLOW});
    catch(e){}
    if (!myCondition.isValid) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.fontStyle = ddown.selection.toString() ; // or ddown.selection.text
    app.changeGrepPreferences.appliedConditions = ["Highlight_Text"];
    app.changeGrep();

  • Passing values from applet using POST method to PHP page

    Hello there ;)
    I realy need a help here.. I`ve been working all day on sending mail from applet. I didn`t succeed bcs of the security restrictions.
    So I decided just to pass arguments into PHP page, which process them and send e-mail to me.
    So here is the problem.. I need to send String variables througth POST into my php page. Now I`m using GET method, but I need more than 4000 characters.
    My actual solution is:
      URL url = new URL("http://127.0.0.1/index.php?name=" + name + "&message=" + message);
    this.getAppletContext().showDocument(url,"_self");I really need to rewrite it into POST. Would you be so kind and write few lines example [applet + php code]? I`ve already searched, googled, etc.. Pls don`t copy links to other forums here, probably I`ve read it.
    Thanx in advance to all :)

    hi!
    i`ve got some news about my applet.. so take this applet code:
    public class Apletik extends JApplet {
        public void init() { }
        public void start()
        try
          String aLine; // only if reading response
          String  parametersAsString = "msg=ahoj&to=world";
          byte[] parameterAsBytes = parametersAsString.getBytes();
          // send parameters to server
          URL url = this.getCodeBase();
          url = new URL(url + "spracuj.php");
          URLConnection con = url.openConnection();
          con.setDoOutput(true);
          con.setDoInput(true); // only if reading response
          con.setUseCaches(false);
          con.setRequestProperty("Content=length", String.valueOf(parameterAsBytes.length));
          OutputStream oStream = con.getOutputStream();
          oStream.write(parameterAsBytes);
          oStream.flush();
          String line="";
          BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
          while ((aLine = in.readLine()) != null)
           JOptionPane.showMessageDialog(null, aLine);      
           if(aLine.equals("")) break;
          in.close();      
          oStream.close();
        catch (Exception ex)
          JOptionPane.showMessageDialog(null, ex.toString());
    }here is code of spracuj.php which is on server:
    <?php
      if(isset($_POST['msg']))
        echo('hurray!');
    ?>it has only 1 problem.. when i test it on my localhost, everything seems to be all right. but when i post it to my server, i got IOException HTTP 400 error code :( where is the problem? please help me, i`m so close :D thanx

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    If you have backup of your files, you can get your call history back as long as you sync iPhone with iTunes frequently.
    OK, the first thing you are required to do is close the function of "prevent iPhone from syncing automatically." in iTunes, avoiding to sync iPhone again.
    Now, connect your iPhone to pc and open iTunes.
    iTunes> preferences> devices
    All the backup data in iTunes will be displayed.
    Then,click the File menu and select Devices > Restore from Back up
    your iPhone will restart and you can find them back.
    This method only can find back the latest history, to get back the old, you should turn to a third party program for help.

  • Call a PL/SQL procedure or function from applet

    Could anyone please let me know how I could call a PL/SQL procedure
    or function from a JDBC method from applet with Internet Explorer?

    It depends from where you are calling your PLSQL routine. If it is SQL*Plus then you can use & (ampersand) with the variable to be input at run time.
    If you are executing the PLSQL routine from another application (some front end application) then it's not possible. Because when a procedure is executing at server side, the front end application does not have control, and the control is only transfered back to front end application when the PLSQL routine either completes successfully or throws an exception.
    In either case, you can not go back to the PLSQL routine.
    In this case, what you can do is, write code in your front end application to get that variable value from user and then pass that value to PLSQL routine.

Maybe you are looking for

  • AppleStore to use multiple macs on one Apple ID purchase?

    I have 3 macs and an MacAir. Do I get charged for every installation of purchased software, when I use my Apple ID on all macs? OR Do I get charged only Once for the purchase and can install soft on every mac from one Apple ID? How many macs are allo

  • Custom Prompt sometimes shows wrong Machine Name

    I set up a custom command prompt in my .bash_profile to show the machine name. Sometimes it works, sometimes it doesn't. The command: export PS1='\[\033[0;32m\]\h \W\$ \[\033[0m\]' Sometimes it shows lud610wxp-sales rfreedman$ Sometimes it shows qaim

  • Looking for a suitable slideshow for website

    Hi I'm looking for a slideshow similar to the one that I have on the frontpage of my website: http://naturallandscapeandirrigation.com I'm looking for something that looks similar (simple and has the thumbnails) but I have more control over the setti

  • Flash Media Live Encoder 3 authetification problem

    I was using FME2.5 since several months. I tried to update to the fmle3 but i have an authentification problem. I updated the authentification addin on the fms server to the version 3. When i run FME 2.5 i can connect and stream on the server but whe

  • HT4528 On the TV news was a report about Apple iPhones and iPads that they were unsecure. What does applet recommend

    On the TV news was a report about Apple iPhones and iPads  were unsecure.  Has apple adressed this? What does apple recommend? to fix this problem. I get email from Contacts in my address book. The email is not really from them.  Is this the issue at