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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
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
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...
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...
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.