Newbie ques about timeout

Actually is there a way to set the timeout on a JSP page? Say you invoke a SQL query that takes a long time to return.

You can change the timeout of your current session with the 'setMaxInactiveInterval(...)' method in the HttpSession class, like this:
   int secondsTimeOut = 3600; // 1 hour timeout
   session.setMaxInactiveInterval(secondsTimeOut); // set the current session to timeout in 1 hour
...

Similar Messages

  • Newbie asking about a DeploymentException

    Thank you for reading my question.
    First I apologize as a newbie if this is a common question. Despite my still-limited vocabulary, I have tried to search this forum by the keywords in the exceptions I am getting, but it didn't get me anywhere.
    I have J2EE 1.3.1 and jboss-3.2.1_tomcat-4.1.24. I have successfully compiled, deployed, and run most of the tutorials of the O'Reilly workbook for JBoss (http://www.oreilly.com/catalog/entjbeans3/workbooks/) and am now trying to branch out on my own a bit but not getting far.
    I have simplified so much that I am now only trying to run a copy of the oreilly's first tutorial's CabinBean and its client, except I have renamed CabinBean to ThingBean. (With all source and xml files are changed accordingly).
    When I try to run my client program, the line
    Object ref = jndiContext.lookup("ThingHomeRemote");gives a "javax.naming.NameNotFoundException: ThingHomeRemote not bound".
    After looking into this further, I find that when I (re)deploy my jar or when I restart the jboss process (pieces of the console output is included below my message), it complains about something named "test/TestEntity" in a jarfile named ejb-test.jar, neither of which I know anything about. (My bean is named Thing and is in thing.jar along with its ejb-jar.xml and jboss.xml.)
    Does anyone know what this ejb-test.jar is? Is ejb-test.jar supposed to be there? Is it keeping my Thing bean from deploying, or does it sound like my Thing bean has problems of its own?
    Thanks for any insight,
    /Mel
    Here is copied from the jboss console during a restart (I have replaced parts with "<<myjbossdir>>" which makes it somewhat shorter):
    13:35:48,812 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@a624f2ea{ url=file:/<<myjbossdir>>/server/default/deploy/ejb-test.jar, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Error in ejb-jar.xml for Entity Bean test/TestEntity: The ejb-name for a CMP2.x Entity must be a valid Java Identifier
    And a little later it has this snippet:
    Incompletely deployed packages:
    [org.jboss.deployment.DeploymentInfo@a624f2ea { url=file:/<<myjbossdir>>/server/default/deploy/ejb-test.jar }
    deployer: org.jboss.ejb.EJBDeployer@1dfc8a0
    status: Deployment FAILED reason: Error in ejb-jar.xml for Entity Bean test/TestEntity: The ejb-name for a CMP2.x Entity must be a valid Java Identifier
    state: FAILED
    watch: file:/<<myjbossdir>>/server/default/deploy/ejb-test.jar
    lastDeployed: 1057080948546
    lastModified: 1057080948468
    mbeans:
    , org.jboss.deployment.DeploymentInfo@36e9e356 { url=file:/<<myjbossdir>>/server/default/deploy/thing.jar }
    deployer: null
    status: null
    state: INIT_WAITING_DEPLOYER
    watch: file:/<<myjbossdir>>/server/default/deploy/thing.jar
    lastDeployed: 1057080948937
    lastModified: 1057080948921
    mbeans:

    It works, just following the simple first sample provided by O'Reilly. The home lookup lines are Context jndiContext = new InitialContext();  // props from a jndi.properties file
    Object ref = jndiContext.lookup("ThingHomeRemote");
    ThingHomeRemote home = (ThingHomeRemote)PortableRemoteObject.narrow(ref,ThingHomeRemote.class);   and the ejb-jar.xml contains
    <ejb-jar>
    <enterprise-beans>
       <entity>
          <ejb-name>ThingEJB</ejb-name>
          <home>mybeanpackage.ThingHomeRemote</home>
          <remote>mybeanpackage.ThingRemote</remote>
          <ejb-class>mybeanpackage.ThingBean</ejb-class>
    ...I haven't gotten very far yet (obviously), but does JBoss maybe use the classname automatically as the lookup string?

  • Newbie question about Premiere Elements Organizer

    This is a pre-newbie – let’s say “virgin” question. If there is an answer already posted elsewhere, please send me a link.
    I’m about to install Premiere Elements 9 to do some clip editing and animation from still images.  This would be my first attempt to edit clip or do some animation from still images, besides using Windows Media Maker with my HS students. However, I have been a pretty serious photographer for 20+ years with 1,000’s of images which I now work on in PS CS5 Extended and Lightroom 3. I use Adobe Bridge and LR library to catalogue and organize my images. I’d like to continue to use AB / LR Library to organize my new clips and projects. From reading Bill’s posts, it seems I can use Adobe Bridge, copy my original file, resize in Photoshop, and save in a new folder to use for a Premiere project. This would seem to be most intuitive way for me to work. I already have keywords, metadata, actions in PS… etc. But I think Bill is using Premiere Pro, while I’ll be installing Premiere Elements, which comes bundled with Elements Organizer. Do I need to install or use Elements Organizer? What are the advantages/disadvantages or EO?  I guess I’m a little worried about installing the programs and having EO automatically acquire images using presets/defaults that I don’t want to use as well as issues with subfolders, etc. I'm running Windows 7.
    Thanks
    FYI- this is a great animation project
    http://www.thejohnnycashproject.com/#/explore/TopRated

    ziggycat4 wrote:
    I guess I’m a little worried about installing the programs and having EO automatically acquire images using presets/defaults that I don’t want to use as well as issues with subfolders,
    EO doesn't do much with the files themselves, just maintains links to the sources.
    For folders you are best to use the folder view in EO to move them as it doesn't keep track of folder locations when changed in Windows Explorer. From the File options in Bridge I think that is pretty much the same.
    ziggycat4 wrote:
    I would like to get as much input as possible on the advantages/disadvantages of using EO vs say Adobe Bride from others who use Elements Organizer.
    Any insights would be appreciated.
    Can anyone who has used both EO and AB comment on how EO handles missing (hidden) files, syncing issues, computer hanging up or crashing....etc?
    I've only messed around a little with Bridge. But to me it seems lightening fast by comparison to EO. The features Albums and Tags in EO seem much the same as Collections and Keywords in Bridge.
    EO has Face Recognition abilities - getting more sophisticated in each version. I've not seen this feature in Bridge.
    By default EO allows you to open a file in any of:
    Photoshop
    Photoshop Elements
    Premiere Elements
    A single used-defined application (I have mine set to ColorPilot).
    Bridge only seems to link to Photoshop.
    Missing files can be located manually or by allowing EO to search for them.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Que about Simple Query Dump.....

    Hiiii ABAPers....
    Here with i am come again with a que and my que is :
    " While debugging a simple query with where clause i am getting dump...but when i set up a break point after 2 or 3 sentenses it is executed fine without any dump "
    It has shocked me.... and i m thinking about it by my hand on my head that hows it possible.....
    Anyone can help me to put my hand down from the head???
    Warm regards,
    Nirav Parekh....

    HI Nirav
    I think you are placing break point in <b>select & end-select</b>
    In between select and end-select , if you place any break point ,then there commit statement will trigger,
    thats may be the reason ,
      so mostly the Programmers are advised to not place any Break points in between Select & end-select.
    In your case just place the breakpoint after End-select
    or before select
    Regards Rk
    Message was edited by:
            Rk Pasupuleti

  • Newbie ? about variables

    I am completely ignorant concerning CF, for that matter I am generally ignorant as well.  I own a website written in CF that I need to change.  I am changing the URL to the site and need to update links within the site to reflect the changes.  Most of the links contain a variable which would make the job easy but…. I do not know where the variable is set.  I have pasted a sample page of code below:
    <cfinclude template="urlhelp.cfm">
    <cflock scope="application" type="exclusive" timeout="30"><cfset variables.homepage = homepage></cflock>
    <cfparam name="title_tag" default="Lifestyles Direct Tan Through Suits">
    <cfparam name="meta_description" default="Lifestyles Direct Tan Through swimwear allows you to achieve the perfect all over tan.  Our fashionable line of women’s swimwear and men’s swimwear is guaranteed to be tan through, but not see through wet or dry!">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="description" content="<cfoutput>#meta_description#</cfoutput>">
    <title><cfoutput>#title_tag#</cfoutput></title>
    </head>
    <link href="<cfoutput>#homepage#</cfoutput>/solartan.css" rel="stylesheet" type="text/css">
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="<cfoutput>#homepage#</cfoutput>/images/beach_bkg.jpg">
    I see in line 2 the reference to variables.homepage = homepage but do not understand how that sets anything.  I also see where the variable is called in the last line I posted as: background="<cfoutput>#homepage#</cfoutput>/images/beach_bkg.jpg"
    If you need more information I will do my best to provide it.  Thanks in advance for any help!

    ColdFusion is actually one of those tools that it will be well worth your time to get to know much better.  (There are also third-party implementations.)
    Of the various platforms I have used in past lives, there is "a subtle but important cleverness" to what they've done and how they've done it.  There is much more to this system than initially meets the eye, vis-a-vis other more well-known systems like PHP.  It will be worth your time to get to know it better.
    According to the online documentation such as http://livedocs.adobe.com/coldfusion/8/htmldocs/, in the section ColdFusion Developer's Guide / Using ColdFusion Variables / Using Periods in Variable References, the "Variables.variable" syntax is a reference (in this case) to what ColdFusion calls a scope.  (This particular scope-name is actually mentioned on that page.)
    Two sections down, in ColdFusion Developer's Guide / Using ColdFusion Variables / About Scopes, we find a complete list of these "scopes" including the "Variables." scope.
    The particular statement that you refer-to looks like a "do-nothing" because this scope is actually implied:  the statement appears to be assigning the variable to itself.  Nevertheless, ColdFusion has been around for a while now and it has evolved quite a bit during that time.  Useful things have been added to the system in each of its incarnations.  You might be looking at older code wherein such methods were deemed to be necessary.  Or it could be a bug.  Who knows.

  • Que about Maintainance of screen no....

    Hi.... sirs and dears...
    I would like to ask one more question about maintainance screen and my que is
    as follows :
    How can any one come to know that how many screen will be required by any table maintainace ...  i.e one screen or two screen...
    Waiting for ur fast and explainable reply as always....
    Warm regards,
    Nirav Parekh

    Dear Nirav,
    When you run the table maintainence :
    1) In two step, you would get a pop-up window when you click on a row of the table you mean to change. This helps keep things simple.
    2) Otherwise, you would have to say , in a table of 1000 rows , edit somewhere in tht complex matrix .
    If you dont want to go through filling in a pop-up window for every row , u may choose one step.
    You can always revert back to any of these options , so go ahead and try any one of them.
    Now , my rewards please
    Regards,
    Shweta

  • Newbie Questions About Installing Windows with Boot Camp

    The only reason I want to use Windows is to be able to download games from the internet that are not made for Mac only for PC and I have a few questions:
    1. Doing all this installation will anything made for PC work?
    2. I only have Windows XP will that work? And then do all the SP updates after it's installed?
    3. If I have to use Windows XP SP2 is this one a good one to buy?
    http://www.cdsfu.com/index.php?categoryID=87
    4. After everything is installed do I have to use an anti-virus?
    I want to thank you for your help as you can see I really am a newbie.
    Karen

    Hi Karen and welcome to Discussions,
    The only reason I want to use Windows is to be able to download games from the internet that are not made for Mac only for PC and I have a few questions:
    1. Doing all this installation will anything made for PC work?
    Nearly anything. There are some Windows programs using hardware dongles that don't run.
    2. I only have Windows XP will that work? And then do all the SP updates after it's installed?
    You need a Windows XP CD with at least Service Pack 2 (SP2) incorporated.
    3. If I have to use Windows XP SP2 is this one a good one to buy?
    http://www.cdsfu.com/index.php?categoryID=87
    another user round here had already asked about that website.
    Three things about this offer are, at least to me, very suspicious:
    "Microsoft Windows XP Professional Edition With SP2, Full Version on CDR"
    Microsoft never has used CD-R disc (CD-Recordable) for Windows
    "software that does NOT include any COA label or a sticker from the manufacturer"
    There always has to be a sticker, that one puts on the computer on which the Windows license is installed and a COA label as well.
    "VOLUME LICENSE INCLUDED"
    A volume license, from my understanding, was only sold to companys, who install Windows on a larger scale (hundreds of computers) and for that purpose are given only one license-key for all installations.
    Usually this is known as a'corporate license'.
    All in all, I would personally stay away from this offer. It simply doesn't sound legal to me.
    4. After everything is installed do I have to use an anti-virus?
    When running Windows a decent Anti-Virus software is a must.
    I want to thank you for your help as you can see I really am a newbie.
    You're welcome anytime. Hope it helps.
    Karen
    Regards
    Stefan

  • Newbie question about neo2 plat...

    Hi, I bought a k8n neo2 platinum board and ive just installed winxp. While I was installing winxp it froze quite a few times, so I had to reset. Since ive installed winxp it’s been freezing randomly and takes a while to boot up occasionally. I haven’t reset bios and ive not updated it either. I don’t know to much about bios so I don’t want to mess it up. All the bios settings are set to optimized default. Also im still yet to install winxp sp1a. Windows update wont install nor will directx. Apart from that everything is pretty much tip top. Do I have to change some bios settings or update the bios or something? Im a kinda newbie and this is the first pc ive built. specs are:
    msi k8n neo2 platinum
    athlon 64 3200+ winchester s939 + Aerocool HT-101jr
    standard 512 (2x256) ddr400 pc3200 cl2.5 or 3 (duno which)
    120gb maxtor + 17gb maxtor
    sapphire radeon 9800se
    500w psu
    Help would be much appreciated 

    [reply to first post]
    im not using any raid or sata, just standard ata ide. ive not installed the nvidia raid drivers off the enclosed floppy cause i didnt think i'd need to. how to i know if its set to ide?. it says on the side of the psu: -12v (0.8A), +12v (17A). if i set the bios to safe defaults, wont ii loose performance? i want the best stable performance without overclocking. im not a total dummie for bios, i just dont know the advanced stuff i suppose. would it be a bad idea to install the latest version of bios?
    [reply to 2nd post]
    what more info do i need on the psu and ram, i bought the ram off a friend as oem. if theres a way i can find out timings etc just tell me how to do it.

  • Newbie question about entity and view objects

    Hi everyone,
    My first ADF application in JDeveloper is off to a difficult start. Having come from a forms background, I know that it is necessary avoid using post-query type lookups in order to have full filtering using F11/Ctrl+F11. This means creating an CRUDable view and getting as much of the lookup data as possible into the view without losing the ability to modify the data. In JDeveloper, I do not know how to build my data model to support that. My thought was to start with a robust updateable view as my main CRUD EO and then create a VO on top of that with additional EOs or VOs. But, I have found that I cannot add VOs to another VO. However, if I link the VOs then I have a master-detail which will not work for me.
    For example, I have two joins to CSI_INST_EXTEND_ATTRIB_V shown in the queries below and need to have that show in the table displaying the CRUD VO’s data. It seemed that the best way to do this is to create a CSI_INST_EXTEND_ATTRIB_V entity object and view object. The view object would have two parameters, P_INSTANCE_ID and P_ATTRIBUTE name. Both the building and the unit are needed on the same record, and this is not a master-detail even though it might look that way. (A master-detail data control will not work for me because I need all this data to appear on the same line in the table.) So, I need help figuring out the best way to link these to the main (CRUD) view; I want as much of this data as possible to be filterable.
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'BUILDING NAME'
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'UNIT NAME'
    Ultimately, I need to display a ton of data in each record displayed in the UI table, so a ton of joins will be needed. And, I need to be able to add records using the UI table also.
    James

    Hi Alejandro,
    Sorry if I caused confusion with my first post. What I had in mind assumed that I could have a single CSI_INST_EXTEND_ATTRIB_V EO with a BuildingVO and UnitVO on top of it. So, I wrote the queries individually to show how I would invoke each view. When I realized that confused the issue, I rewrote the query to explain things better.
    Now having seen your 2 queries. You need to create 2 EO. One for each table. Then create an association between the 2 aeO (this will be the join you are talking about). Then, you need to create a VO based on one of the EO and after you can modify and add the second EO (in here you select the join type).
    After your done with this, youll have 1 VO that supports CRUD in both tables.
    There were three tables in the query: CIEAV_BUILDING, CIEAV_UNIT, and T -- the main CRUD table. When you say that I should create two EOs, do you mean that they are to be for CIEAV_BUILDING and CIEAV_UNIT? Or, CIEAV and T? Assuming CIEAV and T, that sounds like it would allow me to show my building or unit on the record but not both.
    By the way, everything is a reference except for the main CRUD table.
    Look forward to hearing from you. Thanks for your help (and patience).

  • Newbie question about setting up iTunes to sync across multiple computers

    Hi,
    Right now I am using iTunes primarily for listening to streaming radio. However in about 2-3 weeks after I move, I am considering importing all my CDs into iTunes.
    So my question is this. What can I do before I start that will make my life easier for syncing my iTunes across multiple computers.
    I don't expect the computers to connect to each via internet but I do have a 4 GB flash disk and 230 GB firewire drive that could be used. And since one of the computers is MacBook Pro, I could use it in target mode I think.
    Thanks.

    Authorization only applies to computers. When you update a device any protected content on the device for which the library is not authorised will be removed. Otherwise no attempt is made to remove content that was added by a now deauthorised library.
    There is a separate scheme permitting up to 10 devices (computers, iPhones, iPad or iPod touches) to be registered for automatic downloads of your purchases with a different mechanism for deregistering devices.
    Once you have a file on your computer you can physically copy it to any other computer in the same way that you would copy any other file like a Word document, put it on a disk, email it if not too large, burn it to DVD, stick it on an external hard drive or move it over a network. You can use Get Info. To tell you where it is now and you can drop it into the library at the other end.
    The user tip shows how to backup the whole library and then update that backup efficiently. Such a backup to a portable drive also provides a possible tool for transporting any content to another computer.
    tt2

  • Please, help a newbie:  Question about animating expanding containers

    Hi All,
    Short Version of my Question:
    I'm making a media player that needs to have an animation for panels sliding up and down and left and right, and the method I've been using to do this performs far slower than the speed I believe is possible, and required. What is a fast way to make a high performance animation for such an application?
    Details:
    So far, to do the animation, I've been using JSplitPanes and changing the position of the divider in a loop and calling paintImmediately or paintDirtyRegion like so:
    public void animateDividerLocation( JSplitPane j, int to, int direction) {
    for(int i=j.getDividerLocation(); i>=to; i-=JUMP_SIZE) {
    j.setDividerLocation(i);
    j.validate();
    j.paintImmediately(0, 0, j.getWidth(), j.getHeight());
    The validate and paintImmediately calls have been necessary to see any changes while the loop is going. I.e., if those calls are left out, the components appear to just skip right to where they were supposed to animate to, without having been animated at all.
    The animation requirement is pretty simple. Basically, the application looks like it has 3 panels. One on the right, one on the left, and a toolbar at the bottom. The animation just needs to make the panels expand and contract.
    Currenly, the animation only gets about, say, 4 frames a second on the 800 MHz Transmeta Crusoe processor, 114 MB Ram, Windows 2000 machine I must use (to approximate the performance of the processor I'll be using, which will run embedded Linux), even though I've taken most of the visible components out of the JPanels during the animation. I don't think this has to do with RAM reaching capacity, as the harddrive light does not light up often. Even if this were the case, the animation goes also goes slow (about 13 frames a second) on my 3 GHz P4 Windows XP if I keeps some JButtons, images etc., inside the JPanels. I get about 50 frames/sec on my 3 GHz P4, if I take most of the JButtons out, as I do for the 800 MHz processor. This is sufficient to animate the panels 400 pixels across the screen at 20 pixels per jump, but it isn't fast or smooth enough to animate across 400 pixels moving at 4 pixel jumps. I know 50 frames/sec is generally considered fast, but in this case, there is hardly anything changing on the screen (hardly any dirty pixels per new frame) and so I'd expect there to be some way to make the animation go much faster and smoother, since I've seen games and other application do much more much faster and much smoother.
    I'm hoping someone can suggest a different, faster way to do the animation I require. Perhaps using the JSplitPane trick is not a good idea in terms of performance. Perhaps there are some tricks I can apply to my JSplitPane trick?
    I haven't been using any fancy tricks - no double buffering, volatile images, canvas or other animation speed techniques. I haven't ever used any of those things as I'm fairly new to Swing and the 2D API. Actually I've read somewhere that Swing does double buffering without being told to, if I understood what I read. Is doing double buffering explicitly still required? And, if I do need to use double buffering or canvas or volatile images or anything else, I'm not sure how I would apply those techiniques to my problem, since I'm not animating a static image around the screen, but rather a set of containers (JSplitPanes and JPanels, mostly) and components (mostly JButtons) that often get re-adjusted or expanded as they are being animated. Do I need to get the Graphics object of the top container (would that contain the graphics objects for all the contained components?) and then double buffer, volatile image it, do the animation on a canvas, or something like that? Or what?
    Thanks you SO much for any help!
    Cortar
    Related Issues(?) (Secondary concerns):
    Although there are only three main panels, the actual number of GUI components I'm using, during the time of animation, is about 20 JPanels/JSplitPanes and 10 JButtons. Among the JPanels and the JSplitPanes, only a few JPanels are set to visible. I, for one, don't think this higher number of components is what is slowing me down, as I've tried taking out some components on my 3GHz machine and it didn't seem to affect performance much, if any. Am I wrong? Will minimizing components be among the necessary steps towards better performance?
    Anyhow, the total number of JContainers that the application creates (mostly JPanels) is perhaps less than 100, and the total number of JComponents created (mostly JButtons and ImageIcons) is less than 200. The application somehow manages to use up 50 MBs RAM. Why? Without looking at the code, can anyone offer a FAQ type of answer to this?

    You can comment out the lines that add buttons to the panels to see the behavior with empty panels.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    public class DancingPanels
        static GridBagLayout gridbag = new GridBagLayout();
        static Timer timer;
        static int delay = 40;
        static int weightInc = 50;
        static boolean goLeft = false;
        public static void main(String[] args)
            final GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.fill = gbc.HORIZONTAL;
            final JPanel leftPanel = new JPanel(gridbag);
            leftPanel.setBackground(Color.blue);
            gbc.insets = new Insets(0,30,0,30);
            leftPanel.add(new JButton("1"), gbc);
            leftPanel.add(new JButton("2"), gbc);
            final JPanel rightPanel = new JPanel(gridbag);
            rightPanel.setBackground(Color.yellow);
            gbc.insets = new Insets(30,50,30,50);
            gbc.gridwidth = gbc.REMAINDER;
            rightPanel.add(new JButton("3"), gbc);
            rightPanel.add(new JButton("4"), gbc);
            final JPanel panel = new JPanel(gridbag);
            gbc.fill = gbc.BOTH;
            gbc.insets = new Insets(0,0,0,0);
            gbc.gridwidth = gbc.RELATIVE;
            panel.add(leftPanel, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            panel.add(rightPanel, gbc);
            timer = new Timer(delay, new ActionListener()
                    gbc.fill = gbc.BOTH;
                    gbc.gridwidth = 1;
                public void actionPerformed(ActionEvent e)
                    double[] w = cycleWeights();
                    gbc.weightx = w[0];
                    gridbag.setConstraints(leftPanel, gbc);
                    gbc.weightx = w[1];
                    gridbag.setConstraints(rightPanel, gbc);
                    panel.revalidate();
                    panel.repaint();
            JFrame f = new JFrame("Dancing Panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel);
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
            timer.start();
        private static double[] cycleWeights()
            if(goLeft)
                weightInc--;
            else
                weightInc++;
            if(weightInc > 100)
                weightInc = 100;
                goLeft = true;
            if(weightInc < 0)
                weightInc = 0;
                goLeft = false;
            double wLeft = weightInc/ 100.0;
            double wRight = (100 - weightInc)/100.0;
            return new double[]{wLeft, wRight};
    }

  • Flash newbie questions about slow loading site

    Hi all. I am new to Flash and web-site building in general and I have been learning while doing. Its fun, but frustrating. I really need some help, hope someone out there with Flash experience can give me some advice.
    My problem is this: I built a Flash website, but it is painfully slow to load up (3-5 minutes via cable modem) when I visit the site (via Firefox, etc). Once it does load up, everything is fine with navigation. I'm having a hard time figuring out why its taking so long to load up on the web because, basically, I don't know how to trouble shoot. Hope you guys can help!
    Details: the site is just a portfolio site with pictures and a few motion-things, no complicated animations. The swf file is about 9MB. I do have a flash preloader, but it doesn't show up until after the 3-5 minute "load-up" time. When I do the testing via Flash, its Ok and doesn't show the lag. But once I upload the website files and try to visit my website, the load time problem occurs.
    My thoughts:
    - do I have to purge my Flash file/library of unused images before creating my swf file?
    - Is there a problem with my html code in my index file?
    - because it is a portfolio site, I've got about 90 images on it, each image about 300-400K.  Is this too big, or about right?
    Please help! Sorry for the long email, just desperate for help. Thanks in advance for any advise!!!! Just in case, here is the html code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Acme Company</title>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body {
    background-color: #000000;
    -->
    </style>
    <link href="favicon.ico" rel="icon" />
    </head>
    <center>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','heigh t','600','title','Acme Company','vspace','100','src','development files/company site_AS2_2008 OCT_final','loop','false','quality','high','plugin spage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgco lor','#000000','scale','exactfit','movie','develop ment files/company site_AS2_2008 OCT_final' ); //end AC code
    </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600" vspace="100" title="Acme Company">
    <param name="movie" value="development files/comapny site_AS2_2008 OCT_final.swf" />
    <param name="quality" value="high" /><param name="BGCOLOR" value="#000000" /><param name="LOOP" value="false" /><param name="SCALE" value="exactfit" />
    <embed src="development files/company site_AS2_2008 OCT_final.swf" width="800" height="600" vspace="100" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#000000" scale="exactfit"></embed>
    </object></noscript>

    Yeah I'm with Ned on this one. Dynamically loading your images is the way to go. The fact that you are new to Flash, try this tutorial (http://www.entheosweb.com/Flash/loading_external_images.asp). As you move along in learning Flash, look for tutorials on actionscript arrays and loading images dynamically. Arrays allow you to call each images from a folder outside your fla. That way your site moves right along without much loading time.
    Hope I was of help,
    -Sly

  • Newbie Question about FM 8 and Acrobat Pro 9

    Hello:
    I have some dcouments that I've written in FM v8.0p277. I print them to PDF so that I can have a copy to include on a CD and I also print some hard copies.
    My newbie question is whether there is a way to create a  PDF for hard copy where I mainitain the colors in photos and figures but that the text that is hyperlinked doesn't appear as blue. I want to keep the links live within the soft copy. Is there something I can change within Frame or with Acrobat?
    TIA,
    Kimberly

    Kimberly,
    How comes the text is blue in the first place? I guess the cross-reference formats use some character format which makes them blue? There are many options:
    Temporarily change the color definition for the color used in the cross-reference format to black.
    Temporarily change the character format to not use that color.
    Temporarily change the cross-reference definition to not used that character format.
    Whichever method you choose, I would create a separate document with the changed format setting and import those format into your book, create the PDF and then import the same format from the official template.
    - Michael

  • Newbie question about livecycle data services es

    Hi all.
    i've downloaded the LiveCycle ES2 VMware virtual appliance, setup it up on a esxi server, workspace, content space, all are up and running, but here comes my question, how do i install livecycle data services in there?how do i set it up to start working with the rest?
    i've read the documentation on how to install, but i'm a bit confused.
    can anyone give me any pointers about this?
    help would be appreciated
    thanks in advance

    1) In Workbench ES2 create a process to create a new user. If you need to create a group there is also a service to create group. Create a short-lived process using the Avoka service > Create User operation. The Create User operation has the inputs depicted below.
    2) Create a process variable called 'newUserXml' of type 'xml' and declare the variable as input. Ideally, create a schema for the xml.
    3) The Create User operation has a single output, a string containing the user ID. Create a process variable called 'userID' of type 'string' and declare the variable as output.
    3) Save, check-in, and deploy the process.
    4) To test the process, invoke the process from the Workbench. For the input variable, plug data into an xml structure such as this...
    <NewUser>
    <Login/>
    <Password/>
    <CommonName/>
    <CanonicalName/>
    <Description/>
    <Email/>
    <Initials/>
    <OrgName/>
    <Address/>
    <Telephone/>
    </NewUser>
    5) If the test succeeds, you are ready to create the Flex application. If not, figure out why.
    6) Build a Flex app. Once you deployed the process, the remoting endpoint is automatically created and can be accessed by Flex. Here is a stub.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initChannelSet()">
    <mx:Script>
    <![CDATA[
    import mx.messaging.channels.AMFChannel;
    import mx.messaging.ChannelSet;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    private function initChannelSet():void {
    var cs:ChannelSet= new ChannelSet();
    cs.addChannel(new AMFChannel("my-amf","http://localhost:8080/remoting/messagebroker/amf"));
    ro.channelSet = cs;
    private function submitRequest():void {
    var newUser:XML = new XML(getXmlData());
    ro.setCredentials("administrator","password");
    ro.invoke({newUserXml:newUser});
    private function remotingResultHandler(event:ResultEvent):void {
    var userID:String = event.result.userID;
    private function remotingFaultHandler(event:FaultEvent):void {
    Alert.show(event.fault.faultDetail.toString());
    private function getXmlData():String {
    var xmlStr:String = "<NewUser>"
      + "<Login>" + login.text + "</Login>"
      + "<Password>" + password.text + "</Password>"
      + "<CommonName>" + commonName.text + "</CommonName>"
      + "</NewUser>>";
      return (xmlStr);
    ]]>
    </mx:Script>
    <mx:RemoteObject id="ro" destination="MyApplication/processes/CreateNewUser"
       result="remotingResultHandler(event)" fault="remotingFaultHandler(event)"/>
    <mx:VBox>
       UI goes here...
       <mx:Button label="Submit" click="submitRequest()"/>
    </mx:VBox>
    </mx:Application>
    Steve

  • New to Oracle - Ques. about globals.jsa

    Hi,
    I'm trying to put together a simple web application (JSPs only) to run under Oracle 9i. For this application, I need to maintain a persistent variable among all users and sessions (we would set the variable initially, once, via our app, and the variable would be available to all of our JSPs).
    I guess with other containers, I would use ServletContext, but I understand this is not supported in Oracle, and I may need to use globals.jsa instead.
    This is a simple requirement I think, and I think I actually have it working, but just want to check if I'm doing things correctly.
    What I have so far is a globals.jsa in my apps home directory:
    <%-----------------------------------------------------------
    Copyright © 1999, Oracle Corporation. All rights reserved.
    ------------------------------------------------------------%>
    <event:application_OnStart>
         <jsp:useBean id="myvar" class="oracle.jsp.jml.JmlString" scope = "application" />
    </event:application_OnStart>
    <event:application_OnEnd>
         <jsp:useBean id="myvar" class="oracle.jsp.jml.JmlString" scope = "application" />
    </event:application_OnEnd>
    <event:session_OnStart>
         <%-- Acquire beans --%>
    </event:session_OnStart>
    <event:session_OnEnd>
         <%-- Acquire beans --%>
    </event:session_OnEnd>
    And, in my JSPs, I add:
    <jsp:useBean id="myvar" class="oracle.jsp.jml.JmlString" scope = "application" />
    Then, I access the 'global' variable:
    To retrieve: String s = myvar.getValue();
    or
    To update: myvar.setValue("whatever");
    Like I said, this seems to be working, but I'm just checking. I'm kind of unclear about what I have in the globals.jsa itself. Is what I have above correct?
    Thanks,
    Jim

    Jim, I am not sure if I have ever used globals.jsa or not. However, if you got it working, then it is working. Please take a look at the documentation "chapter 9, Oracle JSP in Apache JServ" in
    Oracle9i Support for JavaServer Pages Reference
    Release 2 (9.2)
    Part Number A96657-01
    Current url is http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96657/apjsvsup.htm#1015160
    Any particular reason that you are trying to use globals.jsa as of now?! Please note the j2ee aspect in the Oracle java product has been moved forward enormously. For a minor example, globals.jsa is not longer supported in later releases. It was only a mechanism for implementing the JSP specification in a servlet 2.0 environment as Web applications and servlet contexts are not fully defined in the servlet 2.0 specification. Since we have passed year 2002, there is no reason to support globals.jsa.
    Please have fun trying oc4j 10.1.2 production or oc4j 10.1.3 developer preview.

Maybe you are looking for