comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * SQL object to int - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/87e630d1130e02a3 * Restricting the applet classloader? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3cfe733a0792057b * JSP web hosting companies? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b174e4eeec12692 * how to get KeyPressed event inside JWindow - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/26a3c33df985c317 * bit manuplation with java - 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4c3bf92e3489752 * comp.lang.java.{help,programmer} - what they're for (mini-FAQ 2004-10-08) - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a4231ec81619f9cc * equals vs == - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/93c9522d56ea8805 * Singleton or static class? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c6605e437a9085c2 * timout on line of code - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/85ddb5609baca4a0 * J2ME system service / listener - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ae6cc82d6ab83b4a * Socket Communication Question (followup) - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23536734131d6c07 * Google Desktop redirect url ... with java?? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/797ef56618ed22df * New Site - jMinds - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70af5677e5a2f13d * Compiled .java code (i.e. class) does not go to the right directory in Netbeans - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/877ff49e2b5adbf9 * netbeans 4.0 - how to mount classpath directory - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83dd59c3578df94f * passing cert location + password to a custom JSSESocketFactory - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f9aee2a4e66ad39a ============================================================================== TOPIC: SQL object to int http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/87e630d1130e02a3 ============================================================================== == 1 of 2 == Date: Sun, Dec 19 2004 8:52 am From: Lee Fesperman Tony Morris wrote: > > "Lee Fesperman" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Ann wrote: > > > > > > I have a MySQL database; two of the columns are int(5). > > > I wrote a method to extract a tuple and put it into an > > > Object[][] myData; using getObject() > > > How can I get the integer values? > > > Using trial and error, the following works, but it looks awful. > > > > > > int x = Integer.parseInt(myData[0][3].toString()); > > > > int(5) is not standard, but if the JDBC driver follows the spec, > > getObject() should return an Integer object for those columns. > > This is blatantly incorrect. > JDBC 3.0 Specification TABLE B-6. You're looking at the wrong table. JDBC 3.0 TABLE B-3 describes the Java Object Types returned by getObject() for various JDBC Types. It shows java.lang.Integer for Types.TINYINT/Types.SMALLINT/Types.INTEGER. > > In that case, you can do: > > > > int x = ((Integer) myData[0][3]).intValue(); > > > > ... which looks a little better ;^) > > Since the suggestion is on a false premise, it is wrong (the downcast may > not succeed), but suppose it wasn't, the suggestion is nasty anyway. > Avoid downcasts at all costs - abstraction aids future maintenance. It might > "look a little better" to you (I prefer blondes to brunettes), but it's > terrible form. A downcast of the result of getObject() is quite reasonable since the spec (see above) guarantees the actual type. The only reason it won't work is if the driver violates the spec. Hardly a 'nasty' suggestion. -- Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com) ============================================================== * The Ultimate DBMS is here! * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com) == 2 of 2 == Date: Sun, Dec 19 2004 8:56 am From: Lee Fesperman Dave Glasser wrote: > > Lee Fesperman <[EMAIL PROTECTED]> wrote on Sun, 19 Dec 2004 > 01:47:09 GMT in comp.lang.java.programmer: > > >Ann wrote: > >> > >> I have a MySQL database; two of the columns are int(5). > >> I wrote a method to extract a tuple and put it into an > >> Object[][] myData; using getObject() > >> How can I get the integer values? > >> Using trial and error, the following works, but it looks awful. > >> > >> int x = Integer.parseInt(myData[0][3].toString()); > > > >int(5) is not standard, but if the JDBC driver follows the spec, getObject() > >should > >return an Integer object for those columns. In that case, you can do: > > > > int x = ((Integer) myData[0][3]).intValue(); > > > >... which looks a little better ;^) > > But this would be safer (the cast, that is) and give the same result: > > int x = ((Number) myData[0][3]).intValue(); Good point! It would be safer given the circumstances ... possibly non-conformant drivers. -- Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com) ============================================================== * The Ultimate DBMS is here! * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com) ============================================================================== TOPIC: Restricting the applet classloader? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3cfe733a0792057b ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 1:30 am From: "sammyk" Thomas Weidenfeller wrote: > Filip Larsen wrote: > > So, I was wondering if a more elegant solution perhaps was possible > > using a "restricted" class loader during the load of the resource > > bundles. Persuing this I quickly bang my head on a SecurityException > > from the security manager (since the applet is and should be > > unsigned). > > It looks as if this is not a classloader problem at all, but the > getBundle() method just does what it is supposed to do, and looks up a > bundle under a lot of different names. So, if you don't want this, don't > use getBundle(), but implement something on your own, which uses the > searchs strategy you like. > > When you do so, the getResource[AsStream]() methods of the classloader > might be very handy. > > /Thomas can you please state what you mean by saying "implement something on your own" when reffering to getBundle()? ============================================================================== TOPIC: JSP web hosting companies? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b174e4eeec12692 ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 2:40 am From: Rob [EMAIL PROTECTED] wrote: > I have account at http://www.eatj.com/index.jsp. It is good one. > Daniel wrote: > >>Does anyone know of web hosting companies supporting JSP? > > http://www.kgbinternet.com/index.jsp ============================================================================== TOPIC: how to get KeyPressed event inside JWindow http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/26a3c33df985c317 ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 11:19 am From: "Geli J. Crick" William Zumwalt wrote: > I did this, actually, I did requestFocusInWindow() since it was > suggested in the api docs over requestFocus(), and it still didn't work. > requestFocusInWindow() returned false. > > My component is displayable and focusable so I'm not sure what is wrong > here. > > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > >>I think you also need to call the method requestFocus() >> I had a similar problem (though I was using a JDesktopPane with subclasses of JInternalFrame). This may not be the best solution, but I finally got it working by adding the keyListener to each of the JInternalFrames (in your case, JPanels). Also, I had to re-implement the isFocusTraversable() method in each JInternalFrame to return true. I also found that you can implement the KeyEventDispatcher class, and add it to the KeyBoardFocusManager KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcherImplementation()); This way you can intercept all keyboard events before they are sent to any components. This requires quite a bit of care though, as you could effectively disable all built in key actions (ex. TAB to move between components). It seems to me that it is only useful in a few rare cases, but I thought I would mention it in case it helps. ============================================================================== TOPIC: bit manuplation with java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4c3bf92e3489752 ============================================================================== == 1 of 4 == Date: Sun, Dec 19 2004 10:24 am From: "VisionSet" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > well hi ther i have a strange question about bitmanuplation > > > if i have a set of bits such as 10110011 > > > which can be any thing arrays of 1 and 0 or may be string or mostly > BitSet > > > is there is away to convert it to byte or may be to any other premitive > type such as int or char with the rest of the bits be zeros ??!! > > for example if i have this stream of bits 00101 can i convert it to > integer with this bit representation > 00000000 00000000 00000000 00000101 > which equals to 5 > hope i will find an answer to my question > and thanks very much in advance if you know it will fit into int range then read the bytes (which presumably have no signed meaning) do an OR with an int and shift the int 8 places left ie int i = 0; byte[4] b; // assigned from stream for(j = 0; j < b.length; j++) { i << 8 i = i | b[j] } maybe there is an easier way -- Mike W == 2 of 4 == Date: Sun, Dec 19 2004 4:24 am From: "ali" well thanks alot VisionSet you saved me from a lot of things by your replay thanks a lot == 3 of 4 == Date: Sun, Dec 19 2004 7:56 am From: "Ryan Stewart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > well hi ther i have a strange question about bitmanuplation > if i have a set of bits such as 10110011 > > which can be any thing arrays of 1 and 0 or may be string or mostly > BitSet > > is there is away to convert it to byte or may be to any other premitive > type such as int or char with the rest of the bits be zeros ??!! > > for example if i have this stream of bits 00101 can i convert it to > integer with this bit representation > 00000000 00000000 00000000 00000101 > which equals to 5 > hope i will find an answer to my question > and thanks very much in advance > You've already had answers to your question the last time you asked it. == 4 of 4 == Date: Sun, Dec 19 2004 6:38 am From: "ali" ohh sorry yesterday i was searching for a group where i can ask this question and i found yours and put my question but because i am new to googlegroups i didnt knew how to return to it today and i didnt added it to my favorites so i searched again for groups today and found this one again and couldnt remmember that it is the same group where i posted my question so i posted it again and now i found my old post well thanks alot for who posted the answer there too i really loved your group and sorry again for the multi-post ============================================================================== TOPIC: comp.lang.java.{help,programmer} - what they're for (mini-FAQ 2004-10-08) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a4231ec81619f9cc ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 10:25 am From: [EMAIL PROTECTED] (David Alex Lamb) Last-Modified: Fri Oct 8 11:38:42 2004 by David Alex Lamb Archive-name: computer-lang/java/help/minifaq Posting-Frequency: every 4 days Before posting read Jon Skeet's "How to get answers on the comp.lang.java.* newsgroups" at http://www.pobox.com/~skeet/java/newsgroups.html Java FAQs and advice: - Java FAQ (Andrew Thompson) http://www.physci.org/codes/javafaq.jsp including his list of other FAQs http://www.physci.org/codes/javafaq.jsp#faq - Java/Javascript/Powerbuilder HOWTO (Real Gagnon) http://www.rgagnon.com/howto.html - Java Glossary (Roedy Green) http://www.mindprod.com/jgloss.html - jGuru jFAQs (John Zukowski) http://www.jguru.com/jguru/faq/ - Focus on Java (John Zukowski) http://java.about.com/ - Java Q&A (David Reilly) http://www.davidreilly.com/jcb/faq/ - Java GUI FAQ (Thomas Weidenfeller) http://www.physci.org/guifaq.jsp comp.lang.java.help Set-up problems, catch-all first aid. According to its charter, this unmoderated group is for immediate help on any Java problem, especially when the source of the difficulty is hard to pin down in terms of topics treated on other groups. This is the appropriate group for end-users, programmers and administrators who are having difficulty installing a system capable of running Java applets or programs. It is also the right group for people trying to check their understanding of something in the language, or to troubleshoot something simple. comp.lang.java.programmer Programming in the Java language. An unmoderated group for discussion of Java as a programming language. Specific example topics may include: o types, classes, interfaces, and other language concepts o the syntax and grammar of Java o threaded programming in Java - sychronisation, monitors, etc. o possible language extensions (as opposed to API extensions). The original charter said that discussion explicitly should not include API features that are not built into the Java language and gave examples like networking and the AWT. These days AWT belongs in clj.gui, and networking (and many other APIs) are often discussed in clj.programmer. Do not post binary classfiles or long source listings on any of these groups. Instead, the post should reference a WWW or FTP site (short source snippets to demonstrate a particular point or problem are fine). For some problems you might consider posting a SSCCE (Short, Self Contained, Correct (Compilable), Example); see http://www.physci.org/codes/sscce.jsp Don't post on topics that have their own groups, such as: comp.lang.java.3d The Java 3D API comp.lang.java.advocacy Arguments about X versus Y, for various Java X and Y comp.lang.java.beans JavaBeans and similar component frameworks comp.lang.java.corba Common Object Request Broker Architecture and Java comp.lang.java.databases Using databases from Java comp.lang.java.gui Java graphical user interface design and construction comp.lang.java.machine Java virtual machines, like JVM and KVM comp.lang.java.security Using Java securely comp.lang.java.softwaretools Tools for developing/maintaining Java programs Don't cross-post between these groups and c.l.j.programmer or .help -- it just wastes the time of people reading the general groups. Don't post about JavaScript; it's a different language. See comp.lang.javascript instead. -- "Yo' ideas need to be thinked befo' they are say'd" - Ian Lamb, age 3.5 http://www.cs.queensu.ca/~dalamb/ qucis->cs to reply (it's a long story...) ============================================================================== TOPIC: equals vs == http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/93c9522d56ea8805 ============================================================================== == 1 of 3 == Date: Sun, Dec 19 2004 5:10 am From: john martin <- Chameleon -> wrote: > if (s instanceof String) { > if (s == "a string"); > if (s.equals("a string")); > } > > what is the difference between s.equals and s == ??? > > When I use s == "something", many times if s == "something", returns false! > > Instead s.equals works correct always. > > Is there something that I dont know? If you've ever worked with C or C++, it might actually be easier to think of this in terms of pointers. Though Java doesn't have pointer arithmetic, you can think of an object, such as the String s, as a variable name (in this case s) pointing to the actual object. So, if you compare two Strings as follows: String s1 = new String("foo"); String s2 = new String("foo"); if(s1==s2) System.out.println("equal"); else System.out.println("not equal"); "not equal" will be the output, because s1 and s2 are not equal: they point to different String objects. If, however, you change it to: String s1 = new String("foo"); String s2 = new String("foo"); if(s1.equals(s2)) System.out.println("equal"); else System.out.println("not equal"); you'll get the expected output ("equal"), because the equals method is overloaded to do a lexical comparison on the two String objects (in the case of the String class, other objects can have their equals method overloaded to do the appropriate comparison). Often you'll want to overload the equals method for classes of your own when you want to compare them to determine whether two objects should be considered to have equal value regardless of whether they are in fact pointing to the same instance. E.g., if you have a class with two fields, and instances of that class can be considered equal when the first field in the first object is the same as the first field in the second object, and the second field in the first object is the same as the second field in the second object, you'd override the equals method to check for that condition and then return true if and only if that is the case. Hope that helps. I know it could be a somewhat confusing explanation since it's often said that Java doesn't use pointers (and it's true that it doesn't do pointer arithmetic at all). But it is often useful to think of an object variable as a pointer to the object in memory (you even have to use "new" to allocate the object; you can't just declare an object on the stack the way you can a primitive such as int), even if only for semantic purposes when thinking about the way the program will work. == 2 of 3 == Date: Sun, Dec 19 2004 8:02 am From: "Ryan Stewart" "john martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hope that helps. I know it could be a somewhat confusing explanation > since it's often said that Java doesn't use pointers Who often says that? == 3 of 3 == Date: Sun, Dec 19 2004 9:47 am From: Lewis Sellers <- Chameleon -> wrote: > if (s instanceof String) { > if (s == "a string"); > if (s.equals("a string")); > } > > what is the difference between s.equals and s == ??? > > When I use s == "something", many times if s == "something", returns false! > > Instead s.equals works correct always. > > Is there something that I dont know? "equals" physically goes and compares the contents of s and "something" character by character. "==" simply tests if the contents of s and "something" reside at the same place in memory.... :-> See... and this is the tricky part... Part of the way Java manages memory, objects, and strings in particular is to try to have only one copy of a unique string in memory at a time. So if you happen to mention the string "something" 15 times in your program, Java will attempt to store it in one place in memory and just reference that. The main exception is when you do a new String. --min ============================================================================== TOPIC: Singleton or static class? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c6605e437a9085c2 ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 12:38 pm From: Stefan Schulz On Sat, 18 Dec 2004 15:03:36 +0100 Chris Berg <[EMAIL PROTECTED]> wrote: > On Fri, 17 Dec 2004 14:51:17 +0100, Stefan Schulz <[EMAIL PROTECTED]> > wrote: > >(Cause a class > >load in a static initializer, and you'll be suprised!) > > What do you mean by that? Do you mean a new class referenced for the > first time (and thus class-loaded) inside a static{..} block? Why is > that a problem? Situations like this: class A { public static final B f; public static final A g; static { f = new B(); g = new A(); } } class B { public static final A f; public static final B g; static { f = A.g; g = A.f; } } The same problem can become much less obvious, and quite devious. After all, it only happens if class B is classloaded exactly this way, when it might initialize cleanly when loaded by some other code path. -- In pioneer days they used oxen for heavy pulling, and when one ox couldn't budge a log, they didn't try to grow a larger ox. We shouldn't be trying for bigger computers, but for more systems of computers. --- Rear Admiral Grace Murray Hopper ============================================================================== TOPIC: timout on line of code http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/85ddb5609baca4a0 ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 1:00 pm From: "Ike" Knute, Can you think of a way in Java such that, using a timer, it works almost as a "goto" statement if it times out? -Ike "Knute Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ike wrote: > > >>Just what would make that line of code hang? > >> > >>-- > >> > >>Knute Johnson > >>email s/nospam/knute/ > > > > > > A google search reveals numerous times others have, in the past, had > > inexplicable, eternal hanging on: > > > > URLConnection.getInputStream(); > > > > > > > > Under all different JVMs. Has anyone ever figured out the resolution to > > this? We havent changed anything, just, suddenly, faced with eternal hanging > > on this particular line. -Ike > > > > > > > > 1.5 has a setReadTimeout() that will throw a SocketTimeoutException if > the read timeout is exceeded. If you can't use 1.5, you could use an > alligator but it would have to close your program. There was a similar > problem with a feature of JavaSound before 1.5 came out and it could > hang. Use a Timer to call System.exit() if it waits too long. > > -- > > Knute Johnson > email s/nospam/knute/ ============================================================================== TOPIC: J2ME system service / listener http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ae6cc82d6ab83b4a ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 8:08 am From: "Darryl L. Pierce" [EMAIL PROTECTED] wrote: > Is there a way to create a runnable class to run on a never terminated > thread? > Suppose I want to create a Bluetooth listener / service that doesn't > terminate as the application is closed. No, that's not possible. > Is it possible to do it in C++ ? That depends on the handset. -- Darryl L. Pierce <[EMAIL PROTECTED]> Visit my webpage: <http://mcpierce.multiply.com> "By doubting we come to inquiry, through inquiry truth." - Peter Abelard ============================================================================== TOPIC: Socket Communication Question (followup) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23536734131d6c07 ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 5:24 am From: [EMAIL PROTECTED] (James Willans) James Willans wrote: > If there is a more appropriate newsgroup to place this message then > please point me in the right direction. > > We have an application that has a server and a number of clients > communicating using sockets. The java.nio libraries are used in the > server and java.io libraries are used in the clients (this may not be > relevant). We are currently testing our application on a windows > machine. All works fine until the status of the network changes, for > example if a wireless signal is momentarily lost the read and write > data methods begin throwing exceptions. I'm having trouble > determining whether or not the network disconnection is causing the > socket to be lost, or whether it is simple unavailable while the > network sorts itself out. In the case of the former, is the usual > strategy to simply handle the disconnection by recreating the socket? > In the case of the former, should I be performing checks prior to > check whether it is an unstable state? Any further information would > be much appreciated. Steve, Thanks for your response: > A "momentary" interruption should not cause problems. Maybe it is > incovering bugs in your code. It might be a bug in the code, this is what I need to try and establish. First I need to understand better what the expected behaviour would be. Should the loss of a wireless network signal and hence the disconnection of the network for a few seconds cause sockets running on that network to be lost? > What sort of exceptions? The exception being reported is: java.io.IOException: An existing connection was forcibly closed by the remote host (I can repeat this error by pulling out the network cable of the machine). In the first instance I need to known what is expected here. If it is the case that the socket actually persists through the interruption, should I be (on the server) predicating the SocketChannel.write(..) to check the status of the socket? Similarly on the client side should I predicate the PrintStream.println(..)? If so, how? Any help is much appreciated? James ============================================================================== TOPIC: Google Desktop redirect url ... with java?? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/797ef56618ed22df ============================================================================== == 1 of 2 == Date: Sun, Dec 19 2004 6:59 am From: [EMAIL PROTECTED] (Roger Simmons) In the Google Desktop (for Windows) when you click on one of the search results, it uses a redirect url script to open your file with the associated application from the browser. I need to be able to do exactly that, I have been working on this problem for many days now without success. If anyone has a solution I would be most indebted. I would like a java solution (as a servlet) but I am beginning to doubt if it is possible. Roger == 2 of 2 == Date: Sun, Dec 19 2004 4:47 pm From: Stefan Schulz On 19 Dec 2004 06:59:21 -0800 [EMAIL PROTECTED] (Roger Simmons) wrote: > In the Google Desktop (for Windows) when you click on one of the > search results, it uses a redirect url script to open your file with > the associated application from the browser. > > I need to be able to do exactly that, I have been working on this > problem for many days now without success. If anyone has a solution I > would be most indebted. I would like a java solution (as a servlet) > but I am beginning to doubt if it is possible. Please do not multi-post. If you are not sure which newsgroup is appropriate to your request, crosspost and set a followup to the one you think most appropriate. -- In pioneer days they used oxen for heavy pulling, and when one ox couldn't budge a log, they didn't try to grow a larger ox. We shouldn't be trying for bigger computers, but for more systems of computers. --- Rear Admiral Grace Murray Hopper ============================================================================== TOPIC: New Site - jMinds http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70af5677e5a2f13d ============================================================================== == 1 of 3 == Date: Sun, Dec 19 2004 7:56 am From: "Maheshwaran S" Hi Java geeks, We are maintaining site called jMinds( http://jminds.hollosite.com) features with lot of articles, programs, FAQ's and with other stuff too. Resources for the technologies in java, jdbc , j2ee such as JSP, Servlets, EJB ( Enterprise Java Beans ) etc from the writers of DeveloperIQ magazine and others. Contains, articles, source code for programming, tutorials and FAQ's. jMinds Team. (http://jminds.hollosite.com) == 2 of 3 == Date: Sun, Dec 19 2004 7:58 am From: "Maheshwaran S" Hi Java geeks, We are maintaining site called jMinds( http://jminds.hollosite.com) features with lot of articles, programs, FAQ's and with other stuff too. Resources for the technologies in java, jdbc , j2ee such as JSP, Servlets, EJB ( Enterprise Java Beans ) etc from the writers of DeveloperIQ magazine and others. Contains, articles, source code for programming, tutorials and FAQ's. jMinds Team. (http://jminds.hollosite.com) == 3 of 3 == Date: Sun, Dec 19 2004 9:43 am From: Lewis Sellers Maheshwaran S wrote: > Hi Java geeks, > > We are maintaining site called jMinds( > http://jminds.hollosite.com) features with lot of articles, programs, > FAQ's and with other stuff too. Resources for the technologies in java, > jdbc , j2ee such as JSP, Servlets, EJB ( Enterprise Java Beans ) etc > from the writers of DeveloperIQ magazine and others. Contains, > articles, source code for programming, tutorials and FAQ's. > jMinds Team. > (http://jminds.hollosite.com) > " How can I implement a thread-safe JSP page? You can make your JSPs thread-safe by having them implement the SingleThreadModel interface. This is done by adding the directive <%@ page isThreadSafe="false" % > within your JSP page. " I've yet to write a jsp myself, and know almost nothing about it but.... is that true? :) isThreadSafe="false" makes the page thread safe? Seems a little counterintunitive to say the least. /-) ============================================================================== TOPIC: Compiled .java code (i.e. class) does not go to the right directory in Netbeans http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/877ff49e2b5adbf9 ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 9:10 am From: "milkyway" Hi out there, I am trying to comple a .jsp under Netbeans 4.0 - when doing so, I get the error: cannot resolve symbol symbol: class getAtomFDEp location: package boxes boxes.getAtomFDep Dep = null; ^ Dependents = (boxes.getAtomFDep) _jspx_page_context.getAttribute("Dependents", PageContext.PAGE_SCOPE); The reason why this is happenning is because the compiled code does not go to the correct directory. I have WEB-INF/classes/org/.... WEB-INF/classes/boxes ^^^^^^^^^^^^^^^^^^^^^ I am trying to ge the compiled classes to go here but I do not know where this can be configured Another way of explaining this is that I compile a file foo.java. The message is init: deps-jar: Compiling 1 source file to /home/d0mufasa/APPLICATIONS/PROCESSING/Samples/build/web/WEB-INF/classes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I DONT WANT IT TO GO HERE compile-single: BUILD SUCCESSFUL (total time: 0 seconds) What can I do to get this straight? TIA ============================================================================== TOPIC: netbeans 4.0 - how to mount classpath directory http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83dd59c3578df94f ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 9:13 am From: "milkyway" Hello, There is supposed to be a way to mount a directory under Netbeans 4.0 so that it will recognized any classes that are created. Is this variable the same as setting the CLASSPATH? Can someone *please* provide a step by step example of how to mount such a directory under Netbeans 4.0? I have been reading docs and am sooooooooo tired now ;-( TIA ============================================================================== TOPIC: passing cert location + password to a custom JSSESocketFactory http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f9aee2a4e66ad39a ============================================================================== == 1 of 1 == Date: Sun, Dec 19 2004 9:32 am From: Lewis Sellers I have a custom JSSESocketFactory class that can take a PKCS12 certificate and password and use it to talk through axis to a secure web service. That works.... The problem is it needs to work on a shared hosting environment where each customer will have thier own certificates, the certificate is used used to verify their identity. I've been staring at the JSSE but am at somewhat of a loss as how to pass the cert location/password TO the class. :) If anyone can shed a bit of light on this dilemia that would be helpful. (There's apparently an attributes hashtable with the default secureSocketFactory that for a moment I was hoping might be used for this but... to be honest after staring at it a while I'm still somewhat in the dark what it's purpose is.) Thanks, -lewis ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
