ok. thanks for the help on this one. I'm getting closer, but have one last issue to deal with. How do I override, getInputStream() and return a ServletInputStream? I'm using WAS 5.0. Here is what I have so far for my wrapper:
All I want to do is intercept the request, print the header and body to the log and pass the request onto the servlet. So I use a filter chain. But if I call getReader to print the body, it then throws an IllegalStateException further up the chain.
How do I avoid this and print the body to the log, while leaving the streams intact? possible?
Could someone please tell me how to make my own library that contains multiple JAR files that can then be added to projects. When I go to the build path there is the tantalizing option to add a library, but I can only select the JRE System library.
I have looked and looked and cannot find how to make my own, I am probably just looking over something really simple???
okay sure, this will be very trimmed down from the actual code. The abstract view is just a fancy JPanel that does various other interesting things I use in my application framework, I just call revalidate on it:
Hi, I have written my own custom tree model. I create the JTree and pass the model as parameter then show the JTree in a scrollpane. There is a button to repopulate the tree model. My question is when I hit this the model is repopulated, but the UI does not reflect the changes even after calling revalidate. What is the best way to detect the changes and update the JTree/UI properly when the whole tree model (except the root node) is regenerated? Should I be firing some sort of event from the tree model after it's regenerated or something? Thanks for the assistance. Rich.
thanks for the help. I didn't think it would be too big because the hex 'should' have originally been generated from a long value. Strange... my problem must lie elsewhere in the code ( Okay thanks guys for the quick assistance.
I am really bogged down on this. I am parsing hex strings to long values. I use the call Long.parseLong(string, 16) it processes quite a few of the strings just fine then throws this: java.lang.NumberFormatException: For input string: "a6acda419199c58a" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:406) it looks like hex to me? am I missing something? It's compiled and run with JDK 1.4.2. Any comments are really welcome. Cheers Rich.
hello, I am having some trouble getting my environment set up to learn j2ee. I run suse linux and have jboss3.0.6 with tomcat 4.1. It is throwing a classdef exception when I start JBoss, I am very new to j2ee so don't really understand what ServletContext is. One thing I thought suspicous was the start of the output the classpath doesn't seem to contain a j2ee.jar?? my system classpath does though.
Here's a trimmed version of the exception, it occurs 3 times with slightly different messages but essentially the same error, no javax/servlet/ServletContext.
thanks for any assistance from anyone. [ March 28, 2003: Message edited by: Richard Johnson ]
I am doing a uni project, one of my team members suggested putting the database as an actor on the use case diagram. I didn't think it was right, we were never really taught where the data source comes into play (we used Larman) though so would her idea be right?