Webserver and Applets

Hi everybody,
i don't know if this is the right forum to ask this question, but i'll give it a try anyway.
I've written an applet, that works just fine. Now i've also written a webserver. If you type in the address of the webserver in your webbrowser it sends the webbrowser the html-code for the applet, in my case:
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
The applet should appear below in a Java enabled browser.<br>
<applet
codebase = "."
code = "ruimtetest.test.class"
name = "TestApplet"
width = "485"
height = "350"
hspace = "0"
vspace = "0"
align = "middle"
>
<param name="IMAGEDIR" value="Pictures">
<param name="IPAdress" value="127.0.0.1">
</applet>
</body>
</html>
As you can see, this is local(127.0.0.1)... The webserver inserts his IP in the value-field of IPAdress.
When the applet is loading my webserver receives a request (GET /ruimtetest/test.class HTTP/1.1) and sends the applet to the browser. This happens with everything the browser wants. So, local everything works perfect.
When i type in the IP Address of the webserver from a different PC, the browser contacts the webserver and receives the HTML code (but instead of the 127.0.0.1, the IP addres of the webserver, for example 192.168.10.2) so that works fine.
But when the browser is trying to load the applet, my webserver doesn't receive a request for the class-file and the browser on the other side says it can't load the applet :(...
What am i doing wrong? Can somebody help me or suggest in which forum i should ask this question?
Thanks in advance,
IdunnO.

Thanks, i'll give it a try...
Do you also have an answer for the following problem?:
My applet needs to retrieve several images from different servers. I load the images as ImageIcons. I don't want to add policy entries, because then i'll have to add them on every computer that uses the applet. Instead, what i would like is for the applet to retrieve the image from the server (the server has access to everything). Do you know how this is possible?

Similar Messages

  • Is it possible to run a website built in Java and applet from Safari browser in iPad

    Is it possible to run a website built in Java and applet from Safari browser in iPad?

    Java isn't supported on the iPad

  • JDev3.0's JSP and Applet works on NT but doesn't work on Win98, why?

    JDeveloper3.0 works fine on WindowNT machine when I run JSP files and Applet, but at home the JDeveloper3.0 cannot trigger the browser to display the result on my Windows98 machine when I run the JSP files or Applet. Why? How can I make it works for me at home. Other tools, such as J++6.0 and JBuilder work with Applet on the same machine. Who can help me?

    James,
    The JDeveloper 3.0 design time environment is not supported on Windows98. Some functions might work under Win98 but they are not supported.
    Sorry!
    Regards,
    Arun

  • What's the disadvantages of using webserver and appserver of different type?

    If I choose webserver:iPlanet6.0 and appserver:WebLogic6.1 on one server, What's the disadvantages?
    Mayby I will use the webserver and appserver of the same company.
    I wish someone give me some advice.

    As Barney-15E says, someone with physical control, can just remove the disk, and put it in an external enclosure, and mount the file system with their computer and access all the files.
    Only encrypted data would be protected. There are data encryption facilities available on the Mac, both included, as well as 3rd party, including 3rd party whole disk encryption.
    But having a password on an account, and engaging the password when the screen saver is active, can keep casual access from happening.
    Also if you allow network access (file sharing, remote login, screen sharing), the password will keep random net users from accessing your system, when for example, you are in a coffee shop, or if someone gets onto your WiFi network, or you give a visitor to your home access to your network, or you allow a guest to use the guest account.

  • Regarding communication between JSF and applet.

    Hi all,
    I have to send a array of int value from JSF to the applet method and vice versa,
    so how can I do that?
    Is there any straight forward way is there?
    Or I need to use javascript in between applet and JSF for communicating.
    If this is case can give some links so that I can go through it.
    What I need is, I have jsf table(grid) when I select a row from table, for the selected row I have to display selected row ID in applet and vice versa.
    Any suggestion or links will be appreciated, thanks in advance.
    Thanks
    daya

    thanks and sorry for late reply, let me go through the link,
    i have tried with JavaScript, i got stuck, i need to call a JavaScript method for JSF component event listener. I searched in Google but no help regarding same.
    Actually what I need is, I have JSF Component i.e. GridView(Table) and applet in a page. And for each row selection in GridView(table) I need to call a javascript method (with column value), and vice versa.
    Can you give suggestion or any link so that can proceed further.
    and i am able to communicate between applet which are included in the page
    Thanks
    Daya

  • Make sure Webserver and Appserver are up. java.lang.NullPointerException

    I redeployed PIA (websphere version 6.1.0.3) Aix 5.3
    Webserver / Apps boot up fine and 3 tier login works perfect.
    While trying to login to the Apps (PIA) i get following Error
    Please make sure Webserver and Appserver are up.
    java.lang.NullPointerException
    i also reinstalled PIA for another instance on the same server... that is working fine.
    I checked the PIAinstall.log as well .. that also looks fine.
    I have increased the Java Heap size but that also dint help..
    Can anyone help or adivse on this ...Thanks

    Vishal,
    Is it the follow of your previous thread ? Re: Issue with PeopleSoft Sign-on url....not able to get the signon page
    Wouldn't it be Weblogic11gR1 ?
    Did you upgraded your FSCM 8.9 database to Peopletools 8.50 ?
    It seems you are not using fixed IP address and /etc/hosts not updated correctly (127.0.0.1 should not be used here).
    OS ?
    I checked the PSMSGNODEDEFN table and the node PSFT_EP is the default node and not the PT_LOCAL. Can this be the reason or something else? I'm not sure to understand you is wrong there. Why would you want PT_LOCAL ?
    Error in service HomepageT, CREF with URL can not be foundAre you using Portal ?
    This error is described here : HomepageT, CREF with URL can not be found ID 624799.1+
    Nicolas.

  • Adf faces table and applet in jsf page navSubmit not working in IE

    Hi
    I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
    I have no clue what to change , can any one help. below is the sample code for my jsf page
    Best regards
    Srinivas
    Code follows, not sure how to format the code here
    <h:form>
    <af:panelPage title="Test Adf faces table and applet">
    <af:panelHeader text="Orders">
    <af:table value="#{bindings.Orders.collectionModel}" var="row"
    rows="#{bindings.Orders.rangeSize}"
    first="#{bindings.Orders.rangeStart}"
    emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="orders" >
    <af:column sortProperty="order"
    headerText="#{bindings.Orders.labels.order}">
    <af:commandLink text="#{row.order}"
    id="orderNumber"
    onclick="showOrder(#{row.order})"
    disabled="false"/>
    </af:column>
                   </af:table>
    </af:panelHeader>
    <af:objectSpacer width="10" height="10"/>
    <af:panelBox>
    <f:verbatim>
    <div id="appletDiv">
                        <applet here />
                        </div>
    </f:verbatim>
    </af:panelBox>
    </af:panelHorizontal>
    </af:panelPage>
    </h:form>

    Sorry about the format, it looked okay when i previewed it , now it looks like terrible

  • Package and applet

    I am reading about Zhiqun's Java Card book,
    and I wonder about the relationship between a package and an applet.
    Am I right in saying:
    1. An applet comprises one or several packages
    2. A package only belongs to one applet
    3. One package is one group context
    Hope to get your guidance.
    B.R.
    RuHE

    Refers to your assertions,
    Please help me..
    Case 1
    I have package A. Package A contains 2 class (A1 & A2 ) and 2 package (B and C).
    Then, I make 2 applet, they are applet-B (for package B) and applet-C (for package C).
    When simulationi in JCWDE, applet-B and applet-C have no problem. But, in CREF, applet throw exception and status word is 6443.
    Case 2
    When I try to include class A1 and A2 into package B and C, so package A is empy. Surprisingly, applet-B and applet-C can run in CREF and JCWDE. I don't know, what's wrong in case 1.
    Can you give me explanation or explanation about problem in above...?
    Best Regards,
    Wiwit

  • WebServer and Browser

    Whenever a request is made to the web server for some page then in the status bar of the browser we can see message like "2 items remaining". From where this message come. is it this way that web server sends response to the browser at one shot and browser reads the response and paints the screen item by item (i.e. images) or Web Server sends the response in chunks and browser waits for it. please explain

    It is handled by the client and it usually applies to downloading the other involved parts of the webpage. Those are generally images.
    You can change those status bar messages using Javascript. If you can, you can use AJAX to communicate realtime between the webserver and the Javascript.

  • Appletviewer and applets

    Hi!
    I am using j2sdk 1.4.0 under linux. I have been creating an applet. The screen refresh is tied to a timer. However, the screen refresh gets very slow after 2 - 5 seconds after the applet has been started. If I move mouse in applets window, the refresh gets fast during that time.
    The applet code is very simple: timer calls repaint method of the applet and applet's paint method just draws new picture to the screen using drawImage.
    Anyone run into same problem? What could be wrong?
    Thanks
    Sammy

    ok but whats the problem the fast refreshing??
    if so then u have two options:
    1)double buffering
    2)if u dont need the re-paint let the java do it for u dont overide it
    denny

  • Can I use AWT and Applets in a J2EE project???

    Hi,
    I adore applets and the package AWT... And I would like to know if some way exists to integrate my applet with my application J2EE... I want to use these in the vision tier in a J2EE(EJB) project...
    How can I make that my applet acts as an observing process of my model??? If the JVM will be informed on any alterations in the model will be the JVM of the server while my applet will be being executed for the JVM of browser...
    []'s
    Ary Junior

    I have a J2EE application, for which I have a module which is used by system administrators. this module is completly written in Java swing.
    and it does talk to my EJBs.
    If you don't have a firewall in your application, then you can directly make your applications in awt, swing and applets talk to EJBs. if you do have a firewall, then just write a web-service wrapper over your EJBs and other J2EE components and use them from desktop applications.
    It seems that you want to implement a kind of a applet based monitor application for your J2EE EJBs on the server. Applets cannot directly monitor your EJBs.
    Create a new module which has a service which acts as an event listener on the server. each j2ee component on the server notify it if there is a change to them. this service, can then write the data realted to the modification on a socket which is continiously being read by the applet. So you can implement a kind of a monitor for J2ee apps with applets.
    hope this helps.
    regards,
    Abhishek.
    PS:How did you manage to adore the AWT ;-) ? I found that it sucks (good performance.. very poor lnf) ... java swing sucks too (very poor performance ... avaerage lnf).

  • Xml and applets

    I'm trying to use Sax in an applet to read an xml file. My application works fine, but when I convert it to an applet, I get errors.
    Does anybody know where I can get info and examples using Xml, Sax, and Applets? Any info would be helpful. Thanks.

    Probably nothing to do with XML. You use it in an applet precisely as you would use it in an application. You are probably running into one of the usual applet problems. Of course, this is all guesswork without any idea of what errors you are actually having.

  • Unable to execute and applet

    I'm new programmer in java. There are somme applet that run with appletwier
    but witch do not run with Internet explorer and Netscape. I'm always getting
    this error : 'Class not found'. I want to know all the steps to run and applet
    using Netscape or Internet explorer.
    I'm french speaking. Sorry if my english is poor.
    Thank's for your answers.

    I think you can't solve your problem.
    The fact is that appletviewer supports the java classes you have installed with the sun's jdk... if you are using jdk 1.3.1, it uses the java libraries included in your installed distribution. IE virtual machine, instead, uses its own library, so you can't use in your applets classes like: swing, graphics2d, and so on...
    I know that it's not a great help. Sorry!
    However, if someone could tell us how to include these classes in our CABs/JARs... i think we are really happy! :-)
    Ciao,
    Paolo.

  • Looking for WEB HOST that I can do servlets and applets on

    Hello everyone,
    Does anyone know where I can buy web space that will allow me to run a servlet and applet from. I have been shopping today and I had difficutly finding one.

    Hmm.... well duffymo. I have gone to a number of sites through Google looking for web hosting sites that support java and I must be picking all the wrong ones to look at because I have only found one in Fremont out of 25-30 that I have looked at.
    I guess duffymo you can say what you want in a forum, but usually answering a question with a question isn't very helpful nor appreciated.

  • JDBC and Applet communication

    HI!
    I am not able to connect my Oracle datbase in Applet.
    Please give ur suggestions.
    Thanx in Adv
    Vink

    Hi
    An applet can request a socket connection only to the server from which it is downloaded from.
    If your database and the webserver are running on different hosts then the applet security model restricts the applet from connecting to the database. You need to set the proper security policies and sign the applets.
    Refer the following link on applets
    http://developer.java.sun.com/developer/technicalArticles/Security/Signed/
    Also post the complete error/stack traces if you get into some problems.
    Hope this helps
    shrini

Maybe you are looking for

  • How to undo an order of transport which has returned an error code 8

    Hi experts, While transporting an installation of business content, it has removed a lot of transfert rules. Could you tell me how to undo this transport from quality to the production envirenenmet. Unfortunately I dident check the transport order wh

  • Are there jumpers on a Mac g4 Mdd

    I am swapping from a 867 Mirror drive to a 1.25 ghz processor on a Mac g4 MDD. Are there any jumpers that need to changed??? Please Help Thanx

  • Set up prepaid calling card for international calls?

    I have a prepaid calling card that I use for calling international. The way it works is that I have to call a 866 number, followed by entering a 10 digit code, and then proceed to calling the actual number (with international prefix codes). Is there

  • How can i get games on my ipod?

    how can i get games on my ipod?

  • Using Java with Oracle Spatial

    I am using the JDBC (Java classes dowloaded from technet.oracle.com - (sdoapi.zip)) together with Oracle Spatial 8.1.6. I am writing a collection of Linestrings into Oracle Spatial using the supplied java classes(sdoapi.zip). I use the function creat