Frames and applet reloading

Hello
I have a for performance to stop my applet from reloading. I constructed a simple frameset with my applet in one and the view frame. It works fine the first time. I post out of the view to a struts configuration and to a getInputForward() to just get back with the same session but it reloads the applet. Is there a way to stop an applet from reloading if it is in a separate frame? I know I can use ajax, but would like to make this simpler approach work, if possible. tia.

Hello
It does work. I needed to set the input attribute and use the javascript location.reload() to update the page. It is here for some future search, or maybe not if it was so obvious, grin.

Similar Messages

  • Working with frames and applets

    Hi, I am writing an applet that recieves information from a sever. before the applet loads I display a frame that allows the user to select the information that is transfered across the net.
    I block the applet from finishing until the okay button is clicked on the frame. However if I don't add my frame to the applet I can't manipulate the frame, and the frame doesn't recognize any mouse events
    When i do add the frame to the applet, the checkboxes work and the button toggles, but the click doesn't do anything.
    Finally the program works while using the applet viewer but it doesn't work across the net. Any information any one has would be greatly appreciated.

    here is the code of the frame that doesn't work
    import java.awt.*;
    import java.awt.event.*;
    public class channelSelect extends Frame implements ActionListener
    {/*This class alows the user to pick from a number of channels to be transfered
    across an internet connection*/
    private int channels = 8; //the total number of channels
    private Checkbox[] checkbox = new Checkbox[channels]; //an array of checkboxes
    private Button button1 = new Button(); //the button to signify the user has choosen the channels
    private int[] c = new int[channels]; //an array to determine which checkboxes were checked
    private boolean done = false; //a flag to tell the base class if the user is finished
    public channelSelect()
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    public int[] obtainChannels()
    {//returns the array of choosen channels
    return c;
    public int isDone()
    {//returns if the user is finsihed
    if(done)
    return 1;
    else
    return 0;
    private void jbInit() throws Exception
    {//sets the layout for the frame
    this.setLayout(null);
    this.setTitle("Select Channels");
    for(int j = 0; j < channels; j++)
    checkbox[j] = new Checkbox();
    checkbox[0].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[0].setBounds(new Rectangle(64, 55, 198, 20));
    checkbox[0].setLabel("sinwave");
    checkbox[1].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[1].setBounds(new Rectangle(64, 133, 198, 20));
    checkbox[1].setLabel("squarewave");
    checkbox[2].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[2].setBounds(new Rectangle(64, 211, 142, 30));
    checkbox[2].setLabel("coolant temp");
    checkbox[3].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[3].setBounds(new Rectangle(64, 289, 198, 20));
    checkbox[3].setLabel("No signal1");
    checkbox[4].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[4].setBounds(new Rectangle(356, 55, 198, 20));
    checkbox[4].setLabel("No signal2");
    checkbox[5].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[5].setBounds(new Rectangle(356, 133, 198, 20));
    checkbox[5].setLabel("No signal3");
    checkbox[6].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[6].setBounds(new Rectangle(356, 211, 198, 20));
    checkbox[6].setLabel("No signal4");
    checkbox[7].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[7].setBounds(new Rectangle(356, 289, 198, 20));
    checkbox[7].setLabel("No signal5");
    this.setBackground(new java.awt.Color(0, 200, 250));
    button1.setBounds(new Rectangle(235, 477, 98, 30));
    button1.setLabel("OK");
    button1.addActionListener(this);//new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent e)
    button1_actionPerformed(e);
    */ this.add(checkbox[0], null);
    this.add(checkbox[5], null);
    this.add(checkbox[6], null);
    this.add(checkbox[1], null);
    this.add(checkbox[7], null);
    this.add(checkbox[2], null);
    this.add(checkbox[3], null);
    this.add(checkbox[4], null);
    this.add(button1, null);
    this.setSize(610,527);
    this.setVisible(true);
    this.toFront();
    public void actionPerformed(ActionEvent e)
    {//populates the array of choosen channels
    Object source = e.getSource();
    if(source == button1)
    for(int i = 0; i < channels; i++)
    if(checkbox.getState())
    c[i] = 1;
    else
    c[i] = 0;
    done = true;
    and this is where i instantiate it and call some of it's methods.
    /* Setup channel selections */
    channel_select = new channelSelect();
    while(channel_select.isDone() == 0)
    { //wait for the channel selection to occur
    channels = channel_select.obtainChannels();
    channel_select.dispose();
    channel_select = null;
    setChannels();

  • Diferences between frame and applet

    Hello all
    I have a problem with using an applet,
    In my applikation i have a simple frame which shows some rows of a table in a mysql database.
    I thougt i just can use this frame in an applet, but allthough i see the applet in jbuilders appletviewer it does not work in both browsers i tried (ie6, nc4.6) in ie it just shows a grey surface and in netscape it get an security violation : method verifikation error.
    how can i properly establish a JDBC Connection from an applet?
    Now i have tree classes....one to connect to the database, one to model and a GUI

    Hello there
    I got a similar problem about one year ago. You ge a result using application or appletviewer, because in these cases both programs are able to use the hardware of your computer. By opening the applet in a browser it runs in a "sandbox" and isn't able to use hardware any more. Unfortunately I wasn't able to solve this problem, although there is literatue in the web how to do it.
    I went on to use servlets instead and today I'm happy I have chosen this way because the options what can be programmed are greater!
    Althoug I haven't written any link I hope I could help you.
    bye

  • Re: Frames and applets..

    I am new to java and want to know what is the hierarchy of
    putting components such as windows , frames , applets etc on the
    screen?? can I put an applet on a scroll pane or the other way round??
    Is there any thumb rule to design / know which component will contain the other one??
    I am confused with the hierarchy given in the Java HTML DOC in my system.
    Regards
    Ayusman.

    I am confused with the hierarchy given in the Java HTML DOC in my system.It is indeed a bit confusing when you first look at it. At the top level of it all is the
    Window class; it's a top level, independent window as you know it when
    you look at your screen. A Window is just a rectangular area on your screen.
    First there was just AWT (Abstract Windowing Toolkit), but to confuse matters a
    bit further, there's Swing too. As a rule of thumb all Swing thingies inherit from
    their AWT counterparts and prepend a 'J' to their name.
    A Frame (AWT) or JFrame extends a Window/JWindow and implements a top
    level window with a border and a title bar (and possibly a toolbar and a menubar).
    There's a third form of top level windows: the Dialog (AWT) or JDialog (Swing).
    Inside those top level windows (which happen to extend the Container class),
    many other Components or JComponents can be stored like Buttons or
    JButtons etc. etc. etc.
    As another rule of thumb: never mix the AWT components with Swing components.
    When you get more familiar with those two systems you'll understand.
    kind regards,
    Jos

  • Problem: codebase, jar and image reloading problem please help!

    Hi Java Gurus,
    I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
    <applet code="CameraApplet.class"
    archive="doorcam.jar"
         codebase = "webcam/classes"
         width="375" height="475">
    <param name="imagePath" value="http://judge/webcam/images">
    <param name="webCamImage" value="door.jpg">
    <param name="COMPort" value="COM2">
    <param name="frameRate" value="10"> <!-- could not exceed more than 10-->
    <param name="host" value="judge">
    </applet>
    The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
    I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
    If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
    private void refresh(final URL url) {
    Image webCamImage =getImage(url);
    webCamImage.flush(); // flush out the previous image
    webCamImage = getImage(url); // get a new image
    webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
    When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
    The problem is so strange that I could not find any way to solve it.
    It would be a great help to me if somebody provide me some work around to the problem.
    I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
    Thank you all very much in advance.
    best regards,
    Judge

    Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
    I think its the problem between IE browser and Java Plug-in.
    I which SUN would find these incompatibilities and solve these problems.
    I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
    I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
    I have seen so many people in the forums with all sorts of problems because of this.
    Right now I m desperately looking for work around to my problem.
    If somebody would provide me with the solution to my problem it would be a great help to me.
    thank you all so much.
    best regards,
    Judge

  • Applet Reloading

    In my applet I have global variables that change. Is there anyway to reload the applet at anytime so that the state of the global variables reset to their original values?
    Thanks

    why don't you just change the global values inside your applet??
    well, you could refresh a page using Javascript, and applet can talk to javascript.
    here. http://javascript.internet.com/buttons/refresh-button.html

  • Applet- Reload

    Applet->Reload result in closing of applet window... It calls....
    stop()->destory()->init()->start() . Still window is not displayed.
    Have i missed something ....
    Applet that i have created is the simplest of Applet with only print statemetns inside init(), start().......

    Hello Roger,
    thanks for your answers. I was talking about FF3 and the java sun 1.6 that
    came with ubuntu 8.04, and iirc fedora. But also epiphany under ubuntu 8.04
    and fedora with FF3 (current version, already removed it again) have troubles.
    Meanwhile I tried the new OpenJDK version and this one does not have the
    reload-problem. I noticed that combinations of FF2/Solaris FF2/Linux FF2+3/Win
    have no problems at all (all running some 1.6 versions).
    Thanks also for telling me about the 6u10 release, I realy wasn't aware of it. But
    my problem is not to make an applet working for myself. I want to develop an
    applet for others, I want to make it work with any version of java - and what I
    want is not so special, just 2 textareas and a bunch of buttons, reliable operational.
    So I will not try the 6u10 for now because even if it would work it wouldn't
    help me.
    Applets dying because of a page reload is - as I think - a horrible bug and I
    don't understand why such bug reports are a week later still marked as
    "unconfirmed" or "new". But I'm talking about mozilla bugs, so I'm probably
    at the wrong place for complaining about that.
    Another thing is that, for instance, opera on ubuntu 8.04 running the sun java
    1.6 has another kind of problems with reloads, the applet looses the focus
    on reload, one must focus another non-opera window and than focus back to
    the opera window in order to give the input focus to the applet.
    All that is very annoying if you just want to develop a little simple applet for anyone.
    Best,
    Leander
    ps.
    Btw, all browsers like FF2+3/IE6+7/Safari/Opera and the sun java 1.6 work perfectly
    under windows :-/ so problems with three popular browsers running under one of the most
    popular distributions lets me think that there is something wrong with the java support
    under linux.
    pps.
    why is there still no 64bit browser plugin?

  • Multitasking on iPod Touch 4G, running iOS 6.1.2, nearly impossible. Opened,  background apps do not seem to stay in memory and must "reload" every time I switch back to them. Also, intense battery drain (imo).

    Let's say I'm playing Words with Friends, and also Angry Birds. I may want to go back and forth between the two. When I do so, the app that was in the background needs to reload again. There is no quick access or ability to quickly resume where I left off. And the reloading means that the app restarts from its opening screens...so if I was working on a level, I have to start all over again. And quite often, a game like Angry Birds will lag greatly when I first open it...moving almost in slow-motion.
    I don't know if this is typical behavior when playing multiple games, or if I have an issue with my device. I've rebooted and even reset and restored, all to no avail.
    There doesn't appear to be as much of an issue if I'm playing one game but also have the music player open, or Safari, Notes, Reminders, etc. Those will resume just fine, though there may be some lag when opening/re-opening them.
    So I guess the problem seems to lie within 3rd party apps, and not the apps that are part of the iPod/iOS.
    The other problem is battery drain. I do all of my music listening via Bluetooth, so I expect that to have a greater impact than if I were using plugged in headphones, and I have location services turned on. But I have most notifications turned off, all email accounts set to manual and not push, screen brightness turned down and auto brightness turned on, "ask to join networks" turned off, auto-lock is set to 2 minutes but I almost always turn off the screen immediately after setting up my music listening (since I do so at work), volume limit turned on, EQ turned off, sound check turned off,
    With these settings, my battery can drain 20% or more within 10-15 minutes of game play. And these are not what I would consider memory intensive games--just Words and Angry Birds.
    I've installed (and recently uninstalled) a couple of battery meters from the Apple Store as well--freebies. Carat, Battery Doctor, Battery HD, Battery Magic.
    Carat and Battery Doctor seemed to offer the most pertinent and accurate information so the others were uninstalled long ago.
    The Accelerate tab in Battery Doctor show the amount of memory in use, and the amount of available memory. The vast majority of the time, the memory in use is approximately 94%. I will occasionally choose to "accelerate" which supposedly frees up memory, but this "bump" lasts only a brief time and I'm not sure it's a great idea.
    Even with absolutely nothing open or running, my used memory is generally still above 80%.
    Carat, if anyone is familiar with it, shows a J-Score. My J-Score is 17, which means that my performance (according to Carat, anyway) is better than only 17% of the users who have Carat installed. In other words, 83% of people are getting better performance from their devices. It also has "battery hog" and "battery bug" sections. It doesn't detect any hogs or bugs.
    I use my iPod Touch in rather limited ways. A typical day consists of approximately 5 hours of music listening via Bluetooth and 30 minutes to 1 hour of playing the aforementioned games. The occasional note and reminder, perhaps a brief check-in with the weather, and that's about it. And wifi is in use only when at home (there is no hotspot at work). Still, I need to charge it every day. I'd be keen to do more with the iPod if I could count on it to last more than a day.
    I've read up on multiple forums and blogs for tips on prolonging a battery charge, and believe I've taken everything into account, and applied whatever I could. I've even reset the network settings and try to discharge the battery completely once a month (for supposed battery calibration).
    I'm really hoping people can offer some suggestions or comments on whether this is typical behavior or if my battery is going, or even offer some additional tips.
    With iOS 7 on the horizon, I'm hoping the upgrade will offer some resolutions (I've read there is better multitasking), but considering how weakly my device performs at this point, I'm not entirely convinced that an iOS upgrade will actually make any improvements.
    Thanks a lot for reading.

    No, the app does not have to completely restart. It gets shifted in its open state into storage. Similar to how a computer uses the hard disk when it has insufficient memory.
    What complicates things is that sometimes memory does not get returned for reuse when you close an app. Thus yo should periodically double click the Home button and "delete" unnecessary apps from the multitasking dock and power off and then back on the iPod.

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • Since installing iCloud, my iPhone 3GS no longer syncs with my Outlook Calendar and Outlook Contacts.  I don't know what else to try, short of resetting the iPhone and completely reloading as a new device.  Any ideas, anyone?

    Since installing iCloud, my iPhone 3GS no longer syncs with my Outlook2010 Calendar and Outlook2010 Contacts.  I don't know what else to try, short of resetting the iPhone and completely reloading as a new device.  Any ideas, anyone?

    It's good to know.  The Apple instructions for loading iCloud on a PC just seem to have either overlooked or hidden this limit.  The larger problem is that it partially works:  partially and erratically.  So clean-up is great fun.

  • Has anyone experienced this problem: I am editing in FCP 7.0.3 on a Mac 10.6.8 - I have a clip in the browser that is full frame and matched the other clips but when I drop it in the time line it becomes a fully zoomed in version of itself

    has anyone experienced this problem: I am editing in FCP 7.0.3 on a Mac 10.6.8 - I have a clip in the browser that is full frame and fine and it matches the other clips in my bins but when I drop it into the time line it becomes a fully zoomed in version of itself and I can only see a small portion of the image.  What's going on?  I've noticed this has happened in the past randomly with other clips and it's driving me cray cray!  Any help appreciated greatly and thanks in advance for taking the time

    In the FCP Browser, click on the source clip that is showing up sized incorrectly to select it. Once it is selected, type Command + 9 to see the item properties for the clip. Either report those properties here, or take a screen shot of the item properties and post the screen shot here.
    Next, click anywhere in your sequence timeline and then type Command + 0 {zero} to see your sequence settings. Either report those settings or take a screen shot of the sequence settings and post that screen shot here.
    MtD

  • Dealing with dropped frames and out of sync audio

    Hi!
    I'm using Final Cut Studio 3 and I'm trying to record some video from a pretty old MiniDV-camera. The problem is that a have some dropped frames and when I record the whole thing it gets out of sync.
    By default Final Cut aborts the capture (without saving) when it finds dropped frames. That won't work for me. I start recording, it records a couple of minutes and then it just aborts without saving anything.
    I tried to record the entire tape when using the option of not aborting on dropped frames. I recorded the entire video but not it gets more and more out of sync later and later in the video.
    So, do you have any suggestions on how to deal with this? Maybe I can use an external application for this cause I haven't found a way to deal with this in Final cut.
    Best
    Felix

    Hi(Bonjour)!
    Did you shoot in DV or HDV ?
    Did you try to capture HDV with Apple Intermediate Codec 1080i60 (or 50 for europe)?
    Does you downconvert HDV shooted to DV upon capturing from camcorder ?
    DV-NTSC 48 kHz is the way to go with downconverted material.
    Does your DV audio setting is 16 bit on FX1 ? (HDV is a fixed one).
    Michel Boissonneault

  • Uneven color between background text frame and underlying frame fill

    Hi. I'm using InDesign CS3 on Windows XP.
    On my document, the main heading is in a frame with a fill of 'None'. The heading text has a bevel and emboss. The text frame sits on a background A4 frame which is filled with a Pantone spot colour.
    When I print the cover page, the color filling the text frame is slightly different from the background Pantone color, even though the text frame has no color fill.
    When I checked the document before printing in View>Overprint Preview, it appeared to be fine. The PDF also looked fine. In both situations, I could not discern a color difference but it is there in the printed document.
    To provide a color behind the text which matches the fill color of the frame occupying the whole page, what should I do? My gut feel is to select the background frame and the text frame and check the knockout box on the effects panel or something like that.
    I hope I have explained sufficiently clearly the problem I am experiencing.
    Look forward to hearing your suggestions.
    Thanks
    Frank

    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php

  • Bullet problem when creating text frames and tables in InDesign CS5

    Every time I create a new text frame or table in InDesign CS5 and paste information there, the first row in the table or several lines of text come out with bullet points. I'm sure this is a setting or style at some point I created and now am unsure of how to delete. I would like the new text frames and tables to not include bullet points as a default when imported or pasted. Any thoughts? Thanks!

    Defaults for text in the current document are made with no text selected. Turn off bullets and they should stay off (but check the styles, too, you might have accidentally set a bulleted style as the defualt and you should change the default style instead). If this is happening in all files, you need to do it with nothing open to reset the default for all new documents (existing files, unfortunately, need to be fixed one at a time).

  • Copy text frames and paste in place from source file to opened docs

    Hello All,
    I have one source indd file which is having 10 small text frames (40pt square) in both pages (Facing pages, Left and Right) on a master page. In that master page there is no frame except that 10 small text frames and the text frame contains the paragraph style called "Cat_Cont".
    I have opened some files and I want to copy that 10 small text frames from the source file and paste in place into the opened InDesign Docs master pages. I hope while copying that text frames, paragraph style also would copy. Could anyone help for this, please?
    If anything not clear plz let me know.
    Thanks in Advance,
    Thiru

    Use TextFrame.duplicate()

Maybe you are looking for

  • How can I replace an existing report?

    The way our Enterprise server is setup, we have a folder that we publish all reports to. This folder is proteced from view from anyone but admins. In order for our users to "see" a report we create a shortcut of the report in their User folder. This

  • Looking for a specific Lightroom 3 episode

    Can someone help me find a specific Lightroom 3 episode on Adobe TV where Julieanne Kost edit a picture of a dog laying down, I think a golden retriever, and opened it in Photoshop to teach how to select the clear color dog against a dark background.

  • Syncing behaviour/direction of individual content type in iTunes

    Hi fellows. I wish to clarify my understanding of how iTunes sync (overwrite) the individual content type on an iPod. The scenario is: when I sync an iPod with another new library, typically we will be prompted with the warning message, "+this iPod i

  • Business object attachment to workflow

    Hi all, I have a workflow for BO BKPF (accounting document - journal entry).  The book "Practical Workflow for SAP" implies I can attach a reference to an SAP Business Object (page 91). For example, in my workflow for accounting document 1000459516,

  • Call SAP WebService in Excel

    Hello, I want to call a WebService from a SAP-System in Excel. I created this WebService with the WebService Creation Wizard by using a RFC function. The WebService expects two parameters of string and it delivers a table. I'm using the MS SOAP Type