comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Does anybody konw jkjni.dll file about Tomcat - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9b6eafd6558f120f * create stand alone application - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/aa0f7e4767471263 * Send and retrieve pictures from my computer at home using my cell - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6e9842e6a7341b7 * Is this a bad restart() idea? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4e2648af56dce013 * Advanced question about generics - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70947db3058ccce1 * opinion on coding standard - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a * Bag from JavaOne 2003 - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5054f42bc91990ac * Displaying Images in Velocity Templates - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cb1fc33e3338a6cc * XML catalog system - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f91fae26f2cd849a * how to response to user's mouse click on JTabbedPane's tabTitle? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c7846fed0be53d2a * RMI problems - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1c84cd8055b3a71a ============================================================================== TOPIC: Does anybody konw jkjni.dll file about Tomcat http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9b6eafd6558f120f ============================================================================== == 1 of 1 == Date: Wed, Nov 24 2004 9:56 pm From: "MaoXuePeng" I want a jkjni.dll file used to do some test about Tomcat, anybody know that? Can you mail it to me? My mail is [EMAIL PROTECTED] Thanks! MaoXuePeng. ============================================================================== TOPIC: create stand alone application http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/aa0f7e4767471263 ============================================================================== == 1 of 3 == Date: Thurs, Nov 25 2004 3:24 am From: Andrew Thompson On Wed, 24 Nov 2004 23:53:24 +0200, tomer wrote: > maybe I will need a installation program.....(can i do it)? <http://www.physci.org/codes/javafaq.jsp#jws> HTH -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane == 2 of 3 == Date: Wed, Nov 24 2004 8:51 pm From: Steve Sobol Andrew Thompson wrote: > On Wed, 24 Nov 2004 23:53:24 +0200, tomer wrote: > > >>maybe I will need a installation program.....(can i do it)? > > > <http://www.physci.org/codes/javafaq.jsp#jws> that's one way, using an install builder or JAR to EXE utility is another, using the Invocation API is a third. More than one way to skin a cat. :) -- JustThe.net Internet & New Media Services, http://JustThe.net/ Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED] PGP Key available from your friendly local key server (0xE3AE35ED) Apple Valley, California Nothing scares me anymore. I have three kids. == 3 of 3 == Date: Thurs, Nov 25 2004 5:28 am From: Andrew Thompson On Wed, 24 Nov 2004 20:51:53 -0800, Steve Sobol wrote: > Andrew Thompson wrote: >> On Wed, 24 Nov 2004 23:53:24 +0200, tomer wrote: >> >>>maybe I will need a installation program.....(can i do it)? >> >> <http://www.physci.org/codes/javafaq.jsp#jws> a) > that's one way, using an install builder or JAR to EXE utility is another, b) That is not a good solution generally.. <http://www.physci.org/codes/javafaq.jsp#exe> > using the Invocation API is a third. Which makes it a 'chicken and egg' problem. You then need an "...icon on the desktop." to launch the invoking class. How are you going to get that? We come back to a) or b). Of the two, a) is the best solution for a Java application. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ============================================================================== TOPIC: Send and retrieve pictures from my computer at home using my cell http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6e9842e6a7341b7 ============================================================================== == 1 of 1 == Date: Wed, Nov 24 2004 7:54 pm From: [EMAIL PROTECTED] (Jimmy) Just wondering if anyone know if telcos (Bell, AT&T Rogers, Telus, etc.) provide public WAP Push Gateway or MMS Gateway service in the Greater Toronto Area? Just recently picked-up a cell phone with camera. I like to send pictures directly to my linux box at home, whether is re-directed through email or http by telco, so I can delete them from my phone to save space. Or, I can load it back from my server at home and see on my cell again. My linux box already has mail and web server running so I can recieve as email or have a little cgi script to save pictures to file. ============================================================================== TOPIC: Is this a bad restart() idea? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4e2648af56dce013 ============================================================================== == 1 of 1 == Date: Wed, Nov 24 2004 8:58 pm From: Chris Smith DeMarcus <[EMAIL PROTECTED]> wrote: > static void restart() > { > _mainFrame.setVisual( false ); > _mainFrame.dispose(); > MySoftware.main( new String[0] ); > } > > > Now I can can call restart() from anywhere in the software and > have a restart. > > The question is; is this bad programming? Yes, it's a really bad idea. Just the problems that first come to mind are: 1. This fails to terminate any previous threads, which means you have to avoid multithreading like the plague (bad) or risk random modifications of shared state that you don't want (very bad). 2. You've failed to reset any static variable to their initial values, which could randomly break your code. 3. Your existing code may continue to run after the method returns. If nothing else, you should at least find a way to safely terminate the current thread at the end of that method. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation ============================================================================== TOPIC: Advanced question about generics http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70947db3058ccce1 ============================================================================== == 1 of 1 == Date: Thurs, Nov 25 2004 12:48 pm From: "Vincent Cantin" Hello, I have a class Server<C extends Connection> that accepts some connections are for each of them creates an instance of C. Problem : the implementation of the class need to have C.class in order to create its instance but it doesn't know it unless I ask the user of my class to give it in parameter. So the user of the class write something like that : Server server = new Server<MyConnection>(MyConnection.class); but I would like him to only write something like that : Server server = new Server<MyConnection>(); Is there something in the language of Java 1.5 that can do implicitly what I want ? Thank you, Vincent ============================================================================== TOPIC: opinion on coding standard http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a ============================================================================== == 1 of 1 == Date: Wed, Nov 24 2004 9:09 pm From: [EMAIL PROTECTED] (Jared MacDonald) > You shouldn't mix tabs and spaces. I mean who uses spaces to indent their > blocks? Ridiculous. Do you actually sit there typing t r y { (newline) > (space) (space) (space) (space) (space) (space) No. Every modern editor (and not-so-modern: emacs, e.g.) has the ability to map the "tab" key to a configurable number of space characters. As for why to use spaces over tabs, open up any .java file from the JDK's src.zip, in any editor. It's a mess. Same goes for any organization that uses tabs. ============================================================================== TOPIC: Bag from JavaOne 2003 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5054f42bc91990ac ============================================================================== == 1 of 1 == Date: Thurs, Nov 25 2004 12:02 am From: Shawn Silverman I couldn't decide which newsgroup to put this in, so if anyone has a better suggestion, I'll move this elsewhere. That said, I was wondering if anyone out there has the bag from JavaOne 2003 that is laying around unused somewhere. Thanks, -Shawn ============================================================================== TOPIC: Displaying Images in Velocity Templates http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cb1fc33e3338a6cc ============================================================================== == 1 of 1 == Date: Wed, Nov 24 2004 10:18 pm From: [EMAIL PROTECTED] (mdh) I am trying to learn the mechanics of creating servlets using Apache 2.0.52 and Tomcat 5.0.28. I have a very simple servlet class based upon VelocityServlet that has a basic loadConfiguration() method and a handleRequest() method to handle POST/GET requests sent to the servlet by the following web.xml mapping: <servlet-mapping> <servlet-name>FirstApp</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> Of course, this sends ALL incoming requests from the browser for my host to the servlet, including requests generated by <IMG src="/images/mylogo.gif"> type tags in the HTML of pages being sent back to the client. My servlet doesn't look for image references in requests to call a special method to load and stream these resources back to the client. I was hoping there was a simple way for static content to be rendered directly by the Tomcat server engine rather than being passed to my servlet. However, if I try to make the <url-pattern> more specific like this <servlet-mapping> <servlet-name>FirstApp</servlet-name> <url-pattern>/do*</url-pattern> </servlet-mapping> I get 404 errors from Tomcat back through Apache to the browser saying "/do" cannot be found. After looking through a few example Velocity template file pages on the web and in the distribution, I thought the $link.URI() function in Velocity Tools was the trick for doing this but my page just displays a placeholder for my image and a View Source shows the unaltered text of my login.vm file. All of the examples in the variety of books I'm looking at are so overly simplified that they only show pages being returned with no embedded URL references to other images, etc. so the servlet side of the example never has to explain how to do this. Is there a common naming scheme and paradigm I should implement in my web.xml file <servlet-mapping> to avoid having to include logic in my servlet to handle reqeusts for image content? In effect, references like the following https://firstapp.mydomain.com/do?action=login https://firstapp.mydomain.com/do?action=search https://firstapp.mydomain.com/do?action=logout would pass to my servlet for specific processing while HTML pages sent back to the client with references such as https://firstapp.mydomain.com/images/mylogo.gif https://firstapp.mydomain.com/images/cautionsign.gif would cause Tomcat itself to send these resources back to the client browser without my servlet having to bother handling them. stratfan @ mindspring.com ============================================================================== TOPIC: XML catalog system http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f91fae26f2cd849a ============================================================================== == 1 of 2 == Date: Wed, Nov 24 2004 10:19 pm From: [EMAIL PROTECTED] (terry) Anyone can give me a hand? == 2 of 2 == Date: Thurs, Nov 25 2004 7:19 am From: Andrew Thompson On 24 Nov 2004 22:19:40 -0800, terry wrote: > Anyone can give me a hand? I'm no expert on the area of development to which you are refering. OTOH, I have a great deal of experience at getting the most from newsgroups. A couple of tips. Your question sounded like you wanted hand-holding, step-by-step through each aspect of the process. Usenet is a discussion forum as opposed to a help-desk, and your question sounded more appropriate for a help-desk. If you want such personal tuition, offer some cash and I am confident that the relevant people will contact you. OTOH, if you are not prepared/able to pay money, you will need to put more effort into the task and ask specific questions. You might instead ask for links to tutorials, or good search keywords as a start. Work through a tutorial, and post with a specific question when you get stuck. HTH -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ============================================================================== TOPIC: how to response to user's mouse click on JTabbedPane's tabTitle? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c7846fed0be53d2a ============================================================================== == 1 of 2 == Date: Thurs, Nov 25 2004 3:21 pm From: "James" example like when there are 10 tabs inside the JTabbedPane, when user click on tab 1, I want it to display the particular tab's title into JTextField. I try add mouse listener into JTabbedPane but no response when user click on that tab. (nothing display in JTextfield). The JTextField only display out the title when user click on other place of tab except tab title. Part of the code: JTabbedPane tabpnPage = new javax.swing.JTabbedPane(); JTextField txtTabTitle=new JTextField(); //assume this tabpane had add into JFrame and there are 10 JPanel added into JTabbedPane which contain title "1","2",.......and there is also txtTabTitle added into JFrame. tabpnPage.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tabpnPageMouseClicked(evt); } }); private void tabpnPageMouseClicked(java.awt.event.MouseEvent evt) { txtTabTitle.setText(tabpnPage.getTitleAt(tabpnPage.getSelectedIndex())); } == 2 of 2 == Date: Thurs, Nov 25 2004 7:35 am From: Andrew Thompson On Thu, 25 Nov 2004 15:21:04 +0800, James wrote: > example like when there are 10 tabs inside the JTabbedPane, ... A better group.. <http://www.physci.org/codes/javafaq.jsp#cljh> > Part of the code: Others are sometimes able to decipher code snippets, but they are beyond me. Further... > //assume this .. ... I am only prepared to make assumptions about people's code when they are paying me *lots* of money. So instead I suggest you prepare an SSCCE. <http://www.physci.org/codes/sscce.jsp> Note that your example only requires two tabs to display the problem. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ============================================================================== TOPIC: RMI problems http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1c84cd8055b3a71a ============================================================================== == 1 of 1 == Date: Thurs, Nov 25 2004 12:01 am From: [EMAIL PROTECTED] (Max Mustermann) Ok... dumb question... What is a Map and how do I create one?? Max Esmond Pitt <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Max Mustermann wrote: > > Hi all, > > Max > > The ID isn't in the stub and you can't get it from the stub unless your > remote interface provides a method to do so. This is not the answer you > are looking for. In both cases the solution is to run your own Map > mapping stubs to remote objects. RMI won't do this for you (although > obviously it runs such a table itself internally). When you return a > remote object from a remote method it is mangled into a stub and at this > point you should enter it into your map, using RemoteObject.getStub() to > obtain the stub. When you receive a stub you should consult your map to > get back to the remote object. When you unexport a remote object in the > Map it is time to remove it from the Map. > > (The semantics of equals() for remote objects guarantee you that the Map > will work correctly.) ============================================================================== 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
