Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. LittleWing

    splitting a string with StringTokenizer

    this seems fairly strange logic to program because it only applies to the second token if it has a value of "^glucose visual". if you subdivide tokens based on a space char, you would end up with blood pressure glucose visual your going to check for this condition yourself i.e...
  2. LittleWing

    Applet stop() and destroy functions() never called

    when your applet is loaded, the init method is called. check if the threads are running before you create new threads ie myThread.isAlive() or destroy the thread before creating it. do this by having a boolean member variable in your thread class. check when this is true to stop your thread
  3. LittleWing

    synchronizing method calls

    sorry, Chris is correct. once one synchronized method is called with in an object, all other synchronized methods are also locked.
  4. LittleWing

    synchronizing method calls

    synchronized methods only prevent more than one thread from accessing the same method at the same time, not another method. you will have to define the class a synchronized, not 100% sure about that, or set up a flag to prevent access to other methods
  5. LittleWing

    Servlet writing a .js file

    all servlets run on the server so to create a .js file all you have to do is FileOutputStream js = new FileOutputStream( "c:\where\ever\u\want\to\put\the\file\countries000x.js" ); this will create the file. all you have to do is store the name of this file somewhere in your app and...
  6. LittleWing

    Building a CSV file from unknown column names

    from your resultset call getMetaData. from this you can ge the column names, type etc.
  7. LittleWing

    Package Directives?

    a little trick to get your classpath working, add . as the first entry in your classpath variable. this means the current folder will always be in the classpath. so you should have the following in your classpath now classpath=.;c:\java give that a try
  8. LittleWing

    Package Directives?

    yes, leave your class path at c:\java. you can have either Java or MyClass as your package name, it doesn't matter as long as the case is the same for the folder name as it is in your source. once your class path is set and you have compiled your program, you can access it from anywhere in you...
  9. LittleWing

    Package Directives?

    the best way to explain this is like so: package java implies that your code will be found in the classpath if a folder called java exists when appended to the classpath what your compiler is actually looking for is c:\java\java the second java being your package, the first set in the...
  10. LittleWing

    import java.util.* Vs import.util.Vector

    no, there is no difference between the two. the import statement is required to during compilation so the compiler can varify your code against the external packages you wish to use. the size of the resultant class file won't be any different after compilation
  11. LittleWing

    what techinque i must use

    try this. create a data object containing all the data displayed initially to the user. call this a User object or something. define all your own data type. use strings, its easier. store this locally. let the user update whatever. read this data back from the user into a new data object...
  12. LittleWing

    Java-disassemblers/decompilers

    one word. Mocha. do a search for it on any search engine. its available for free Its the original decompiler for class files and works pretty well although due to its age, code can now be protected from it.
  13. LittleWing

    Stacks and Queues

    you should have two push methods to add something to the stack i.e. public void push( int a ) and public void push( char a ) but you will have to decide between either int or char for the pop method as you can't overload methods based on their return type
  14. LittleWing

    run class from command line

    u need to add this path to your class path "c:\...\jbproject\HHHH\classes"
  15. LittleWing

    Writing a file to a network via the IP address

    FYI, its not the file naming thats causing the problem. Something with the iPlanet installation runnning on that machine.
  16. LittleWing

    Writing a file to a network via the IP address

    Alright boyz and girls, here one to get you thinking. The issue I have a servlet to process a request. This request generates a flat file as output. I want to place the flat file on the users machine in a shared folder. Note, this machine will always be part of the LAN. The usual excuse :-)...
  17. LittleWing

    One application calling another application URL???

    if u use a servlet to do a url redirect, the second app should have complete access to the session, as it is effectively part of the same application as far as the browser http session is concerned. also in the HttpServletRequest there is a method called getSession(). this returns a http...
  18. LittleWing

    xml and java

    do u have any control over how the contents of the xml file are generated, or are u getting it from a thrid party?
  19. LittleWing

    The gap of professional and unprofessional knowledge

    not another thread gone mad!!! :) As a professional senior software engineer, obviously i have a better idea where to find knowledge and apply that to my work than, say, my local milk man. Why would he care about C++ pointers, PL/SQL memory tables or EJB containers? At the same time, there is...
  20. LittleWing

    What to use

    go to www.javasoft.com to download newer versions of the JDK...browsers are always a problem, more so that your code

Part and Inventory Search

Back
Top