Inter Applet Communication across frames - Help Needed

I am trying inter applet communication across frames. For this to happen I am using an intermidiate
class which registers two applets and whenever any applet needs reference of other applet it gets it
through this class.
The page is an important part of a navigation link. So it is loaded many times while traversing through
the site.
Every time I load this page the applet does not paint itself (shows grey or background) and the browser
stops responding. The machine needs to be restarted. This also happens when we keep that page idle for
a long time (say 2 hours - session does not time out but applet hangs). I have used another thread object
which is for utility and accesses the applet in the other frame every 10 seconds or so.
When the applet hangs it does ot throw any exception or JVM error. This happens on certain machines
evrytime and never on some machines. The applet hangs only in Microsoft IE 5 & 5.5 and never in Netscape
4.x.
What could be the problem?
Can anyone help me with this problem? Its a deadline project and I can't get through.
Thanks & Regards,
Rahul

Try making the register and getter methods of the intermediate class static synchronized. Then register the applets in their start() methods and unregister them in their stop() methods. Call the getter method of the intermediate class wherever you need access to another applet and never cache the instance you get. You may have to also synchronize all your start() and stop() methods to the intermediate class, as well as all methods that perform interapplet communication.
Tell me what happenned ...

Similar Messages

  • FRAME help needed URGENT!!!!!!

    hi all,
    pls i need an help of appending the two textfield to a file named map.txt. IF i enter .txt in the 1'st textfield and
    notepad.exe in the second textfield,,,,,,,,the data's should be appended as .txt=notepad.exe in the map.txt file.
    i need codin for appending the following data.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class samgui extends Frame implements ActionListener
    Label l1,l2;
    Button b1,b2,b3;
    TextField txt1,txt2;
    samgui()
    setSize(300,200);
    add(l1=new Label("Enter the extension "));
    add(txt1=new TextField(20));
    add(l2=new Label("The Invoker is"));
    add(txt2=new TextField(20));
    add(b1=new Button("APPEND"));
    add(b2=new Button("EXIT"));
    add(b3=new Button("CLEAR"));
    b1.addActionListener(this);
    b2.addActionListener(this);
    b3.addActionListener(this);
    setLayout(new FlowLayout(FlowLayout.LEFT,30,10));
    public void actionPerformed(ActionEvent ae)
    if (ae.getSource()==b2)
    System.exit(0);
    if (ae.getSource()==b3)
    txt1.setText("");
    txt2.setText("");
    if (ae.getSource()==b1)
    append();
    public void append()
    public static void main(String arg[])
    samgui sam=new samgui();
    sam.setVisible(true);
    PLS HELP ME!!!!!!!
    ATTACH THE CODING PLS...............

    No one wants to write your code for you. You should have just asked for suggestions.

  • Deploying Applets on OAS (urgent help needed)

    I have installed and Configured OAS 4.0.7.1 on Win Nt Server ( SP5)
    I have created a very simple Java Applet using JDeveloper 1.1 and followed the deployment method as specified in the Work book (Student Work book).
    I have modified the source to add the ARCHIVE line.Using the Deployment Wizard I have created the archive file (.jar).
    I have the Java class files and the archive file in the same directory.
    I have added a HTTP Listener with port 90 and set the Directory for Virtual path corresponding to the directory where the java class files and archive files are available.
    Now when I enter the URL for the invoking HTML file from the Browser the Applet seems to be loading but it doesn't. The error message at the bottom of the Applet(looks like the Applet Window):
    load: <packagename>.<classname> cannot be instaniated.
    Please help me to resolve the problem at the earliest.
    Thanks
    Thiru

    Marcosk2,
    I am still having problems.
    kindly tell me the steps in detail.
    what i have done is:
    1.i have a simple applet (with frame) with a button.
    2. I have edited the html file and included the following:
    CODEBASE="imtac" -the virtual directory name
    ARCHIVE = "carclas.zip"
    3.with Deployment Wizard I have created the zip file (carclass.zip);
    Whe I run the Applet (in JD1.1) it is not running as it is looking for the path (imtac) but if i remove the virtual path (imtac) then the applet runs. You asked me to include the virtual path name in the CODEBASE parameter.
    Please do let me know in steps so that i too can deploy the applets in the WEB.
    It will be of great help even if u give me your telephone no with country code and area code so that I could talk to u and make things workable here. ( i am in Oman).
    I have to give a demo tomorrow.
    Thanks

  • TextFields / labels in Applet...Urgent help needed please!!

    I have been trying for days to add labels and textFields to my applet and can only manage to display one.
    My assignment instructions suggest I use makeTextField method and call the setEditable method from the makeTextField method to avoid repetition of code.
    The following is my code...I must have this done in the next couple of days so if someone could please please give me some assistance it would be really appreciated....also, thoughts on my layout would be great as well...i cant seem to set up my buttons in the correct order.
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class Registry4b extends Applet implements ActionListener {
    public void init() {
    backgroundColor = new Color(200,255,255);
    this.setLayout(new FlowLayout(FlowLayout.CENTER,4,1));
    makeButtons();
    row1 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row1.add(clearB);
    row1.add(studFindB);
    row1.add(studForB);
    row1.add(courB);
    row2 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row2.add(studBackB);
    row2.add(courFindB);
    row2.add(courForB);
    row2.add(studB);
    row3 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row3.add(courBackB);
    add(row1);
    add(row2);
    add(row3);
    Panel p = new Panel(new BorderLayout());
    Label studID = new Label("STUDENT ID");
    TextField entry = new TextField(" ");
    p.add(studID,BorderLayout.WEST);
    p.add(entry,BorderLayout.CENTER);
    Label firstTF = new Label("FIRST NAME");
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("West",courBackB);
    add("East",studB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("North",p);
    add("South",courForB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("North",courFindB);
    add("South",studBackB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("West",p);
    add("East",studForB);
    setBackground(backgroundColor);
    clearB.addActionListener(this);
    courBackB.addActionListener(this);
    studB.addActionListener(this);
    courForB.addActionListener(this);
    courFindB.addActionListener(this);
    studBackB.addActionListener(this);
    courB.addActionListener(this);
    studForB.addActionListener(this);
    studFindB.addActionListener(this);
    private Label makeLabel(String label) {
    Label label1 = new Label(label,Label.RIGHT);
    label1.setFont(new Font("Courier",Font.BOLD,10));
    return label1;
    public void start() {
    appletWidth = 8*4+row1.getSize().width;
    appletHeight = 8*(2+courBackB.getSize().height);
    public void paint(Graphics g) {
    setSize(appletWidth,appletHeight);
    validate();
    public void actionPerformed(ActionEvent e) {
    String s = (String)e.getActionCommand();
    private Button makeButton(String label, Color color, Font font) {
    Button b = new Button(label);
    b.setBackground(color);
    b.setFont(font);
    return b;
    private Panel makePanel(LayoutManager lm, Color c) {
    Panel p = new Panel();
    p.setLayout(lm);
    p.setBackground(c);
    return p;
    private void makeButtons() {
    Font f = new Font("Courier", Font.BOLD, 10);
    Color grey = new Color(255,100,100);
    clearB = makeButton("CLEAR",grey,f);
    studB = makeButton(" STUDENTS ",grey,f);
    studForB = makeButton("->",grey,f);
    studFindB = makeButton("FIND",grey,f);
    courFindB = makeButton("FIND",grey,f);
    studBackB = makeButton("<-",grey,f);
    courB = makeButton(" COURSES ",grey,f);
    courBackB = makeButton("<-",grey,f);
    courForB = makeButton("->",grey,f);
    TextField addressTF = new TextField("ADDRESS", 10);
    static final String initialString = " ";
    String Filler = " ";
    Panel row1, row2, row3, p1;
    int appletWidth, appletHeight;
    Button clearB, studForB, studFindB, courFindB,
    studBackB,courB, courBackB, studB, courForB;
    Color backgroundColor;
    the buttons currently dont do anything. this is stage 1 of 3 for my 3 part assignment. for now i am just supposed to get the format right and show sample text in the textfields.
    the format is supposed to look something like the following (cant copy existing as it is protected)
    <- STUDENTS -> CLEAR <- COURSES ->
    student id FIND course id FIND
    last name_________first name______course name_____
    address________________________________________
    city______province___________p.code______________
    phone__________e-mail_______coordinator___________
    #of courses completed_____ #of students passed______
    student's average grade___ students grade ave grade___
    messages______________________________________
    the ones in caps are buttons and the rest are labels with text fields beside most of the labels.
    i apologize for the extremely long question but i hope this is what you were looking for to give me some help...anything would be greatly appreciated!!
    thanks in advance for anything someone can do for me

    hi,
    may this helps to solve your problem
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class Registry4b extends Applet implements ActionListener {
    TextField sid;
    TextField cid;
    public void init() {
    backgroundColor = new Color(200,255,255);
    setLayout(new GridLayout(2,1)); // 2 rows, one column, first row for search, the second for output
    Panel up=new Panel(new GridLayout(3,1)); // search panel
    Panel down=new Panel(new GridLayout(1,1)); //output panel
    down.add(new Label("Just for the output"));
    Panel p1=makePanel(new GridLayout(1,7),backgroundColor);
    makeButtons();
    p1.add(studBackB);
    p1.add(studB);
    p1.add(studForB);
    p1.add(clearB);
    p1.add(courBackB);
    p1.add(courB);
    p1.add(courForB);
    up.add(p1);
    Panel p2=makePanel(new GridLayout(1,3),backgroundColor);
    p2.add(makeLabel("Student ID"));
    sid=new TextField("");
    p2.add(sid);
    p2.add(studFindB);
    up.add(p2);
    Panel p3=makePanel(new GridLayout(1,3),backgroundColor);
    cid=new TextField("");
    p3.add(makeLabel("Course ID"));
    p3.add(cid);
    p3.add(courFindB);
    up.add(p3);
    add(up);
    add(down);
    private Label makeLabel(String label) {
    Label label1 = new Label(label,Label.RIGHT);
    label1.setFont(new Font("Courier",Font.BOLD,10));
    return label1;
    public void start() {
    //appletWidth = 8*4+120;//row1.getSize().width;
    //appletHeight = 8*(2+courBackB.getSize().height);
    appletWidth=200;
    appletHeight=90;
    public void paint(Graphics g) {
    setSize(appletWidth,appletHeight);
    validate();
    public void actionPerformed(ActionEvent e) {
    String s = (String)e.getActionCommand();
    private Button makeButton(String label, Color color, Font font) {
    Button b = new Button(label);
    b.setBackground(color);
    b.setFont(font);
    return b;
    private Panel makePanel(LayoutManager lm, Color c) {
    Panel p = new Panel();
    p.setLayout(lm);
    p.setBackground(c);
    return p;
    private void makeButtons() {
    Font f = new Font("Courier", Font.BOLD, 10);
    Color grey = new Color(255,100,100);
    clearB = makeButton("CLEAR",grey,f);
    studB = makeButton(" STUDENTS ",grey,f);
    studForB = makeButton("->",grey,f);
    studFindB = makeButton("FIND",grey,f);
    courFindB = makeButton("FIND",grey,f);
    studBackB = makeButton("<-",grey,f);
    courB = makeButton(" COURSES ",grey,f);
    courBackB = makeButton("<-",grey,f);
    courForB = makeButton("->",grey,f);
    TextField addressTF = new TextField("ADDRESS", 10);
    static final String initialString = " ";
    String Filler = " ";
    Panel row1, row2, row3, p1;
    int appletWidth, appletHeight;
    Button clearB, studForB, studFindB, courFindB, studBackB,courB, courBackB, studB, courForB;
    Color backgroundColor;
    }interesting for you is only the init()
    regards

  • On inter-applet communication...

    I have two applets, and I would like one to send a message to the other telling it to update itself. The second applet - the one receiving the request - I've named "statDisplayer" in the <APPLET> tag.
    This is the code I'm using to try to send said request:
    Applet statDisplayer = getAppletContext().getApplet("statDisplayer");
    statDisplayer.displayCharacter(CharacterID);
    When I try to compile it, though, I get a meaningless "cannot resolve symbol error" at the call to the displayCharacter() method. Any thoughts as to what's going wrong?

    Hmm, I seem to be getting the same error. Here's a little more detail, in case it makes a difference...
    Both applets are in the same directory. They're named MUDemo and StatBox, respectively. MUDemo needs to send a call to StatBox asking it to update itself when something changes.
    StatBox has the following method:
    public void displayStats(int CharacterID) {
    Here's the call I'm attempting to make:
    Applet statDisplayer = getAppletContext().getApplet("statDisplayer");
    statDisplayer = (StatBox)statDisplayer;
    statDisplayer.displayStats(CharacterID);
    When I try to compile the MUDemo.java file, I get:
    cannot resolve symbol
    method: displayStats(int)
    location: class java.applet.Applet
    statDisplayer.displayStats(CharacterID);
    ^
    This says to me that it still thinks its a generic applet class, despite the explicit cast. Yes/no? Any thoughts on how to fix it?

  • Non persistent block association across reboot - help needed

    Hi
    Im faily new to Solaris and am currently facing the following problem. In a non-global zone I was able to create a file system by using zonecfg through the global zone. I added the entry in vfstab and was able to mount this properly in the non-global zone. At the time the df -k output in the global zone showed me
    /dev/lofi/1 mounted on /foo. However i did a global boot of the system (autoboot=true) and realized that the block device exported was not persistent. After that I ran the "mountall" command in the non-global zone and got
    checking ufs filesystems
    /dev/rlofi/1: Invalid argument
    Can't open /dev/rlofi/1
    /dev/rlofi/1: CAN'T CHECK FILE SYSTEM.
    /dev/rlofi/1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
    fsckall failed with exit code 1.
    mount: /dev/lofi/1 is not this fstype
    What am i doing wrong here ? I would appreciate any help. Thanks in advance.

    yea i have along time ago and also made a update to xlr8's drive database. cause i fixed the problems with the drive in OS 9.2.2 (AKA no burn support with the built in burning app or iTunes, now have full support for burning with the finder burn and iTunes thanks to a edited PioneerCDR authoring support extension that someone edited for me. found out that the Apple CD/DVD driver extension was at fault for the locking up on wake up with hdd sleep enabled that started when i installed the Pioneer drive. fixed with intech CD/DVD speedtools 6.0).
    When i did the first report on the drive database on xlr8yourmac i reported what problems i was having in OS 9.2.2 and i think i reported that i had no problems in jaguar, and was trying to obtain a driver or something to try to get it to work. but to no avail at first. after i fixed the problems i did a update report
    in jaguar the drive had no problems but no burn support. installed patchburn and the drive worked 100% in jag no problems what so ever. im thinking it has somthing to do with one or all of the extensions with errors but i can be wrong.
    i just wonder where ryan has been on the forums in OWC's site. cause i would like to submit my crash log panic log and the extensions with errors so he could help track down the problems to see if it cant be fixed. but ive tried emailing him but no replay's. and his last reply on the OWC forums was back in desember 2005 a few day's over a year
    i know it isnt the drive cause it worked flawlessly in tiger 10.4.8 on my friends Digital Audio but i know why it worked fine cause it has the proper files for the DA to work cause its a supported system. i would like to try to help to get xpostfacto to work better on the Beige G3 system
    in tiger if it is something to do with xpostfacto

  • Inter Applet Communication Security Issues

    Hello,
    Given that applets, contained on a card, can communicate with each other: Has anyone found any articles relating to any possible security issues this feature may present?
    If you have any ideas on possible security threats, please share. It would be great to bounce some ideas around, no matter how radical, unusual or "done to death."
    Thankyou in advance,
    Joanne : )

    I found a very interesting article regarding this subject written by Michael Montgomery and Ksheerabdhi Krishna, Austin Product Center, Schlumberger.
    http://www.usenix.org/publications/library/proceedings/smartcard99/montgomery.html
    Best regards
    Jonas Nilsson

  • Inter Applet Communication

    Can one applet pass some parameter to another applet which is not on the same webpage?
    Please reply soon.Thanx in advance
    Tarun

    Not directly. If they're on the same site, you can get them both to open connections to the server and communicate via that.

  • Design help needed, again

    I'm developing a database app, which consists of several applets. Some of this applets are only able to show data, and some others are able to both show and modify data.
    Now I need to write a new applet to manage the security of the whole app. This applet will allow the users to log in (with their username and password) and, once the login is validated, it will enable the rest of the applets. If this security applet is ever closed, all the other applets should stop working.
    Any ideas on how to implement this ?
    Thanks !

    You can use the applet context class to deal with
    inter-applet communication (google for that, you
    should find something). But, I would maybe go toward
    a JSP/Servlet based solution for this and let your
    container take care of the security bit, plus it gives
    you a session to keep the login token info in. You
    could still use applets if you need the rich UI, but
    stick them in a JSP and lean on the session and
    request objects to hold your login token data.
    That was completely off the top of my head, so I hope
    a) it's accurate and b) it's helpful
    Good luck
    LeeThanks for your reply Lee.
    I think that the method you sugest is something like the sessions under PHP, which I'm sure will solve my problem.
    The thing is, my project consists of creating some applets that will enable other people to create customized database management apps. They would only need to create a web page and insert the applet that shows this thing, the applet that does that other thing, etc, etc. But in order for all the applets to work, the developer will insert the applet that validates the user login and unlocks the rest of the applets (maybe, for example, providing them with a database connection).
    With this approach, the developer does not need to know how to pogram JSP, PHP, ASP,etc. He/she only needs to insert the applets on a web page and that's it.
    That's why I want to do the job using an applet.

  • Applet to Applet communication in one browser process with 2 windows

    Applet to Applet communication in Same IE process bu in different IE windows
    I have two IE windows
    (1) base window
    (2) child window (created through wondow.open() and hence share the same IE process and same JVM)
    Now I have two applets in one in base window and other is in child window and I want to do applet to applet communication. Since both applets are in different windows so AppletContext will not work and I tried to use custom AppletRegistory class to keep each Applet in static Hashtable. Now here comes the problem, Each applet gets different copy of this static Hashtable. i have tried hard to find the reason why a static varible has multiple copies running in the same JVM. Then my friend told me about something called class loader which is according to him is different for each window. I have tried this with two different iframes but in same window and it works fine and the reason being is that they share the same JVM. But why this fails for different windows althougt they also have same JVM?
    I am using JRE v5 update 7 and IE6 on WIN XP SP2.
    Thanks in advance..

    Try this example :
    Files used :
    1). AppletCom.html
    2). First.java
    3). Second.java
    1).AppletCom.html
    <HTML>
    <BODY bgcolor="#FFFFFF" link="#0000A0" vlink="#000080">
    <LI><H2><I>Inter applet communication Applet</I></H2>
    <applet code=First.class name="theFirst" width=250 height=100></applet>
    <applet code=Second.class width=350 height=100></applet>
    <BR>
    Source First.java Second.java
    <P>
    <HR>
    <i>Last updated 8/5/97 Martin Eggenberger</i>
    <HR>
    </BODY>
    </HTML>
    2). First.java
    import java.awt.*;
    <applet code="First" width="200" height="200">
    </applet>
    public class First extends java.applet.Applet {
    //Variables for UI
    Label lblOutput;
    public void init() {
    //Create the UI
    add(new Label("The First applet."));
    lblOutput = new Label("Click on a button in the Second applet.");
    add(lblOutput);
    public Color getcc()
    return Color.pink;
    public String getnm(int a,int b)
    int cnt=a+b;
    String str;
    str="Sum is :_________"+cnt;
    return str;
    public boolean handleEvent(Event event) {
    if ("One".equals(event.arg)) {
    lblOutput.setText("You clicked: One");
    return true;
    } else if ("Two".equals(event.arg)) {
    lblOutput.setText("You clicked: Two");
    return true;
    } else if ("Three".equals(event.arg)) {
    lblOutput.setText("You clicked: Three");
    return true;
    return super.handleEvent(event); }
    3). Second.java
    import java.awt.*;
    import java.applet.*;
    <applet code="Second.java" width="200" height="200">
    </applet>
    public class Second extends java.applet.Applet {
    //Declare the UI variables
    Button btnOne;
    Button btnTwo;
    Button btnThree;
         Applet f;
    Label lb;
    public void init() {
    //Build the UI
    btnOne = new Button("One");
    add(btnOne);
    btnTwo = new Button("Two");
    add(btnTwo);
    btnThree = new Button("Three");
    add(btnThree);
    lb=new Label("SUNO RE KAHANI TERI MERI SHHHHHHH");
    add(lb);
    setLayout(new FlowLayout());
    // lb.setSize(100,100);
    public boolean handleEvent(Event event) {
    if (event.id == Event.ACTION_EVENT && event.target == btnOne) {
         f = getAppletContext().getApplet(new String("theFirst"));
    First applet1=(First)f;
    // int cnt=applet1.givenum(22,25);
    // String str="Sum is:"+cnt+" Fine";
    String str=applet1.getnm(22,25);
    lb.setText(str);
    Color cl=applet1.getcc();
    setBackground(cl);
    return f.handleEvent(event);
    } else if (event.id == Event.ACTION_EVENT && event.target == btnTwo) {
    f = getAppletContext().getApplet(new String("theFirst"));
    return f.handleEvent(event);
    } else if (event.id == Event.ACTION_EVENT && event.target == btnThree) {
    f = getAppletContext().getApplet(new String("theFirst"));
    return f.handleEvent(event);
    return super.handleEvent(event);
    I had this example, so i am sharing it as it is.. instead of giving you any link for tutorial... hope this helps.
    Regards,
    Hiten

  • Printer help needed from the Apple community

    Hello Apple Community,
    Can you help me to print from a new Mac to an old Canon printer?
    I'm here in Vietnam (first time in Asia) as a teacher. I have the latest model MBP (running Mac OS X 10.8.4). There's an old Canon that I'm trying to print to. I've Google'd the model number but nothing comes up for Mac. There are sites in the Google search that say they have the software. I'm worried they might be malware sites.
    On the back of the printer it says L11121E. But when I connect it (via USB) and open Print & Scan it detects it as a Canon LBP2900.
    I looked here: http://support.apple.com/kb/HT4670 and here: http://support.apple.com/kb/HT4670.
    But neither of those links list the Canon L11121E or LBP2900.
    When I Google'd "L11121E mac driver" this link came up:
    http://support.apple.com/kb/DL899
    Do you think that would work?
    I checked for updates from the App Store (and System Preferences Print & Scan) with the USB cable of the printer plugged in. Nothing came back.
    I'm a teacher trying to print material for my students. Any help at all would be appreciated.
    Confused,
    .Sean

    Thank you, Linc!
    Following the instructions from AlexeyU (thread: https://discussions.apple.com/message/15765876#15765876) worked!
    AlexeyU's instructions:
    "Try this:
    1) Download & Install official drivers for Lion v3.36 – http://support-au.canon.com.au/contents/AU/EN/0100359005.html
    2) Download & Install this package –http://www.uzhva.com/temp/Canon_LBP3000_to_LBP2900_patcher.zip
    3) Reboot
    You probably will need to manually match your printer with LBP 2900 driver from drivers list."

  • Help Needed urgently - MKTCALENDAR button removal from java applet

    Hi Experts ,
    We have a requirement to remove buttons from the markeing calendar/projects applet .
    In Marketing->Search->Marketing Calendar , when we click on search button , result is displayed in the result view . This is a java applet and has a toolbar with buttons like new,save,copy etc,fields with drop down and also the result list below it.
    We have the option to prevent the button functionalities by controlling authorization to SAP objects.But my requirement is to completely hide these buttons from getting displayed in the applet view.
    Can anyone help me regarding how to remove the buttons from the java applet  .
    Appreciate the help a lot.
    Thanks
    Swapna.

    hii,
    checkout my add from, HTH
    [http://forums.sun.com/thread.jspa?threadID=5419921&messageID=10885709#10885709]
    ... kopik

  • Urgent help needed on deployment facts

    Hi
    I had completed a Java Web based application using JApplet, which in turn uses Java Media Framework and Java Communications APIs. So when i deploy this application and let the clients use this application. I need to dump some jar files and properties files into the clients JRE so that all the APIs will work properly. Without any installations. I tried doing this manually by copying these files into client machines So is there a direct method for performing the task. Or i need to add some additional code to my applet so as to find the clients current JRE version and place the required files under using FTP? Can i write a setup routine or something which does all these operations once the client access the applet?
    Help needed in the above issues
    Thanks in advance
    Swaraj

    What you will want to do is look into JNLP and Java WebStart. They allow you to write a setup for your product that makes installation as easy as InstallShield&trade; does for the Windows&trade; platform (ie: it allows customers who cannot tell Java from Perl to install your product).

  • Inter servlet  communication......is it  possible ?

    here i have posted "Inter servlet communication......is it possible ?"
    have u come across this ?
    http://forum.java.sun.com/thread.jspa?threadID=588996
    thank you

    sorry for the cross post. It wont be again. In fact i refered the link if anybody could give some comment. i saw some poster also post questions from diffrent topics of java.
    My english is not good .
    But why you are so tough on me ? you are targetting me in some of my posts. you have been helping learners for a long time . Old archieve /posts prove that. I dont claim my post are expert level. If you feel those are too simple for you plz ignore that.
    thank you

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

Maybe you are looking for

  • The company code 5000 can no longer be initialized

    Hi, In omsy, i need to change the year from 2012 to 2011 but is not able to do so and gives the error MM011 (the company code 5000 can no longer be initialized). I have the materials and PO but GR is not done. Kindly help << Priority normalized >> Re

  • FTP Sender - Message not reaching XI

    Hi, I am using FTP sender adapter to send an XML file to XI. The file is being picked up by XI properly from the Source directory on the FTP server which is running on my local machine but it is not reaching the integration server. SXMB_MONI shows no

  • Sound blaster audigy plat. EX

    i recently bought a sound blaster audigy platinum EX(not the audigy 2 plat. EX)i was just wondering if the sound from this sound card is better then the on board sound of the k8n ne plat. i have a feeling that it is, i just want to make sure. also, h

  • Including jar files in the classpath while compiling

    While I compile, I want my class to be able to find the two jar files that are in the same directory as the class that I'm trying to compile. c:\brandNew\src\myClass.java c:\brandNew\src\lsw-services.jar c:\brandNew\src\jdom.jar

  • How to keep my display from dimming

    I use my imac as a tv, but the display dims after about 5 min of no activity. How can I make it so it never dims?