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. wushutwist

    Useing double ticks in an out.println statement

    You need to escape the " character: \"
  2. wushutwist

    How to configure WL to use oracle names server?

    This has nothing to do with WebLogic. It has to do with your Oracle Client Setup. Run Net8 Assistant and promote ONames higher than TNames in the your profile.
  3. wushutwist

    Tomcat Security Advisory

    Hole in Tomcat 4.X allows the source code for JSPs to be viewed. Check here for more details and solutions: http://online.securityfocus.com/archive/1/292936/2002-09-22/2002-09-28/0
  4. wushutwist

    Should I go for ArrayList of ArrayLists / ArrayList / Something else?

    You don't need to retrieve all the columns to fill the DTO. Just fill the columns that you need. Though I would argue that you should fill everything. Do not performance-tune an application until you have determined performance is an issue. I feel your coupling concern is a weak argument...
  5. wushutwist

    Should I go for ArrayList of ArrayLists / ArrayList / Something else?

    Create a data object to model your database table and then create an ArrayList of these data objects? This is the standard way to deal with this problem. These data objects are typically referred to in J2EE as Data Transfer Objects or DTOs. Take this table: table item { id number primary...
  6. wushutwist

    Connection Pooling

    Most Application Servers and JDBC Drivers come with built-in connection pooling software. I suggest you use that.
  7. wushutwist

    Non Blocking IO's

    What he is really saying is that he wants you to know about NIO, which was just added in J2SE 1.4. Check out this article: http://developer.java.sun.com/developer/technicalArticles/releases/nio/ and then start browsing the API. Don't worry, you'll do fine. Of course, I don't really know that...
  8. wushutwist

    Thanks Sedj, but could you look at this?

    Now you beat me to the punch meadandale [sad].
  9. wushutwist

    Thanks Sedj, but could you look at this?

    A Vector is not the same to a linked list. A Vector is internally based upon an array. This means a Vector allocates chunks of memory from the heap at a time. If you add more elements than the internal array can hold then Vector creates a new array of twice the original size, copies the...
  10. wushutwist

    Memory Leak?

    Don't make the mistake of assuming that their can't be memory leaks in Java Applications. Memory leaks in Java are just much more subtle. The garbage collector only reclaims memory from objects that are no longer actively referenced. Memory leaks in Java result from a central point never...
  11. wushutwist

    Thanks Sedj, but could you look at this?

    Your problem is coming from the fact that Search.readTokens is incorrect. You define the method as returning a String array, which doesn't seem like what you want, yet in the method you define a String array and initialize it as an int array. This is obviously never going to compile. I think...
  12. wushutwist

    ASP to JSP

    Moving from ASP to JSP will be pretty straight-forward with the exception of two things: 1) If you are using custom COM objects in your ASP pages then these will need to be rewritten as Java objects. If you are using third-party COM components then you will definitely have to do some research...
  13. wushutwist

    Detecting Java plug-in version

    Check out Browser Hawk: http://www.browserhawk.com
  14. wushutwist

    String to int?

    Integer.parseInt Avoid cross-posting.
  15. wushutwist

    String to Int?

    Integer.parseInt
  16. wushutwist

    Code for testing if an OleDbConnection is open or closed

    It should be: if (con1.State == ConnectionState.Closed) { con1.Open(); } Personally I think better design is called for here. You should know at any point in your code whether a connection is open. The problem is that you are proably passing around the same connection to various methods...
  17. wushutwist

    Hi all, I'm new in JSP and total

    The JSP files should not be in WEB-INF (unless you are using MVC in which case it is valid). Directory Structure should look like: myapp \_.jsp files \_WEB-INF \_web.xml \_classes \_.class files
  18. wushutwist

    JAVA EventListerner

    In Java you can implement more than one interface. Therefore you could implement both KeyListener and MouseListener.
  19. wushutwist

    Hi all, I'm new in JSP and total

    Your classes need to go into a folder called WEB-INF/classes under ROOT. That should solve your problem. For more information on how to properly package a J2EE Web Application, check here: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WebComponents3.html
  20. wushutwist

    putting an array into a session?

    You have to cast it to the proper type, just like every Object you get from the HttpSession. String[] s = (String[])session.getAttribute("array");

Part and Inventory Search

Back
Top