comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Socket problem in applet - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/469e9f779424c7fa * Technical Industry Candidates (MAKE $1000) - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1e08fa4fba7f42d7 * java static factory method vs. constructor - object reuse - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9c44eab569d8444 * (soft) real-time transfer with Java - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/938017c2d84d8f04 * Getting the Page URI from Custom JSP Tag - 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8e680b92e1eb5a2 * Quick question on StreamTokenizer - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/69165678d49ad670 * Need help w. jsp taglib. - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4adb28fcf8257b5c * J2SE 5.0 generics question - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34434161a91e61bb * Consume a web service in jsp - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5a55f41acb385f72 * Java implementation of crypt() wanted! - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9d4b7c65f13df2a * Improving website responsiveness. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f719ebe188f50463 * Problems with JProgressBar!!! - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5dbadddd537e2772 * Obtaining derived classes - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/daa11ba437b8878b * writeObject and readObject problem - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e6fc9480a3a7f42a * A question about practical Java programming books - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d9f92694ab8e3228 * Java books - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7f9c000f41c6b160 * compiling java source - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9ed74ee3ba9401e9 * Basic Struts logging - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd2223a4c1cd5aa8 ========================================================================== TOPIC: Socket problem in applet http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/469e9f779424c7fa ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 12:12 pm From: "Christian \"Raistlin\" Gulich" <[EMAIL PROTECTED]> VK schrieb: > It's a clear VM cache issue here. > > 2 options: > 1) to stay with the docked applet (on the html page), you have to fill the > stop() and specially finalize() applet methods to handle/close/close threads > nicely. > 2) un-dock the applet in separate frame, and pop it up by a small inline > "starter" applet. > > > Faced quod potui, faciant meliora potentes... > > I used your first option. I closed my socket and created a new one after the next start. I had to change some other code, but now it works. Christian ========================================================================== TOPIC: Technical Industry Candidates (MAKE $1000) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1e08fa4fba7f42d7 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 12:11 pm From: "Mike Schilling" <[EMAIL PROTECTED]> "Steve Sobol" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mike Schilling wrote: > >> Hi, Josh. Are you too young to remember Cantor and Siegel? If so, read >> this: >> >> http://www.improb.com/personal/gorin/ethics/cands-netcom.html >> >> Then you can apologize, go away, and never return. > > Are *job postings* themselves offtopic in comp.lang.java.*? They ceratinly are in java.advocacy, which is where I read this. ========================================================================== TOPIC: java static factory method vs. constructor - object reuse http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9c44eab569d8444 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 12:21 pm From: Eric Sosman <[EMAIL PROTECTED]> javaguy44 wrote: > Hi Joona, > > Have you read Effective Java? I think you are just reconfirming my > question, because unless you misunderstood me, as far as I see, an > object of Foo is not being reused. But unless I misinterpreted, Mr. > Bloch says that object's do cache when using static factory methods. > I just don't know how. You may have misunderstood what Bloch wrote. What he probably wrote (my copy is at home where I can't check it right now) is that factory methods *can* be used as part of an object-reuse scheme. The code you showed does not provide for reuse, but here's one way it could be done: class Thing { /* Don't let outsiders use the constructor */ private Thing() { } /* "Reservoir" is some sort of a container in * which created but currently unused objects * live. */ private static Reservoir stash = new Reservoir(); /* Give the caller a Thing, either newly-minted * or retrieved from the stash. */ public static Thing thingFactory() { Thing it = stash.removeNextThing(); if (it == null) // stash was empty it = new Thing(); return it; } /* When the caller no longer needs this Thing, * releaseThing() puts it into the stash where * it becomes available for reuse. */ public static void releaseThing(Thing it) { stash.insert(it); } } That's a very simple outline. In practice, the factory method might initialize each recycled Thing to a known state (just as a constructor would), and might even take constructor- like parameters. There might be provisions to keep the stash from getting obscenely large; there might even be provisions to let the Things in the stash be garbage-collected at need. The fundamental idea, though, is that an object that is no longer needed isn't just dropped on the floor for GC to sweep up, but is instead held in a "recycle bin" for future reuse. When another instance is needed, the factory method can provide one by dusting off an already-used object instead of creating a brand-new one. -- [EMAIL PROTECTED] ========================================================================== TOPIC: (soft) real-time transfer with Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/938017c2d84d8f04 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 12:39 pm From: "szamot" <[EMAIL PROTECTED]> Hi, Is here someone with experience: two-direction (soft) real-time transfer data from database on server computer (for example SQL) to hosts with webbrowser (for example Netscape, IE)? ========================================================================== TOPIC: Getting the Page URI from Custom JSP Tag http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8e680b92e1eb5a2 ========================================================================== == 1 of 4 == Date: Tues, Sep 21 2004 1:10 pm From: "John Topley" <[EMAIL PROTECTED]> Hi, I'm developing a custom JSP tag library. How do I get the full URI of the page that is using the taglib? Thanks, John == 2 of 4 == Date: Tues, Sep 21 2004 1:25 pm From: Sudsy <[EMAIL PROTECTED]> John Topley wrote: > Hi, > > I'm developing a custom JSP tag library. How do I get the full URI of > the page that is using the taglib? HttpUtils.getRequestURL( (HttpServletRequest) pageContext.getRequest()); == 3 of 4 == Date: Tues, Sep 21 2004 1:25 pm From: kaeli <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] $topley.freeserve.co.uk enlightened us with... > Hi, > > I'm developing a custom JSP tag library. How do I get the full URI of > the page that is using the taglib? > Depends on what you want it for. Note that JSPs are compiled into servlets, and the container may move them to another location, so if you're looking to load a file that's in the "same directory" or something, don't use this method. That said... Servlet Class javax.servlet.HttpServletRequest getRequestURI() Gets the URI to the current JSP page. -- -- ~kaeli~ When you choke a smurf, what color does it turn? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace == 4 of 4 == Date: Tues, Sep 21 2004 1:55 pm From: Sudsy <[EMAIL PROTECTED]> Sudsy wrote: > John Topley wrote: > >> Hi, >> >> I'm developing a custom JSP tag library. How do I get the full URI of >> the page that is using the taglib? > > > HttpUtils.getRequestURL( (HttpServletRequest) pageContext.getRequest()); Oops! Javadocs say that's a StringBuffer so add .toString() to the end. ========================================================================== TOPIC: Quick question on StreamTokenizer http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/69165678d49ad670 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 1:14 pm From: "Boudewijn Dijkstra" <[EMAIL PROTECTED]> "overbored" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > "Boudewijn Dijkstra" <[EMAIL PROTECTED]> wrote in news:414f23dc$0 > [EMAIL PROTECTED]: > > > "overbored" <[EMAIL PROTECTED]> schreef in bericht > > news:[EMAIL PROTECTED] > >> How do I prevent StreamTokenizer from returning any TT_NUMBER items? > >> Basically all I want is to have a steady stream of plain TT_WORD items, > >> even if they're all digits. I tried wordChars('0', '9') but to no avail. > > > > This will just assign a group of chars to two types. Try calling > > resetSyntax() first. > > > But won't that clear out *everything*? Then I'd have to rebuild the entire > table, and I would have to do research into locales and character sets and > whatnot.... That is what you might expect in Java, but quite the opposite is true: StreamTokenizer isn't very advanced. It says in the docs: "Each byte read from the input stream is regarded as a character in the range '\u0000' through '\u00FF'." So there are only 256 characters to be reckoned for. > Is there no alternative? I just read in the docs that the ordinaryChars() method does the same as resetSyntax(), but only with the specified characters. Remember this: javadoc is your friend. ========================================================================== TOPIC: Need help w. jsp taglib. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4adb28fcf8257b5c ========================================================================== == 1 of 2 == Date: Tues, Sep 21 2004 1:39 pm From: Steve Burrus <[EMAIL PROTECTED]> I have a certain jsp file called "FirstJsp.jsp", and I seem to get these compiler error messages indicating that the value in the "c:out" doesn't take an argument!!! Now, I really don't know what could be wrong! Here is my code for it, and I am of course using version 1.1 of the JSTL. <%-- use the 'taglib' directive to make the JSTL 1.0 core tags available --%> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%-- use the 'jsp:useBean' standard action to make the Date object available in page scope --%> <jsp:useBean id="date" class="java.util.Date" /> <html> <head><title>First JSP</title></head> <body> <h2>Here is today's date</h2> <c:out value="Date: ${date}" /> </body> </html> And even though this is supposed to be for the 1.0 version of the JSTL, I have added the "/jsp" after the "/jstl" in that uri, but it still fails on me. == 2 of 2 == Date: Tues, Sep 21 2004 2:16 pm From: Abrasive Sponge <[EMAIL PROTECTED]> Steve Burrus wrote: > I have a certain jsp file called "FirstJsp.jsp", and I seem to get these > compiler error messages indicating that the value in the "c:out" doesn't > take an argument!!! Now, I really don't know what could be wrong! Here > is my code for it, and I am of course using version 1.1 of the JSTL. > > <%-- use the 'taglib' directive to make the JSTL 1.0 core tags available > --%> > <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> > <%-- use the 'jsp:useBean' standard action to make the Date object > available in page scope --%> > <jsp:useBean id="date" class="java.util.Date" /> > <html> > <head><title>First JSP</title></head> > <body> > <h2>Here is today's date</h2> > <c:out value="Date: ${date}" /> > </body> > </html> > > And even though this is supposed to be for the 1.0 version of the JSTL, > I have added the "/jsp" after the "/jstl" in that uri, but it still > fails on me. Try Date: <c:out value="${date}" /> ========================================================================== TOPIC: J2SE 5.0 generics question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34434161a91e61bb ========================================================================== == 1 of 3 == Date: Wed, Sep 22 2004 4:02 pm From: "Jeff" <[EMAIL PROTECTED]> Okay, thanks all for the clarification. I see it now. Here's a related question: class Test <T extends ArrayList> { private T e = new T(); } This doesn't compile. My thinking is that, due to type erasure, there isn't a T type to instantiate at runtime (the best the compiler could do is to substitute an ArrayList raw type instance, which makes the parameterized type pretty useless). That sound about right? == 2 of 3 == Date: Wed, Sep 22 2004 5:35 pm From: "Jeff" <[EMAIL PROTECTED]> > This doesn't compile. My thinking is that, due to type erasure, there isn't > a T type to instantiate at runtime (the best the compiler could do is to > substitute an ArrayList raw type instance, which makes the parameterized > type pretty useless ). That sound about right?> Not to mention that if it substituted the ArrayList raw type for T, there would be a probable parameterized type mismatch (if T weren't an ArrayList to begin with). == 3 of 3 == Date: Tues, Sep 21 2004 6:39 pm From: Chris Smith <[EMAIL PROTECTED]> Jeff wrote: > Okay, thanks all for the clarification. I see it now. Here's a related > question: > > class Test <T extends ArrayList> { > private T e = new T(); > } > > This doesn't compile. My thinking is that, due to type erasure, there isn't > a T type to instantiate at runtime (the best the compiler could do is to > substitute an ArrayList raw type instance, which makes the parameterized > type pretty useless). That sound about right? About. The most fundamental problem is that constructors are not inherited; so since you don't know what class T really is, you don't know what parameters it requires in its constructor. It may not have a constructor that takes no arguments. -- www.designacourse.com The Easiest Way to Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation ========================================================================== TOPIC: Consume a web service in jsp http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5a55f41acb385f72 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 4:25 pm From: John Bailo <[EMAIL PROTECTED]> What's a good way to consume a web service in jsp ? -- http://www.texeme.com ========================================================================== TOPIC: Java implementation of crypt() wanted! http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9d4b7c65f13df2a ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 4:53 pm From: [EMAIL PROTECTED] (Ralph.White) Jacob <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Andrew Thompson wrote: > > > I am trying to do my bit to give these new posters > > the fishing rod and you moan about how I do not give > > them fish (battered and cooked, with chips). > > In general: If you cannot contribute to the answer of a question > (how stupid it might be) then don't, as you wast other people's > bandwidth. He _is_ contributing, and in more than one way. He's giving the OP both the fish and the fishing rod! - He shows the OP that doing some research himself will lead him to the information he need faster. That's the fishing rod. _If_ he (the OP) does some research and still cannot find an answere, then I'm sure his questions will be welcome at this group. - He also provides a URL which searches Google for Java implementations of Crypt, with the first match being a page that lists several working implementations. That's the fish. And he's also helping the community by letting newcomers know that the group is likely to be more helpful _after_ you do your homework. ========================================================================== TOPIC: Improving website responsiveness. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f719ebe188f50463 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 5:38 pm From: "David Hilsee" <[EMAIL PROTECTED]> "Rico" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > All right. The post proper is: > > Would this: > for x=1 to 3000 > select * from table where item = 'x' > > be a lot slower than: > write result of (select * from table) into Hashtable > for x=1 to 3000 > hashtable.get(x) > > The answer, after I took a break: Hell Yes!! > > I timed it: it's slower by a factor of 65 ! > A full solid minute compared to one second. > Now, why is the site still so slow then? hummm... As Will Hartung indicated, it is best to use metrics. If you can run something like a profiler that will allow you to determine what exactly is taking a long time to execute, then you can fix the problem. Don't dive into the code optimizing sections that have not been identified as bottlenecks and expect a significant improvement, because that tends to be a gamble. -- David Hilsee ========================================================================== TOPIC: Problems with JProgressBar!!! http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5dbadddd537e2772 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 6:01 pm From: "C.Steamer" <[EMAIL PROTECTED]> Basically I have this program that runs the following code. I get the error that you see at the bottom there. The thing is I don't get it all the time only once and a while. I have heard that switching between indeterminent mode and determinate mode can cause some resizing problems. I have heard of a solution to set the String to null while in determinate and set it to the empty string when in indeterminate mode. I tried that and it doesn't seem to work. I might have done it wrong. I suspect that I am only running into problems once and a while because the indeterminate bar is in the middle of the progress bar when It exits indeterminate mode causing some problem with the string of non indeterminate mode. I don't know forsure. Also if I comment out the indeterminate stuff, it works fine. but I would like to be able to use this feature. Any suggestions? Thanks This is where I create the progress Bar JProgressBar progressBar = new JProgressBar(); progressBar.setStringPainted(true); This is where I use the progress bar panel.getProgressBar().setIndeterminate(true); int totalFiles = countNonHiddenFiles(file); panel.getProgressBar().setIndeterminate(false); panel.getProgressBar().setMinimum(0); panel.getProgressBar().setValue(0); panel.getProgressBar().setMaximum(totalFiles); recurseDirectories(file); This is the error I get when running the program. java.lang.NullPointerException at javax.swing.plaf.basic.BasicProgressBarUI.updateSizes(Unknown Source) at javax.swing.plaf.basic.BasicProgressBarUI.getBox(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsProgressBarUI.paintIndeterminate(Unknown Source) at javax.swing.plaf.basic.BasicProgressBarUI.paint(Unknown Source) at javax.swing.plaf.ComponentUI.update(Unknown Source) at javax.swing.JComponent.paintComponent(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ========================================================================== TOPIC: Obtaining derived classes http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/daa11ba437b8878b ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 8:08 pm From: EjP <[EMAIL PROTECTED]> Is there a way to get a list of classes derived from a particular base class? Something like Class c = Class.forName("BaseClass"); Class d[] = c.getDerivedClasses(); //I know this doesn't work Any advice would be appreciated. Thanks, E ========================================================================== TOPIC: writeObject and readObject problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e6fc9480a3a7f42a ========================================================================== == 1 of 2 == Date: Tues, Sep 21 2004 8:12 pm From: "juicy" <[EMAIL PROTECTED]> i have modified the server like below, class Connect extends Thread { private Socket client = null; private ObjectInputStream ois = null; private ObjectOutputStream oos = null; public Connect(Socket clientSocket) { client = clientSocket; try { ois = new ObjectInputStream(client.getInputStream()); oos = new ObjectOutputStream(client.getOutputStream()); } catch(Exception e1) { try { client.close(); }catch(Exception e) { System.out.println(e.getMessage()); } return; } this.start(); } public void run() { Object x = null; try { x = ois.readObject(); ois.close(); oos.writeObject(x); oos.flush(); oos.close(); client.close(); } catch(Exception e) {System.out.println(e.getMessage());}//an exception message is printed out here } } i get an exception message : Descriptor not a socket: socket write error == 2 of 2 == Date: Tues, Sep 21 2004 8:15 pm From: "juicy" <[EMAIL PROTECTED]> I have modified the server like below, class Connect extends Thread { private Socket client = null; private ObjectInputStream ois = null; private ObjectOutputStream oos = null; public Connect() {} public Connect(Socket clientSocket) { client = clientSocket; try { ois = new ObjectInputStream(client.getInputStream()); oos = new ObjectOutputStream(client.getOutputStream()); } catch(Exception e1) { try { client.close(); }catch(Exception e) { System.out.println(e.getMessage()); } return; } this.start(); } public void run() { Object x = null; try { x = ois.readObject(); ois.close(); oos.writeObject(x); oos.flush(); oos.close(); client.close(); } catch(Exception e) {System.out.println(e.getMessage()); //an exception message is printed out here } } } i get an message: Descriptor not a socket: socket write error what cause the error occur? How to solve it? ========================================================================== TOPIC: A question about practical Java programming books http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d9f92694ab8e3228 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 8:13 pm From: "Jim" <[EMAIL PROTECTED]> I am new to the Java programming world. I have learned the basics of the Java language. I am looking for some 'practical' Java programming books. There are many excellent java books, but all of them are about the syntax of the language and OOP. The problem that I, and I think many new programmers, have is in the compiling and running even the simplest Java programs; setting classpath, directory structure and other practical aspects. There are many practical programming books for C/C++, but I haven't found any books that covers these topics for Java. Although setting classpath seems very easy, but many new programmers have problem with it. More specifically I am looking for a book ( or online resources, I prefer books though !) which covers the following topics: The java compiling and running environments, command line arguments, tips and practical considerations for setting environmental variables in different platforms: Unix/Linux, Windows, proper ways of designing directory structures and packages, the meaning of compile and run-time error messages; basics of IDEs and concepts of work space and projects, introduction to the popular IDEs, etc I'd appreciate if any body can help me! Thanks Jim ========================================================================== TOPIC: Java books http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7f9c000f41c6b160 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 8:29 pm From: "Jim" <[EMAIL PROTECTED]> Hello All, I am going to buy a few Java books which covers the following topics in good detail for intermediate to advanced programmers: Networking Multithreading JDBC Servlets and JSP J2EE Practical tips GUI I know that there many good books in the market and there some overlap in their coverage, but I want to buy minimum number books. Thanks for your help ! Jim ========================================================================== TOPIC: compiling java source http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9ed74ee3ba9401e9 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 8:32 pm From: "perkal" <[EMAIL PROTECTED]> Hi all, I need to compile a simple java source file from within a java program. Does anyone know how to do this? Is there somekind of an API that ISVs use to develop compilers, like jbuilder, etc.? TIA, perkal ========================================================================== TOPIC: Basic Struts logging http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd2223a4c1cd5aa8 ========================================================================== == 1 of 1 == Date: Tues, Sep 21 2004 8:51 pm From: fishfry <[EMAIL PROTECTED]> I'm learning Struts and I've got a simple example app running. I wanted to get logging working, so in the perform() method of my Action I put the code: ActionServlet as = getServlet(); as.log("hello world"); This compiled with no errors and ran without any problem; but the string was not written to either of the log files catalina.out or localhost_log.2004-09-21.txt (this is on Tomcat). Any hints or clues about how to get simple logging working? I looked at log4j and commons-logging but I want to start simpler. ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com
