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

    NTLM (Windows Authentication)

    The problem with any of these implementations including this one is none of them seem to set the authentication credentials in the response/session. So they all work to load a single page but subsequent calls from that page do not work. Basically I'm authenticating an IIS application from a...
  2. BillyKrow

    NTLM (Windows Authentication)

    We have a need to authenticate a user in a servlet using NTLM security then forward the user on to the secure site running on IIS to bypassing the IIS log in. Using the java.net.Authenticator class, I can get the below to load the requested page, but since no authentication data is stored to...
  3. BillyKrow

    Maximum Open Cursor

    I have a database connection where I execute many insert and update statements before I perform a commit since I want the ability to roll the entire transaction back if any one insert or update fails along the way. On larger transactions I'm running into maximum open cursor errors (Oracle...
  4. BillyKrow

    Apache Tomcat with AJAX (DWR) Slow

    I've implemented a very simple chat page using the details found at: http://today.java.net/pub/a/today/2007/03/22/developing-applications-using-reverse-ajax.html It works but the chat text on the page takes a long time to refresh (usually 20+ seconds). I've even added the preStreamWaitTime...
  5. BillyKrow

    Updating JFrame from another JFrame

    That won't work either. Main problem was all processing is being fired from a keyboard listener. Solution was to add another keyboard listner class that's only responsibility is to update the status message. Since this is it's only job, it finishes quickly and can update the status while the...
  6. BillyKrow

    Updating JFrame from another JFrame

    Actually, I have a correction to above. When I use the invokeAndWait method I get an error "Cannot call invokeAndWait from the event dispatcher thread
  7. BillyKrow

    Updating JFrame from another JFrame

    Asycrhonously meaning I'm running a process that is taking time and while it's running I want a simple JFrame status "processing..." type pop up. The problem is I can get the popup to come up, but the text won't appear until processing is done. I can get it to work if I thread the the main...
  8. BillyKrow

    Updating JFrame from another JFrame

    I have a simple task. I want to hide/show and update text in a JFrame asynchronously from another JFrame. It seems the code in the parent frame must complete before the other frame will update. I've tried threads and the SwingUtilities.invokeLater method but I can't get it to work then...
  9. BillyKrow

    Conrolling number of servlet instances

    I wasn't really conviced that SingleThreadModel effected the number of instances but I could easily test this. I was just going by a couple articles I had read. Mainly, what I have read is that it depends on the J2EE server. However, since the init is getting called five times, this proves...
  10. BillyKrow

    Conrolling number of servlet instances

    Actaully the number of instances depends on the application server and whether or not your implementing the SingleThreadModel. I'm using the SingleThreadModel do to the fact that the normal threaded environment will not work since I want each servlet call to act like a single transaction tied...
  11. BillyKrow

    Conrolling number of servlet instances

    I'm running a web app on a WebSphere server and need to control the maximum number of servlet instances. Is there any way through a WebSphere setting, web.xml or direct code to control the maximum number of servlet instances? By putting System.out message in the init method, it appears to...
  12. BillyKrow

    Emulating a HTTP POST

    I need to emulate a HTTP post with direct Java code. I'm doing doing something like this: URL url = new URL("http://WebAddresss/servlet"); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); conn.setRequestMethod("POST"); conn.setDoOutput(true); Writer writer = new...
  13. BillyKrow

    JFrame - How to trap keyboard events

    I have a JFrame and I want to trap keyboard events and make decisions on the event before they actually get sent to components within the JFrame. The problem with the java.awt.event.KeyListener class is that it only listens to events and does not intervene and cannot stop them from happening...
  14. BillyKrow

    ImageIO registering tiff

    I was using 1.4 but it seems in only comes with plug-ins for bmp and jpg. The toolkit adds other image types including tiff. Anyways, it looks like I'm on my way to getting this to work now. Thanks
  15. BillyKrow

    ImageIO registering tiff

    Actually, I had been using that library. But what I found is you also need or maybe only need the Image I/O Tools that also come with JAI and can be downloaded at: http://java.sun.com/products/java-media/jai/downloads/download-iio-1_1.html
  16. BillyKrow

    ImageIO registering tiff

    I've been struggling with this the whole day and it can't be that difficult. I'll narrow the problem down to one line of code: Iterator readers = ImageIO.getImageReadersByFormatName("tif"); I've seen a million examples of using this but not one of how to register the tiff image type. For me...
  17. BillyKrow

    How to stop command window from closing?

    Pause, why didn't I think of that. That should do the trick. Thanks!
  18. BillyKrow

    How to stop command window from closing?

    With prior versions of windows there used to be a "close on exit" option you could toggle on command (DOS) windows. This option seems to no longer exist in XP. I have a batch file that is running a java application and it appears to be erroring out periodically. The only problem is, the...
  19. BillyKrow

    executeUpdate() returns 0 rows even though target DB has been updated

    Yes, I read something to this effect, that the driver may be the issue. It's strange though that I've never seen this problem in any other similar updateStatements.
  20. BillyKrow

    executeUpdate() returns 0 rows even though target DB has been updated

    My subject describes my problem exactly. I have an executeUpdate() command that updates an Orale database like: int rows = statement.executeUpdate(); statement.close(); if (rows == 0) { System.out.println("Zero rows updated throw new MyException ("Zero rows were...

Part and Inventory Search

Back
Top