Confusion about object naming

i have 3 jsp files, b1.jsp, b2.jsp, b3.jsp which are similar files (all with similar contents, except that b1.jsp has a form while the other 2 don't), all using the same class (Bean2.java), with id="bea". when b1.jsp is run and i refresh the page, a certain attribute of the bea object is changed (i think due to the form) such that the result displayed is different.
i believe it has to do with my form. but why is it that when i run b2.jsp and b3.jsp, that same attribute is also changed? is it cos i give the same name to the object of Bean2 class?
hope u all know what i sam saying.

hope to make myself clearer. b1.jsp is changed cos it has the form. but i din't know y b2.jsp n b3.jsp also has that particular attr changed

Similar Messages

  • Confused about objects in ArrayLists

    Alright, this is what I am trying to do:
    1.I collect the first name, last name, number, points, rebounds, assists, and fouls all in the stats object.
    Here is my main code:
        public static void main(String[] args) {
            String input;
            String input1;
            String firstName;
            String lastName;
            int gameNumber = 0;
            int points = 0;
            int rebounds = 0;
            int fouls = 0;
            int assists = 0;
            int i = 0;
            ArrayList<Stats> player = new ArrayList<Stats>();
            do{
                Stats stats = new Stats();
                Scanner keyboard = new Scanner(System.in);
                System.out.println("Do you want to enter data or quit(E-enter, Q-quit)?");
                input1 = keyboard.nextLine();
                if (input1.equalsIgnoreCase("E")){
                    System.out.println("What is player's first name? ");
                    firstName = keyboard.nextLine();
                    stats.setFirstName(firstName);
                    System.out.println("What is player's last name? ");
                    lastName = keyboard.nextLine();
                    stats.setLastName(lastName);
                    System.out.println("What is player's game number? ");
                    gameNumber = keyboard.nextInt();
                    stats.setGameNumber(gameNumber);
                    System.out.println("How many points were scored? ");
                    points = keyboard.nextInt();
                    stats.setPoints(points);
                    System.out.println("How many rebounds? ");
                    rebounds = keyboard.nextInt();
                    stats.setRebounds(rebounds);
                    System.out.println("How many fouls? ");
                    fouls = keyboard.nextInt();
                    stats.setFouls(fouls);
                    System.out.println("How many assists? ");
                    assists = keyboard.nextInt();
                    stats.setAssists(assists);
                    player.add(stats);
                System.out.println(stats);
                System.out.println("Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?");
                input = keyboard.nextLine();
                System.out.println(input);
            } while (!input.equalsIgnoreCase("Q"));
    }I also have a Stats.java code that gets/sets each points rebounds...etc.
    And thats all fine.... but now I want to put stats in an ArrayList, and be able to access each added stats by the user typing a last name.
    AKA:
    Input: Thompson
    Output: points, rebounds, assists, fouls
    So am I on the right road by just adding stats into player every loop, and how do I access it with just a last name?
    If u do not understand just ask and Ill explain better.
    Thanks guys

    Ight thanks, I got that to work but now I have another question....
    Here is my code:
      public static void main(String[] args) {
            String input;
            String input1;
            String firstName;
            String lastName;
            int gameNumber = 0;
            int points = 0;
            int rebounds = 0;
            int fouls = 0;
            int assists = 0;
            ArrayList s1 = new ArrayList<Stats>();
            do{
                Stats stats = new Stats();
                Scanner keyboard = new Scanner(System.in);
                System.out.println("Do you want to enter data or quit(E-enter, Q-quit)?");
                input1 = keyboard.nextLine();
                if (input1.equalsIgnoreCase("E")){
                System.out.println("What is player's first name? ");
                firstName = keyboard.nextLine();
                stats.setFirstName(firstName);
                s1.add(firstName);
                System.out.println("What is player's last name? ");
                lastName = keyboard.nextLine();
                stats.setLastName(lastName);
                s1.add(lastName);
                System.out.println("What is player's game number? ");
                gameNumber = keyboard.nextInt();
                stats.setGameNumber(gameNumber);
                s1.add(gameNumber);
                System.out.println("How many points were scored? ");
                points = keyboard.nextInt();
                stats.setPoints(points);
                s1.add(points);
                System.out.println("How many rebounds? ");
                rebounds = keyboard.nextInt();
                stats.setRebounds(rebounds);
                s1.add(rebounds);
                System.out.println("How many fouls? ");
                fouls = keyboard.nextInt();
                stats.setFouls(fouls);
                s1.add(fouls);
                System.out.println("How many assists? ");
                assists = keyboard.nextInt();
                stats.setAssists(assists);
                s1.add(assists);
                System.out.println("Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?");
                input = keyboard.nextLine();
                System.out.println(input);
                /*if (input.equalsIgnoreCase("I")){
                    System.out.println("Enter player's last name: ");
                    String lastNameInfo = keyboard.nextLine();
                    for (int i=1; i<s1.size(); i=i+7){
                        if (lastNameInfo.equalsIgnoreCase((String)s1.get(i))) {
                            System.out.println((String)s1.get(i-1) + (String)s1.get(i) + " had " +
                                    (String)s1.get(i+2) + " points, " + (String)s1.get(i+3) +
                                    " rebound, " + (String)s1.get(i+4) + "fouls, and " +
                                    (String)s1.get(i+5) + "assists.");
                        } else;
                        System.out.println("That player is not on the roster.");
            } while (input.equalsIgnoreCase("E"));
    }And here is my output:
    init:
    deps-jar:
    compile:
    run:
    Do you want to enter data or quit(E-enter, Q-quit)?
    e
    What is player's first name?
    Jon
    What is player's last name?
    Doe
    What is player's game number?
    1
    How many points were scored?
    1
    How many rebounds?
    1
    How many fouls?
    1
    How many assists?
    1
    Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?
    BUILD SUCCESSFUL (total time: 13 seconds)Why does it not let the user put an answer in for the last question ("Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?")
    Thanks

  • Question about Best Practices - Redwood Landscape/Object Naming Conventions

    Having reviewed documentation and posts, I find that there is not that much information available in regards to best practices for the Redwood Scheduler in a SAP environment. We are running the free version.
    1) The job scheduling for SAP reference book (SAP Press) recommends multiple Redwood installations and using export/import to move jobs and other redwood objects from say DEV->QAS->PROD. Presentations from the help.sap.com Web Site show the Redwood Scheduler linked to Solution Manager and handling job submissions for DEV-QAS-PROD. Point and Shoot (just be careful where you aim!) functionality is described as an advantage for the product. There is a SAP note (#895253) on making Redwood highly available. I am open to comments inputs and suggestions on this issue based on SAP client experiences.
    2) Related to 1), I have not seen much documentation on Redwood object naming conventions. I am interested in hearing how SAP clients have dealt with Redwood object naming (i.e. applications, job streams, scripts, events, locks). To date, I have seen in a presentation where customer objects are named starting with Z_. I like to include the object type in the name (e.g. EVT - Event, CHN - Job Chain, SCR - Script, LCK - Lock) keeping in mind the character length limitation of 30 characters. I also have an associated issue with Event naming given that we have 4 environments (DEV, QA, Staging, PROD). Assuming that we are not about to have one installation per environment, then we need to include the environment in the event name. The downside here is that we lose transportability for the job stream. We need to modify the job chain to wait for a different event name when running in a different environment. Comments?

    Hi Paul,
    As suggested in book u2018job scheduling for SAP from SAPu2019 press it is better to have multiple instances of Cronacle version (at least 2 u2013 one for development & quality and other separate one for production. This will have no confusion).
    Regarding transporting / replicating of the object definitions - it is really easy to import and export the objects like Events, Job Chain, Script, Locks etc. Also it is very easy and less time consuming to create a fresh in each system. Only complicated job chains creation can be time consuming.
    In normal cases the testing for background jobs mostly happens only in SAP quality instance and then the final scheduling in production. So it is very much possible to just export the verified script / job chain form Cronacle quality instance and import the same in Cronacle production instance (use of Cronacle shell is really recommended for fast processing)
    Regarding OSS note 895253 u2013 yes it is highly recommended to keep your central repository, processing server and licencing information on highly available clustered environment. This is very much required as Redwood Cronacle acts as central job scheduler in your SAP landscape (with OEM version).
    As you have confirmed, you are using OEM and hence you have only one process server.
    Regarding the conventions for names, it is recommended to create a centrally accessible naming convention document and then follow it. For example in my company we are using the naming convention for the jobs as Z_AAU_MM_ZCHGSTA2_AU01_LSV where A is for APAC region, AU is for Australia (country), MM is for Materials management and then ZCHGSTA2_AU01_LSV is the free text as provided by batch job requester.
    For other Redwood Cronacle specific objects also you can derive naming conventions based on SAP instances like if you want all the related scripts / job chains to be stored in one application, its name can be APPL_<logical name of the instance>.
    So in a nutshell, it is highly recommend
    Also the integration of SAP solution manager with redwood is to receive monitoring and alerting data and to pass the Redwood Cronacle information to SAP SOL MAN to create single point of control. You can find information on the purpose of XAL and XMW interfaces in Cronacle help (F1). 
    Hope this answers your queries. Please write if you need some more information / help in this regard.
    Best regards,
    Vithal

  • Confused about extending the Sprite class

    Howdy --
    I'm learning object oriented programming with ActionScript and am confused about the Sprite class and OO in general.
    My understanding is that the Sprite class allows you to group a set of objects together so that you can manipulate all of the objects simultaneously.
    I've been exploring the Open Flash Chart code and notice that the main class extends the Sprite class:
    public class Base extends Sprite {
    What does this enable you to do?
    Also, on a related note, how do I draw, say, a line once I've extended it?
    Without extending Sprite I could write:
    var graphContainer:Sprite = new Sprite();
    var newLine:Graphics = graphContainer.graphics;
    And it would work fine. Once I extend the Sprite class, I'm lost. How do I modify that code so that it still draws a line? I tried:
    var newLine:Graphics = this.graphics;
    My understanding is that since I'm extending the Sprite class, I should still be able to call its graphics method (or property? I have no idea). But, it yells at me, saying "1046: Type was not found or was not a compile-time constant: Graphics.

    Thanks -- that helped get rid of the error, I really appreciate it.
    Alas, I am still confused about the extended Sprite class.
    Here's my code so far. I want to draw an x-axis:
    package charts {
        import flash.display.Sprite;
        import flash.display.Graphics;
        public class Chart extends Sprite {
            // Attributes
            public var chartName:String;
            // Constructor
            public function Chart(width:Number, height:Number) {
                this.width = width;
                this.height = height;
            // Methods
            public function render() {
                drawAxis();
            public function drawAxis() {
                var newLine:Graphics = this.graphics;
                newLine.lineStyle(1, 0x000000);
                newLine.moveTo(0, 100);
                newLine.lineTo(100, 100);
    I instantiate Chart by saying var myChart:Chart = new Chart(); then I say myChart.render(); hoping that it will draw the axis, but nothing happens.
    I know I need the addChild method somewhere in here but I can't figure out where or what the parameter is, which goes back to my confusion regarding the extended Sprite class.
    I'll get this eventually =)

  • Is there any best practice or standard for database object naming ?

    Hi
    Thank you for reading my post
    is there any standard or best practice for databse objects naming ?
    for example how should we name columns of a table ? should it be like TOTAL_VOTE or TOTALVOTE and many other items.
    Thanks

    what does oracle suggest as a naming schema for tables , fields , views. indexes , tablespaces , ... If you look at the data dictionary you will see that not even Oracle keeps rigidly to any specific standard, although there are tendencies :)
    "The nice thing about standards is that there are so many of them to choose from."      
    -- Andrew Tannenbaum
    Cheers, APC

  • Confused about passing by reference and passing by valule

    Hi,
    I am confuse about passing by reference and passing by value. I though objects are always passed by reference. But I find out that its true for java.sql.PreparedStatement but not for java.lang.String. How come when both are objects?
    Thanks

    Hi,
    I am confuse about passing by reference and passing
    by value. I though objects are always passed by
    reference. But I find out that its true for
    java.sql.PreparedStatement but not for
    java.lang.String. How come when both are objects?
    ThanksPass by value implies that the actual parameter is copied and that copy is used as the formal parameter (that is, the method is operating on a copy of what was passed in)
    Pass by reference means that the actual parameter is the formal parameter (that is, the method is operating on the thing which is passed in).
    In Java, you never, ever deal with objects - only references to objects. And Java always, always makes a copy of the actual parameter and uses that as the formal parameter, so Java is always, always pass by value using the standard definition of the term. However, since manipulating an object's state via any reference that refers to that object produces the same effect, changes to the object's state via the copied reference are visible to the calling code, which is what leads some folk to think of java as passing objects by reference, even though a) java doesn't pass objects at all and b) java doesn't do pass by reference. It passes object references by value.
    I've no idea what you're talking about wrt PreparedStatement, but String is immutable, so you can't change its state at all, so maybe that's what's tripping you up?
    Good Luck
    Lee
    PS: I will venture a guess that this is the 3rd reply. Let's see...
    Ok, second. Close enough.
    Yeah, good on yer mlk, At least I beat Jos.
    Message was edited by:
    tsith

  • Confuse about Configuring Oracle Warehouse Builder

    newbie here... i am abit confuse on how to configure the Oracle Warehouse builder...
    I have 2 database... 1 source and 1 new one...
    I understand that i have to install the Runtime Repository in the database computer and the Target Schema through the client's computer...
    so all this while... i am just confuse about what to install into the source database and what to install into the new database...
    Please help...

    Location is a logical entity in your OWB design that can be either a database schema, a flat file location, an SAP application location etc. Once you complete your design and are ready to deploy the design into the runtime environment, you will have to 'register' the locations by providing the physical details of your location to OWB (user name/password, database, hostname etc.).
    I am a bit confused by your configuration - are the source and the target in two separate schemas or in the same schema? Your posts are somewhat contradictory.
    If they are in two different schemas, you should:
    1. Create a source module pointing to a source schema (you can then import data object structures from the source schema - i.e. you don't have to create source tables manually in OWB, but you can import them into the module automatically). This module will have a source location (for example SRC_LOC).
    2. Create a target module where all your target objects will be (i.e. where the data will be loaded). This module will have a different location (TGT_LOC). In your target module you will also create the mappings.
    3. When deploying, you will register SRC_LOC with the physical details of your source schema, while the target location will be registered with the physical details of the target schema. The code generated by OWB during deployment will make sure that the data is extracted from the source schema and inserted into the target schema (either by generating and using DB links or by qualifying the schemas in the extraction queries if source and target are in the same database instance).
    On the other hand, if both source and target objects are in the same db schema, you can have all your objects in the same target module and you will only have to register the location of this target module when deploying (LOC_TGT).
    That said, there can be a variety of reasons why there is no data in the target after you run the extract mapping that have nothing to do with locations, such as logical errors in the mapping (an inappropriate filter or a wrong join), insufficient privileges etc. I suggest you take a look in the runtime audit browser that should contain the error messages relative to your mapping.
    Regards:
    Igor

  • Confusion about Kodo and JCA

    Hi,
    I'm a bit confused about Kodo's Connection Architecture strategy. It is my understanding that
    PMF's can be built to use the connection architecture. Along this line, one would configure the
    ConnectionFactory or ConnectionFactoryName, and possibly the ConnectionFactory2 and
    ConnectionFactory2Name properties in a PMF. The result of the PMF implementation supporting the
    connection architecture is nice integration with the application servers in terms of security,
    transaction, and connection management. One can lookup in JNDI a reference to a Kodo PMF that
    supports datastore transactions or to another one that supports optimistic transactions or to
    another one that supports NTR, and with proper settings of the transactional properties and suitable
    application code, one's sesson bean will work.
    But from what I can see of Kodo's JDOPersistenceManagerFactory class, it, itself, implements the
    ManagedConnectionFactory interface, meaning, I think, that this class is resource adaptor. And that
    the part that confuses me. Why would Kodo be a resource adaptor? I thought it used a resource
    adaptor, which I think is the same thing as a connection factory.
    Anyway, I'm puzzled, and I'm hoping that someone could straighten me out.
    David Ezzio

    David-
    The fact that Kodo can integrate into an application server as a
    Resource Adaptor, and section 3.2.2 of the specification that says that
    the PersistentManagerFactory should be able to utilize a Resource
    Adaptor to obtain connections to the data store are two separate issues.
    We implement Kodo itself as a Resource Adaptor in order to provide ease
    of integration into recent application servers. Your confusion is
    understandable, since we do not actually yet support the use of Resource
    Adaptors as the Connection Factories as per section 3.2.2.
    Does that make sense?
    David Ezzio <[email protected]> wrote:
    Hi,
    I'm a bit confused about Kodo's Connection Architecture strategy. It is my understanding that
    PMF's can be built to use the connection architecture. Along this line, one would configure the
    ConnectionFactory or ConnectionFactoryName, and possibly the ConnectionFactory2 and
    ConnectionFactory2Name properties in a PMF. The result of the PMF implementation supporting the
    connection architecture is nice integration with the application servers in terms of security,
    transaction, and connection management. One can lookup in JNDI a reference to a Kodo PMF that
    supports datastore transactions or to another one that supports optimistic transactions or to
    another one that supports NTR, and with proper settings of the transactional properties and suitable
    application code, one's sesson bean will work.
    But from what I can see of Kodo's JDOPersistenceManagerFactory class, it, itself, implements the
    ManagedConnectionFactory interface, meaning, I think, that this class is resource adaptor. And that
    the part that confuses me. Why would Kodo be a resource adaptor? I thought it used a resource
    adaptor, which I think is the same thing as a connection factory.
    Anyway, I'm puzzled, and I'm hoping that someone could straighten me out.
    David Ezzio--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code

  • Change Existing objects naming conventions in a Query

    Hi all,
    I Need to change the Naming Conventions of the Query Objects of a Query at the Infoprovider level. Is there any Routine to change the naming conventions or do i need to do it Manually.

    Hi gopinath,
    mine is also a similar case, the problem with the option u gave me is that our implementation is in EDW environment and rework from the scratch is not an option for me. Is it possible to change the query objects naming convention at particular info-provider level, i have about 200 objects created with random naming convention and to be now changed according to a standard naming convention. I need to also consider how the changes effect other queries and reports as well.. So is there any possible way of Custom coding a routine or a program that can solve my purpose.. has any one gone through the same situation?
    thanks,
    kishore

  • Confusion about TreeMap

    Hi,
    I'm currently studying for SCJP exam and am confused about the following code.
         public static void main(String[] args) {
         TreeMap myMap = new TreeMap();
         myMap.put("ab", 10);
         myMap.put("cd", 5);
         myMap.put("ca", 30);
         myMap.put("az",20);
         NavigableMap myMap2 = myMap.headMap("cd", true);
         myMap.put("bl",100);
         myMap.put("hi",100);
         myMap2.put("bi", 100);
         System.out.println(myMap.size() + " " + myMap2.size());
         }When I run it, it outputs 7 6.
    What I'm confused about is how when after the line NavigableMap myMap2 = myMap.headMap("cd", true);and values are being entered into the myMap object, that it is still possible for them to be entered in the NavigableMap object? Are the 2 entities not seen seperately? Is it to do with the "inclusive" field of the headMap method.
    The solution states that the myMap contains the objects "ab","cd","ca","az","b1","h1","bi"
    and myMap2 "ab","cd","ca","az","b1","bi".
    But how when adding key-value pairs do both objects (myMap,myMap2) get considered for putting into?
    Thanks.

    From the API:
    headMap
    public NavigableMap<K,V> headMap(K toKey,
    boolean inclusive)
    Description copied from interface: NavigableMap
    Returns a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey. The returned map is backed by this map, so changes in the returned map are reflected in this map, and vice-versa. The returned map >supports all optional map operations that this map supports. So myMap2 contains all the elements from myMap that are <= "cd" (which are all except "hi"), and changes in either map are reflected on both, as stated.

  • Confused about JTable::setCellEditor

    Hi
    I'm a bit confused about what JTable::setCellEditor does.
    I wrote my own TableCellEditor implementation which can handle dates and other additional stuff and which can decide for itself what type of editing control to display.
    Now I want my table to use only this editor.
    However using
    tblTest.setCellEditor( MyEditorInstance );didn't work. But when I used
    tblTest.getColumnModel().getColumn(0).setCellEditor( MyEditorInstance );
    tblTest.getColumnModel().getColumn(1).setCellEditor( MyEditorInstance );
    tblTest.getColumnModel().getColumn(2).setCellEditor( MyEditorInstance );for every column it worked fine.
    How can I avoid setting the default editor manually and set it for all columns?
    As always, any help is greatly appreciated
    Marcus

    I agree with you, its not clear what that method does.
    If you don't set a cell editor to a column then JTable determines which of its default editors to use based on the Class returned from the getColumnClass() method, which is defined by the JTable and the TableModel. If you are using the default implementation of this method then it will always return Object as the class type. You can use your editor as the default by doing:
    table.setDefaultEditor(Object.class, MyEditorInstance);

  • Confused about cronie

    I'm a bit confused about the cronie package in Arch. Am I supposed to configure my crontab with 'crontab -e' - the traditional approach to me since I run Slackware also - or should I hack the /etc/cron.d directory? How does it work? Because a file named 0hourly is put there and I figured that it's supposed to run what's in /etc/cron.hourly (which by default has a script to call anacron).

    Cronie separates the anacron functionality from the root crontab.  So this is the /etc/anacrontab:
    # /etc/anacrontab: configuration file for anacron
    # See anacron(8) and anacrontab(5) for details.
    SHELL=/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=""
    # the maximal random delay added to the base delay of the jobs
    RANDOM_DELAY=45
    # the jobs will be started during the following hours only
    START_HOURS_RANGE=3-22
    #period in days delay in minutes job-identifier command
    1 5 cron.daily nice run-parts /etc/cron.daily
    7 25 cron.weekly nice run-parts /etc/cron.weekly
    @monthly 45 cron.monthly nice run-parts /etc/cron.monthly
    @Imello, for your user, you should be using "crontab -e" and for root you should also use "crontab -e".  If you want to use anacron at in interval that fits within the existing setup (that is, daily/weekly/monthly) then you should use the /etc/cron.{daily,weekly,monthly}.  As I understand it, the difference between cron and anacron is that cron will run something at the specified intervals if the machine is on, while anacron will check to see if the given interval has been run at the appropriate time.  If it has been missed, it will run it.
    So you should definitely be using "crontab -e" or /etc/cron.{daily,weekly,monthly}.
    With the /etc/cron.hourly directory, you could use that, but it is actually just run as an hourly regular cronjob, not by anacron like the others.  I presume this is because it is a regular enough interval that it will likely be run fairly consistently.

  • Confused about Bandwidth Profiler - what's it telling me?

    Hi All,
    I'm confused about the bandwidth profiler. I have two
    different SWF
    files, both are profiled for 56K modem. One file is 253K, 150
    x 260 px,
    599 frames @ 10fr/sec showing a preload of 96 frames (9.6 s),
    frame 1 is
    45K. The other is 197K, 800 x 150 px, 1009 frames @ 12fr/sec
    showing a
    preload of 484 frames (40.3 s), frame 1 is 189K. Why does the
    preload
    for the smaller file take 40.3 sec. while the larger file is
    only 9.6
    sec.? And what does preload mean? It appears to indicate how
    long it
    will take to download frame 1, is that correct? Why is the
    Frame 1 size
    so different between the two? And why does the smaller file
    size have a
    much larger frame 1 size. I just don't see why a smaller file
    should
    take longer to load than a larger file.
    Any help would be appreciated.

    preloaders preload all frames - usually a percentage -
    unfortunately most developers make you wait
    until 100% of the movie (all frames/content) is loaded when,
    if built correctly, only a much smaller
    percentage needs to be loaded before playing. Sounds like one
    of your movies has embedded fonts or
    objects set for export on frame 1 (like components) and they
    all have to loaded first (before frame
    1 actually) because flash doesn't know where in your movie
    they are located.
    Chris Georgenes / mudbubble.com / keyframer.com / Adobe
    Community Expert
    Brett wrote:
    > Hi All,
    >
    > I'm confused about the bandwidth profiler. I have two
    different SWF
    > files, both are profiled for 56K modem. One file is
    253K, 150 x 260 px,
    > 599 frames @ 10fr/sec showing a preload of 96 frames
    (9.6 s), frame 1 is
    > 45K. The other is 197K, 800 x 150 px, 1009 frames @
    12fr/sec showing a
    > preload of 484 frames (40.3 s), frame 1 is 189K. Why
    does the preload
    > for the smaller file take 40.3 sec. while the larger
    file is only 9.6
    > sec.? And what does preload mean? It appears to indicate
    how long it
    > will take to download frame 1, is that correct? Why is
    the Frame 1 size
    > so different between the two? And why does the smaller
    file size have a
    > much larger frame 1 size. I just don't see why a smaller
    file should
    > take longer to load than a larger file.
    >
    > Any help would be appreciated.

  • Confused about the default schema

    Hi,
    I am a little bit confused about the schema concept.
    I want to create a new schema called APP and then create several users and roles based on the schema APP. The default schema for the users should be APP achema.
    How can I make the schema APP the default schema for the new users that I am creating?
    I feel that there are some schema design concepts that I have to learn. Is there any resource on the internet that I can read and learn more about oracle schema design best practices?
    Any help would be appreciated,
    Ali

    A schema holds object definitions, and in the case of table & index objects the schema also holds the data.
    A user owns the schema.
    Therefore the user 'owns the definitions (including any functions, procedures, sequences, tabels, etc.)
    Other users may be granted access to some, or all, of the objects in a schema. This is done through the 'GRANT ...' command. For example, consider the following steps:
    1) create user app_owner
    2) create table object test owned by the app_owwner
    3) create user app_user
    4) grant select, update, insert and delete on app_owner's test table to app_user
    5) add synonyms to avoid needing to qualify the table's schema name.
    done as follows:
    oracle@fuzzy:~> sqlplus system
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 3 20:07:32 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Create the app owner userid. Note there is no need to ever log in to that user, even to create tables.
    SQL> create user app_owner
      2  identified by xyz
      3  account lock
      4  quota unlimited on users
      5  default tablespace users
      6  temporary tablespace temp;
    User created.
    Creating objects in a schema can be done by providing the schema name, or by switching schema in newer versions of Oracle
    SQL> create table app_owner.test ( t number );
    Table created.
    Create a userid that will access the table. Set that userid up to access the database and (for future) give it the capability to create it's own synonyms
    SQL> create user app_user
      2  identified by xyz
      3  temporary tablespace temp;
    User created.
    SQL> grant create session to app_user;
    Grant succeeded.
    SQL> grant create synonym to app_user;
    Grant succeeded.
    Now give the user access to the objects
    SQL> grant select, update, insert, delete on app_owner.test to app_user;
    Grant succeeded.
    Let's test it out. Insert by qualifying the schema name on the object, then create a synonym to avoid using schema, and try it all using the synonym
    SQL> connect app_user/xyz
    Connected.
    SQL> insert into app_owner.test values (4);
    1 row created.
    SQL> create synonym test for app_owner.test;
    Synonym created.
    SQL> insert into test values (3);
    1 row created.
    SQL> select * from test;
             T
             4
             3
    SQL>  Note that some people want to use PUBLIC grants and PUBLIC synonyms. This is a real bad idea if you want to ensure long term security of the data and want to host several different applications in the same Oracle instance.
    This, and a whole lot more, is in the 'Concepts' manual for your version of the database at http://docs.oracle.com

  • Object naming..

    Okay, I'm going to make an attempt at explaining this and I'd sincerely appreciate any help offered.
    I'm currently doing up a program that allows a person to create Friends. The thing that I want to ask you guys about is this: Is there anyway to create an automatic Object naming method? For example:
    Person *a* = new Person();You see, if I create a method that automatically names every object a, wouldn't that mean that I am simply overwriting it? I don't want to have to type out a load of Object names and I'm pretty sure that that wouldn't be the best way to do it.
    Regards.
    Wayne

    In this situation, you would do something like this:
    public class MainClass {
        public static void main(String [] args) {
            Person [] people = new Person[10];
         people[0] = new Person("Larry");
    class Person {
        String name;
        public Person(String n) {
         name = n;
    }Or some other similar method of using a class field to represent the person's name.

Maybe you are looking for