Java inheritance

Hi Guys,
I just wanted to get your opinion on the following issue. In our
hypothetical scenario, we would have:
class A {
int id;
class B extends A {
String name;
Only class B is supposed to be persistent, so there would be a single JDO
metadata file that would have 2 fields: id and name.
Right now, it looks like when Kodo is trying to match field (from JDO
metadata) against attributes in Java class, it does not take into
consideration Java inheritance and as a result it complains about missing
attribute id.
I figure that Kodo may be parsing the java source code instead of using
Java reflection to get the attributes.
Any thought? I mean, we can obvuiously work around it, it is just
something that came up recently and I wanted to see what you think about
it.
Thank you,
Petr

BTW, the reason is the enhancer can't access and wrap A's id field
accesses...
for example, one might have toString () { return "ID:" + id;} but since
A has not been enhanced as PersistenceCapable, the app can access id in
a variety of invalid states. Nor will Kodo have access to the proper
field accessors/mutators/wrappers (esp. if id were declared private).
Also, Kodo does -no- source examination for non-IDE based usage, either
at enhancement time or at runtime. (the JBuilder and SunONE integration
components use the respective IDE's code parsers to assist in metadata
generation for uncompiled classes).
Steve Kim wrote:
JDO can only provide persistence for fields defined at the highest
persistence-capable class.
To bypass this problem a simpler solution would be:
abstract class A {
public abstract int getId ();
public abstract void setId (int id);
class B extends A
int id;
String name;
// getters and setters
And futher, if one needs concrete As (though usually that doesn't make
sense), one can provide implementation of the abstract methods and
override them with B's methods. Note that methods in A which access id,
should use the accessor methods and not directly manipulate id.
Petr wrote:
Hi Guys,
I just wanted to get your opinion on the following issue. In our
hypothetical scenario, we would have:
class A {
int id;
class B extends A {
String name;
Only class B is supposed to be persistent, so there would be a single JDO
metadata file that would have 2 fields: id and name.
Right now, it looks like when Kodo is trying to match field (from JDO
metadata) against attributes in Java class, it does not take into
consideration Java inheritance and as a result it complains about missing
attribute id.
I figure that Kodo may be parsing the java source code instead of using
Java reflection to get the attributes.
Any thought? I mean, we can obvuiously work around it, it is just
something that came up recently and I wanted to see what you think about
it.
Thank you,
Petr
Stephen Kim
[email protected]
SolarMetric, Inc.
http://www.solarmetric.com

Similar Messages

  • Java inheritance and interface code help required

    please help me I need your 30 mins only,,, working on assignment and I am trying to understand interface and inheritance might not need even 30 mins, please add me on skype *[deleted by moderator]*
    Or add me on
    yahoo msgr *[deleted by moderator]*
    waiting for your help.
    I have no single person friend or I can ask help from who knows java or programming. pretty much want to learn need a friend who can guide me in java.
    unfortunately have to submit assignment tomorrow.
    Thank you in advance for your time and consideration.
    Akee
    *Edited by moderator: EJP on 10/11/2012 10:38: removed your private contact details. This is a public forum, not a personal help desk. Ask your questions here or not at all.*

    Hi,
    there are lot of thread alredy posted please serach
    check following link
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/1d753cab14a909e10000000a11405a/frameset.htm
    XSLT Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    Java Mapping:
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    Links of blogs on java mapping...
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    blog
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping(file to xslt mapping)
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners(xslt with java enhancement function)
    Regards,
    Amit

  • Java Inheritance and Types

    Hello,
    I have some super/sub classes, listed as follows:
    UnitMgr
    SpecialUnitMgr (child of UnitMgr)
    Unit
    SpecialUnit (child of Unit)
    I'm designing a lot inventory system where my SpecialUnitMgr applet will have many instances of Unit. Right now I have the system set up so that UnitMgr contains an instance var declared as "Unit aUnit;". UnitMgr as a parent class, takes care of common code between the many different UnitMgr child classes.
    Right now I have SpecialUnitMgr setup to use the inherited parent/super variable aUnit, and I have extended the functionality of Unit with SpecialUnit (added more instance vars, etc). I wish to use extended features of SpecialUnit within my SpecialUnitMgr class, but I am unable to do so because of type conflicts (i.e. i cant access SpecialUnit vars or methods from the instance aUnit because it is declared as Unit in UnitMgr).
    I want to keep a single instance of Unit or SpecialUnit going, but I'm not sure how to do so.
    I am wondering how to get around this problem, do I use Reflection? Is my design bad? I am trying to maintain the super classes as a core package.
    Jeff

    If I understand the problem correctly, you want generics. public class UnitMgr<U extends Unit>
        protected U aUnit;
    public class SpecialUnitMgr extends UnitMgr<SpecialUnit>
    }See http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html for more on generics.

  • If java inherites Object , and i inherite another class  how possible ?

    hey !
    if my class B inherits A , and you know that all class inherits a class called Object , then that means B inherts two classes one A (user defined ) and another Object, then is it a violation of rule ? if now how java achieved this feature ? can you justify
    for sack of simplicity i wrote following code .
    class B extends A
    int r;
    B(int a)
    r=a;
    public String toString()
    return r +" ";
    }

    Java supports this:
       Object
          |
          A
          |
          B
          |
          Cbut not this:
       Object
       A     B
          C

  • Java inherited annotations

    Dear colleagues.
    There is some inconvenience concerning using of java annotations. I annotated some interfaces and methods within them. Then I made some derived interfaces and classes and tried to get my annotations here. Unfortunately annotations whose had been made for base classes were inaccessible from derived classes. It was very critical for me because I used some automated wrappers over my classes and couldn�t add annotations manually. Anyway as a result the library was elaborated that helps to solve inheritance task.
    The annotations being inherited are of classes, interfaces, or their methods. It uses the consistent inheritance model: inheritance proceeds only if the same annotation is not present on the same element (class, interface or method) within superclasses or superinterfaces. Annotations can be overridden within descendants. The library is open-source and free and can be downloaded from here:
    http://www.fusionsoft-online.com/annotation.php.
    Will be great to hear your opinion here�
    Best Regards,
    Michael.

    Dear colleagues.
    There is some inconvenience concerning using of java
    annotations. I annotated some interfaces and methods
    within them. Then I made some derived interfaces and
    classes and tried to get my annotations here.
    Unfortunately annotations whose had been made for
    base classes were inaccessible from derived classes.Your document's assertions that the platform does not support inheriting annotations are false. Indeed, the @Inherited annotation, included as part of JSR 175, is meant exactly for that purpose:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/annotation/Inherited.html
    (This only allows inheritance along the superclass chain, not interfaces.)

  • Java inherited static operations on static variables

    How does one force a static method in a base class to operate (read/modify) on static variables in the base class and all of its subclasses ?
    From what I've seen, static methods aren't truly inherited; just invoked from the sub-classes within the super's context !! Am I mistaken ?

    It seems I've incorrectly (more like, incompletely) phrased the 1st part of the question to cause a concern in your response. I hate fundamentally flawed approaches as well :-) My title still holds good, though.
    Rephrasing:
    How does one allow a static method defined in a base class, that can already operate (read/modify) on its own static variables, be inheritable in the subclasses, so that they too can use this method to operate on their over-ridden static variables, without the subclasses having to redefine them ?
    Partial Problem Definition:
    Way before any instances of some of the above-discussed classes are created, the classes should be able to fill in a common static variable with data that is unique to the particular class in question. Especially when these so-called static variables are declared final. Therefore, a superclass (in this case the root) can define this method once, and all subclasses would inherit this class method during their class-object initialization and accordingly fill in their 2 cents worth of value in a given static variable - which in this case will have the same name in all the classes involved. This static variable can represent anything - time-of-class-creation, class-level random number etc.,
    An apparently silly example:
    Class A {
    protected static final String canonicalClassName = getMyClassName();
    protected static String getMyClassName() {
    // Implementation
    Class B {
    protected static final String canonicalClassName = getMyClassName();
    What would the commented implementation in getMyClassName() be, so that all subclasses can take advantage of (WITHOUT re-defining) the super's method ?
    Edited by: Matt0000 on Apr 17, 2008 2:21 PM

  • Java inheritance problem

    class Super {
    public void method1() {
    method2();
    private void method2() {
    System.out.println("Method2.....Super");
    class Sub extends Super {
    private void method2() {
    System.out.println("Method2.....Sub");
    public static void main(String [] a) {
    Super sup = new Super();
    sup.method1();
    output :- Method2.....Super
    Hi,
    Can anyone explain why this program executes method2() from super class ? I thought method2() from the Sub class should be executed.

    sprizor wrote:
    DrLaszloJamf is correct.
    If you don't want method2 public but you still want to be able to override/use it in subclasses, make it protected instead.I wrote "method2 can not be private". It can be public, protected or the default access level (when Super and Sub are defined in the same package).
    I strongly recommend using the @Override attribute which will generate a compile-time error if you fail to override correctly:
    class Super {
        public void method1() {
            method2();
        void method2() {
            System.out.println("Method2.....Super");
    class Sub extends Super {
        @Override void method2() {
            System.out.println("Method2.....Sub");
        public static void main(String[] a) {
            Super sup = new Sub();
            sup.method1();
    }

  • JNI - core dump - internal error on linux after calling Java method

    I'm getting a core dump after calling athe main statric method using JNNI.
    On linux.
    I can get the class id correcttly but when I attempt to call the method it craches with an internal error , anyone know why it would crash instead of just not work.
    if(cls)
        main_methodID = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
           printf("Class Found Successfully\n");
      else
        printf ( "cls not found\n");
        return 0;
      if(main_methodID)
              jstring first_str = env->NewStringUTF("The First String");//create string
              jobjectArray args = (jobjectArray)env->NewObjectArray(1,env->FindClass("java/lang/String"), first_str);//new array with 2 elements
                   env->SetObjectArrayElement(args, 2, first_str);//insert the second string into index 1 of the array
              jstring second_str = env->NewStringUTF("The Second String");//create string
              env->SetObjectArrayElement(args, 1, second_str);//insert the second string into index 1 of the array
         env->CallStaticVoidMethod(cls, main_methodID, args);//pass the array to the Java main method
                                  The JAVA method is
      public static void main(String[] args) {
        System.out.println("Main method in Framework");
            Framework framework = new Framework();
                                 

    I see yere points but what I see on linux is it makes it to the constructor of the Java object and somewhere afterwards it bails out, the Java app does work alone. It appears to have problems initializing the JFrame, could there be a problem with the Java inheritance when a JVM is invoked throurgh native invocation??
    Here's some of the Java stuff
    public class Framework extends WindowAdapter {
        public int numWindows = 0;
        private Point lastLocation = null;
        private int maxX = 500;
        private int maxY = 500;
        public Framework() {
            System.out.println("JAVA Framework cnst");//GETTING HERE
            makeNewWindow();
        public void makeNewWindow() {
            System.out.println("JAVA makeWindow"); //GETTING HERE
            JFrame frame = new MyFrame(this); //NOT GETTING HERE!!!!!!!!!
            numWindows++;
            System.out.println("Number of windows: " + numWindows);
            System.out.println("Frame location: " + lastLocation);
            frame.setVisible(true);
            System.out.println("Post Java set frame visible");
        public static void main(String[] args) {
        System.out.println("Main method in Framework");
            Framework framework = new Framework();//GETTING HERE
    class MyFrame extends JFrame {
        protected Dimension defaultSize = new Dimension(200, 200);
        protected Framework framework = null;
        public MyFrame(Framework controller) {
            super("New Frame");
            System.out.println("MyFrame cnst ");//NOT GETTING HERE!!!!!!
            framework = controller;
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            addWindowListener(framework);
            JMenu menu = new JMenu("Window");
            menu.setMnemonic(KeyEvent.VK_W);
           setSize(defaultSize);
    }

  • Data Modeler: Super Type and Inheritance when engineered to Relational Mode

    PLEASE IGNORE THIS MESSAGE, I'VE SORTED IT. MY STUPIDITY HAS BEEN RECTIFIED BY READING THE MANUAL!!
    Hi
    I have a logical model that I'm playing with where I want to set a super type entity that contains common columns for all sub-type entities a la java inheritance.
    When I engineer this with the super type entity method set to 'Table for each entity' it creates a table for the super and sub entities and links them with a PK-FK.
    That's not what I was expecting.... I would like to get :
    PARENT ENTITY (Super Type)
    ATTRIBUTE1
    ATTRIBUTE2
    and
    CHILD ENTIRY (Super Type = PARENT ENTITY)
    CHILD_ID PK
    DESCRIPTION
    when this is engineered I'd like:
    TABLE = CHILD_ENTITY
    Columns:
    CHILD_ID PK
    DESCRIPTION
    ATTRIBUTE1
    ATTRIBUTE2
    Any ideas what I'm going wrong here????
    Cheers
    Chris
    Edited by: chriseb on Aug 13, 2009 2:46 PM

    Hi Chris,
    I'm glad that you have sorted it out. Then you can mark the question as answered.
    Philip

  • Flattening inheritance

    Hi,
    I'm just wondering if anyone out here has come across a tool to flatten java inheritance hierarchies at the source code or bytecode level. An application I am working on has approx 15 levels of inheritance (not my doing!!) and redesigning it would take forever. So if there is some kind of conversion tool to remove all inheritance at either sc or bc level I would be very interested in it!
    Thanks
    Jack.

    Just a single post is suffice....
    Iinheritance implemented
    Anyway , it's known issue,
    Sim

  • Inheritance in EJBs

    I am trying to find out if Weblogic supports functionality that TOPLink provides to
    represent inheritance.
    (http://www.webgain.com/products/toplink/mapping_workbench/demos/
    check the "Using Advanced Descriptor Functions", "Inheritance").
    I want to have a parent class which has multiple children (i.e. an Account class,
    subclasses as Checking, Savings, Loan, etc.). These would all be stored in one database
    table. A single 'findAccountsForCustomer' method could return a mixed collection
    of the specific child objects.
    Is this something available in a current version of Weblogic, or something planned
    for the future? Or, is this something that requires a 3rd party mapping tool?

    How does this differ from the second option I listed?
    Thanks,
    Bob
    "Nick Minutello" <[email protected]> wrote
    in message news:[email protected]...
    >
    >
    You can achieve inheritance using Entity Beans. Its not the simplest ofthings -
    but its do-able. (Although I will admit I havent done this for aproduction application).
    >
    You would create an AccountBean - which is the base-class implementation.Your other
    Checking, Savings, Loan Beans inherit from it. (Strictly they dont haveto - this
    is only so you have implementation inheritance.)
    Then, you would also create an AccountLocal - which is the base-classcomponent interface.
    Your other CheckingLocal, SavingsLocal, LoanLocal Interfaces inherit fromit. (this
    is so you get polymorphism at the client level)
    Your PK classes must be the same all. (though, I forget why at the moment)
    You need to create a home for each Bean (this makes sense - you have tohave a factory
    that knows what its creating/finding).
    You need to list all of them in the DDs. (the CMP mapping duplication is apain)
    >
    Its all a bit dicky doing it by hand. But if you can get your hands onWSAD4, it
    will automate this all for you (Sadly, it only supports EJB1.1.... but youcan see
    how it does it)
    The thing to remember is that if they are in the same table (I wouldreconsider that
    decision) then your findByPrimaryKey method will never be able todistinguish between
    them.
    The finders are a bit tricky - you need to do the aggregation of thesub-types.
    >
    -Nick
    "Bob Lee" <[email protected]> wrote:
    EJB does not support inheritance. You are limited to standard Java's
    inheritance capabilities.
    If you want to use entity beans, you have the following two options:
    1) Have a generic Account entity bean with an account type field (rather
    than subclassing).
    2) Use Java inheritance, set up an entity bean for each type (Savings,
    Checking, etc.) and use a session facade. The findAccountsForCustomer()
    method in the session facade will hit each entity bean type and combine
    the
    results.
    I would probably go with the first option. You can use the Strategy
    pattern
    or something comparable to handle the implementation differences between
    the
    Account types.
    Bob
    "Howard Webb" <[email protected]> wrote in message
    news:[email protected]...
    I am trying to find out if Weblogic supports functionality that TOPLinkprovides to
    represent inheritance.
    (http://www.webgain.com/products/toplink/mapping_workbench/demos/
    check the "Using Advanced Descriptor Functions", "Inheritance").
    I want to have a parent class which has multiple children (i.e. an
    Account
    class,
    subclasses as Checking, Savings, Loan, etc.). These would all be
    stored
    in one database
    table. A single 'findAccountsForCustomer' method could return a mixedcollection
    of the specific child objects.
    Is this something available in a current version of Weblogic, or
    something
    planned
    for the future? Or, is this something that requires a 3rd party
    mapping
    tool?
    >

  • Java GUI for Unix not showing . files

    we have discovered a strange behaviour with sapgui 7.10 rev 8 on unix (AIX and Solaris). You can't see and browse to folders starting with a . (e.g. .abc) and also files with a . are not listed in the file open dialog (for attaching files via cv02n). Does anybody experience the same behaviour and probabely has found a setting to change it?
    Thanks for any help
    Axel

    Hi Axel,
    it sounds a bit odd that this CAD integration software is writing files to hidden folders but the user later is forced to navigate inside there.
    SAP GUI for Java inherits the file chooser dialog from the Swing framework part of Java. Sun seems to have decided, that by default, hidden files and folders should not be shown.
    I am hesitating to generally switch on showing hidden files and folders because it will irritate most end users.
    We are looking into a way to add the option to switch on showing hidden files and folders by the user.
    Btw, the user can navigate into a hidden folder by entering its name and hitting return, from there the user can navigate as usual. So it is not required to enter a complete path.
    Best regards
    Rolf-Martin

  • Inheritance Polymorphism

    Hi all,
    I have a question regarding Polymorphism in Java Inheritance.
    Consider the following
    public class Parent {
         void doSomethingParent() {
              System.out.println("P");
    public class Child1 extends Parent{
         void doSomethingChild1() {
         void doSomethingParent() {
              System.out.println("Child1");
    public class Child2 extends Parent{
         void doSomethingChild2() {
         void doSomethingParent() {
              System.out.println("Child2");
    public class TestClass {
         public static void main(String[] args) {
              Parent p = new Child1();
              p.doSomethingParent(); //1
                    p.doSomethingChild1(); //2
    }In line 2 in TestClass above, I get a compilation error "doSomethingChild1() is undefined for Parent class"
    At compile time, the compiler knows that the reference variable 'p' points to a Child1 object. Why does it then, not allow us to call the methods that belong to Child1.
    Please let me know the answer to this, i am really very curious.
    Thanks!!

    fiona_016 wrote:
    But when it knows for sure that p points to a Child1 object...In many cases, the compiler does not know for sure. For instance, if your p variable would be a class variable, another thread may change it from being a Child1 to being a Child2 in between the declaration and the call. Even without multithreading, suppose p is assigned in another method (in another class maybe). Should the compiler try to analyse the code as far as possible to infer the actual type of p? I don't think so. This would introduce inconsistencies in the language and it will be hard to discern (for the programmer) when such inference should or should not take place. The way it is, it's consistent, simple and, I would say, safe. Safe=the compiler tells you that the code needs to be fixed, either by changing the variable type or by not calling that method. The non-compilable code may hide a logic error.

  • How java extends Object class?

    It is true that we cannot extend more than one class, it is true that java inherits Object class implicitly (if not explicitly) and it is also true that we can extend class X in class Y.
    My question is if java does not support multiple inheritance (directly, using extends) then how does it extends Object (implicitly) and my class X (explicitly)?
    In other words how does java inherits Object along with our specified class?
    Thanks in advance.
    Manish

    Java does support multi inheritance!Yes I know java support multiple inheritancethrough
    interfaces but what I meant was you cannot inherit
    multiple classes using "EXTENDS".and that is correct. Do you still have a question
    regarding this?Nop, actually due to over-concentration and over-thinking on this topic while reading I lost the track and asked this question.
    Thanks
    Message was edited by:
    Manish_India_1983

  • Is Java right for my needs?

    I have put more hours than I care to think about into building an app for one of my clients, using MS Visual Basic 6. Recently there have been some changes in the company that may require starting the project back at square one. The app was built for a single office running on Windows XP. Now the company has hired people that work remotely, and some use Macs. The software is of little value to them and therefore to the company.
    We utilize a MySQL database. My initial research on Java shows that should be compatible, but I have a lot of questions due to the rather specialized nature of some of the functions this software performs.
    Also, the server host we use says that "JSP and Servlets are not supported" but that Java Applets are OK. I am not familiar with the differences between these 3 items. If we need to use a web app instead of client-based apps, this may be a concern.
    In a nutshell, my needs are to build a large application with multiple functions - and will continue to be added to for years - that will operate on both Mac and Windows.
    If I understand correctly I can build client-side apps that could still access the remote database (?) This would probably be fine and in some ways preferable to web apps that would be accessed through a browser since security concerns would be less - no way to access the system just by hacking someone's login.
    Here is a list of some of the functions that currently exist in the VB6 app. Can Java handle these tasks?
    1. Display contents of any web page in the app window (VB6 has a web browser control I use)
    2. Extract the plain text from a web page, copy to a text field
    3. Process large blocks of text and count instances of a specified text string
    4. Search a large block of text for keywords that exist in a list, and change text formatting of each instance of each keyword.
    5. Search/replace in a long text string, case sensitive; including special characters such as tab and paragraph
    6. Load SQL query results into a variable array, not a bound control
    7. Show a visual comparison of 2 versions of a text document to see deletions, additions, edits. Currently, my program links to MS Word's Compare Versions command to accomplish this.
    8. Spellcheck a block of text.
    9. Resize and save JPEG or TIFF image; perform this action on all files in a directory as a batch
    Any guidance you can provide as I try to decide how to take on this project will be much appreciated.
    Thank you.
    Paul

    Paul,
    I have put more hours than I care to think about into
    building an app for one of my clients, using MS
    Visual Basic 6. Recently there have been some
    changes in the company that may require starting the
    project back at square one. Oops!
    The app was built for a
    single office running on Windows XP. Now the company
    has hired people that work remotely, and some use
    Macs. The software is of little value to them and
    therefore to the company.google "windows virtual machine for mac"
    We utilize a MySQL database. good choice
    My initial research on
    Java shows that should be compatible, but I have a
    lot of questions due to the rather specialized nature
    of some of the functions this software performs.specialized nature? like ICBM guidance systems or something? Try J2ME:-)
    Also, the server host we use says that "JSP and
    Servlets are not supported" but that Java Applets are
    OK. server host? which one? can you change server apps? if you're talking IIS then think ASP... which implies a MySQL to Sequel migration, and licenceCost*=100;
    I am not familiar with the differences between
    these 3 items. * JSP = Java Server Pages = open standard industry supported equivalent++ of ASP... A JSP page is compiled automatically into a Servlet
    * Servlet = a compiled Java class which runs inside the web container (on your web host).
    * Aplet = a clunky jaba application imbedded in a clunky browser, mainly useful for games, online gambling, and other things that crash a lot. IMHO Swing still sux.
    If we need to use a web app instead
    of client-based apps, this may be a concern.Ummm... Yep, I suppose so.
    In a nutshell, my needs are to build a large
    application with multiple functions - and will
    continue to be added to for years - that will
    operate on both Mac and Windows. Which, as you have rightly identified, has "WebApp" written on the cover in large friendly letters.
    If I understand correctly I can build client-side
    apps that could still access the remote database (?)Not generally regarded as a "solid architecture"... more useful for intranet connections. Security is (still) a major concern.
    This would probably be fine and in some ways
    preferable to web apps that would be accessed through
    a browser since security concerns would be less WRONG !!!
    J2EE provides "out of the box" mechanisms for secured, controlled, administered, audited, & extensible access to server resources.
    Sticking JDBC passwords in a fat-client property file or a webapps-cookies (even encrypted) is not secure. Why did the NSA make it illegal to export 256 bit encryption algorithms from the good 'ole US of A?
    no way to access the system just by hacking someone's login.REALLY REALLY WRONG !!! !!! !!!
    "QUT to NASA, We are go for Launch!"... that was a JDBC connection string (a URL with encrypted password) written on the inside front cover of a professors diary, and left on the desk after class.
    Here is a list of some of the functions that
    currently exist in the VB6 app. Can Java handle these
    tasks?
    1. Display contents of any web page in the app window
    (VB6 has a web browser control I use)Why not just let them loose in another browser window? It's a porkchop requirement.
    2. Extract the plain text from a web page, copy to a
    text fieldYep... that's not rocket surgery.
    3. Process large blocks of text and count instances
    of a specified text stringYep... regex was a unix invention... Java inherited (belatedly) from Perl.
    4. Search a large block of text for keywords that
    exist in a list, and change text formatting of each
    instance of each keyword.Yep... (as above)
    5. Search/replace in a long text string, case
    sensitive; including special characters such as tab
    and paragraphLarge? Are we talking bigger than a meg, 10meg, 100meg, a terabyte?
    Stay away from the DOM... it's a performance anti-pattern... worthy of the MS "engineers" who invented it.
    6. Load SQL query results into a variable array, not
    a bound controlWhat? What's a "bound control"
    7. Show a visual comparison of 2 versions of a text
    document to see deletions, additions, edits.
    Currently, my program links to MS Word's Compare
    Versions command to accomplish this.Yep.
    8. Spellcheck a block of text. Yep. Did you spellcheck your post?
    9. Resize and save JPEG or TIFF image; perform this
    action on all files in a directory as a batchYep, though you do loose a lot of clarify with the standard API's. They're working on it.
    Any guidance you can provide as I try to decide how
    to take on this project will be much appreciated.
    Thank you.
    Paul1. google "windows virtual machine for mac"
    Maybe that'll save you from this walking nightmare.
    2. think J2EE web app, using Sun's Server PE 9, BEA's Weblogic Server, or the venerable free Apache Tomcat (in which case look at the JBoss stack).
    3. Applets are an absolute first class pain the proverbial. Every new browser version breaks them. Every third browser patch breaks them. Every new Java version breaks them. Yuchh! may as well go Lotus notes.

Maybe you are looking for

  • Back up touch to different computer?

    My neighbor kid broke the screen on his iPod touch. The windows laptop he has the touch sync'd with is not available for a couple weeks. Is there any way to back up his touch to one of my macs so we can send this touch in for replacement (he has 3rd

  • Problem in modifying existing records in dbtab

    Hi Experts, I am doing a report where I have created two dbtab's , one for data getting saved and other for fetching data and modifying exsiting records.. For eg - let ZABC be the table where I need to insert or update records and ZXYZ is the table w

  • Essbase Connection error: version 11.1.2

    HI all, I am facing an issue... I am not able to see the SQL data source in the EAS - when I click File>Open SQL. It gives error - There are No data sources defined, SQL data sources option will be disabled and that is the case. somwhere i read to mo

  • Best Boot Camp version for my MacBook Pro?

    Hi guys! So, I've got a 17" MacBook Pro from 2007. It's listed as "macbookpro2,1" in System Profiler, if that helps. I've got the Windows 7 Release Candidate installed on a Boot Camp partition running BC version 2.0. I guess I'm a bit confused - what

  • Help on building up a Hierarchical Query

    Hello I have a requirement to build the approval group based on invoice amount on the invoice line in payable. For Example if the invoice line amount is 10000k then I want to send the invoice for approval till level 3 approval authority from the requ