comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * c:url param encoding problem: £ (UK currency symbol) - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6fa3c5d551e4916a * UTF of Java strings? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/affc243ccd92519f * Inconsistent behaviour - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9c8116ab0af1b9af * WSDL and java client - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/969ae4b72652550f * Garbage collector quiz - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8540975084df1f47 * Urlconnection Problem / more local IP's - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/57cefbcc819c1235 * To change the default font of HTML editor kit without altering the edited HTML - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3712e401150506ef * emacs Vs Eclipse? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/58b6f53b3e1b91e1 * Why can't I get Tomcat to hot deploy? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/61cdbd0946791b2e * [JSP]: Including HTM files - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1536e92d3a75c01a * To enable system wide swing antialiasing from inside Java program - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d56581872843e101 ========================================================================== TOPIC: c:url param encoding problem: £ (UK currency symbol) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6fa3c5d551e4916a ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 9:16 am From: Paul Lutus <[EMAIL PROTECTED]> Brian Dobby wrote: > Hi, can anyone explain what's going on here? > > I have a jsp which contains a <c:url> tag with a <c:param> tag. If the > value of the c:param contains £ (0xa3, the UK currency symbol, in case > it doesn't display in your browser...), the encoded value in the > generated HTML appears as %c2%a3. If the value is passed to a > subsequent page, then passed back, it appears as %c2%a3%c2%a3. > > The app is running on Tomcat 5 under Windows in the UK. No special > encoding is requested anywhere (e.g. jsp page directive). A typical browser cannot be expected to reliably render a symbol that is outside the old-style ASCII 7-bit character set. This can be dealt with in any number of ways, most problematical or erratic, but it is much better to emit the appropriate HTML character entity -- £ -- which, by virtue of having been composed entirely of ASCII 7-bit characters, will display properly on most browsers. Also, the value you specify (0xa3) is not the UK currency symbol in all character sets. The fact that it displays correctly in some cases is a matter of luck. Relying on a character constant > 128 is just asking for trouble. -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: UTF of Java strings? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/affc243ccd92519f ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 9:35 am From: "John C. Bollinger" <[EMAIL PROTECTED]> Malcolm Dew-Jones wrote: > hardwares. And in fact the hype was true because NT did support multiple > hardwares. It supported at least 2 initially, Intel 386 (&etc) and Alpha. > I believe there was at least one other at some point. MIPS, if I recall correctly. John Bollinger [EMAIL PROTECTED] ========================================================================== TOPIC: Inconsistent behaviour http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9c8116ab0af1b9af ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 9:36 am From: Carl Howells <[EMAIL PROTECTED]> Tor Iver Wilhelmsen wrote: > Carl Howells <[EMAIL PROTECTED]> writes: > > >>Razvan wrote: >> >>> public static void main(String args[]) throws IOException > > >>That's allowed because it actually makes sense for non-static methods. > > > But main() /is/ static... Did you read what I said? It's allowed because it makes sense for methods that can be overridden. And there's no special case disallowing it for methods that can't be overridden. I was quite clear. I said exactly what I meant to, and it was correct. ========================================================================== TOPIC: WSDL and java client http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/969ae4b72652550f ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 9:38 am From: [EMAIL PROTECTED] (Fran) Hello all, I have a problem to call a Webservice. I only have the WSDL file that describes the WebService. I have not problem to call common Webservices with simple data types as String, int, boolean... However, in this case in the <wsdl:types> appears complex types represented as schemas. How could I call this type of WebService? Having a look to the WSDL file, the input and output parameters are schemas, however it doesn´t exist xml or schema types in java to develop the Webservice client. What data type should I send to the Webservice? Thanks a lot and best regards, Fran. This is a part of the WSDL file. <xsd:element name="E_TAB_ADDRESSES" minOccurs="0"> - <xsd:complexType> - <xsd:sequence> <xsd:element name="item" type="BAPIBUS1006_ADDRESS" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /> </xsd:sequence> </xsd:complexType> </xsd:element> ========================================================================== TOPIC: Garbage collector quiz http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8540975084df1f47 ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:10 am From: Thomas Fritsch <[EMAIL PROTECTED]> So it was more a "for loop quiz" than a "garbage collector quiz". ;-) SK wrote: > The loop runs from 10 to 0 inclusive, that's 11 by my reckoning. > > "Razvan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> >>Take a look at the following code: >> >>public class CDummy >>{ >> public static void main(String args[]) >> { >> System.out.println("CDummy."); >> for(int ii=10; ii>=0; ii--) >> { >> String tmp = Integer.toString(ii); >> System.out.println(tmp); >> } >> System.out.println("END"); >> } >>} >> >>When the program reached the line that prints "END", how many 'tmp' >>string objects are elligible for >>garbage collection ? ========================================================================== TOPIC: Urlconnection Problem / more local IP's http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/57cefbcc819c1235 ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:10 am From: John Davison <[EMAIL PROTECTED]> Testbm wrote: > Hello, > i have got a problem. I have virtuell IP's on a mischine, and I want use one > special IP for outgoing requests with UrlConnection. Does anyone know, how I > can do it. > > > Greetings Markus I spent a little bit of time looking into this. After reading through some of the source code for HttpURLConnection, URLConnection and URL, it looks like you would need to create a custom URLStreamHandler (which bind()s to the IP address you want when you connect) to pass to a URL constructor, of which later you would use getConnection() to obtain the HttpURLConnection. Investigating the source code to these classes should lead you to the result you want. John Davison ========================================================================== TOPIC: To change the default font of HTML editor kit without altering the edited HTML http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3712e401150506ef ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:16 am From: [EMAIL PROTECTED] (Daniel Polansky) Is there a way to change the default font of HTML editor kit without altering the edited HTML? In this news group, I have only found solutions that altered the edited document to have a different font; there should be a better way. Thanks. ========================================================================== TOPIC: emacs Vs Eclipse? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/58b6f53b3e1b91e1 ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:32 am From: "Will Hartung" <[EMAIL PROTECTED]> "Yakov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What kind of question is this? It's like asking "why use Java for a > project that has 500-classes if I can do everything in assembler?" > > If you want to be productive, use Eclipse or any other Java IDE. If > you want to be one of these proud die-hard vi/emacs gurus who will > rather memorize 50 keystrokes than GUI menus of an IDE - go ahead, but > remember that using an IDE with its helps, debugging, and other bells > and wistles is also a way to learn the language while emacs/vi is > just a text editor. I'll bite... emacs has all of those windows and menus and other things. You can mouse your way to hog heaven. All of the IDE's have (I would hope) a gazillion keystroke shortcuts, so that folks can actually be productive in their day to day work with them. The advantage of using a keyboard dominant interface versus a GUI dominant interface is simply determination. If you know what you want to do, then a smart keyboard shortcut or key sequence will always be more efficicient and consistent than a GUI action. That's because all of the keys on the keyboard don't move, they're always in the same places. You have muscle memory telling you where the keys are. GUIs by their very nature are always relative. You always move the mouse a different amount for each command, even the same command, over and over. You have to make sure that the mouse is where you need it to be, then click, and if it's something like a pulldown menu, you then have to move the mouse again. Aiming it everytime. Overshooting the object, correcting, coming back, clicking, hoping the click registered, etc. A routine task that has a lot of guesswork. Try working your gui quickly and see how much error shows up in your input. Any competant typist can type with their eyes closed, that's impossible with a GUI. If a colleage walked in right now, I could look up at him, listen to what he says, and continue typing this memo, and finally send it with a keystroke. When you know what you want to do, the keyboard lets you execute your commands more easily, more efficiently. I walk up to a colleague, ask them to open up SomeFile.java, and they're off hunting and searching for the thing in an explorer window, a window with zillions of files in it. It is the most frustrating experience to watch. He knows the file, he knows it's exact path, but still he has to hunt for it, search for it, scroll for it. Think about what your eyes are doing when you hunt for a file that you know the name of. Just type the damn file name. With auto complete, I could probably type S-<tab> and have it come up. ^X^F^A^K/e<tab>/Wo<tab>/e<tab>App<tab>c<tab><tab><tab><tab>/So<tab><enter> That's the full path name, with minimal hunting, no scrolling, and the hands just do the work subconsciously. Also, that sequence will ALWAYS work, no matter what directory I'm in, where the emacs window is on the screen, etc. And when it doesn't work, I'll get an ear full of beeps showing the error of my ways. So, simply put, there is madness to our methods. A well intergrated keyboard interface is far far more efficient than a GUI will ever be. Anything that make you take your hand off the keyboard is slowing you down. Obviously we're talking about interface where keyboards are appropriate, not paint programs for example. GUIs are fine for exploring unknown areas. They're fine for one off, rarely used interfaces. But when you know what you want, just type it in. I mean, if your GUI is so fabulous, why aren't you typing with your mouse? Regards, Will Hartung ([EMAIL PROTECTED]) ========================================================================== TOPIC: Why can't I get Tomcat to hot deploy? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/61cdbd0946791b2e ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:33 am From: [EMAIL PROTECTED] (Ben) So I know Tomcat is able to hot deploy but for some reason can't get mine to do it. I've installed several different versions on a few different computers and have "autoDeploy=true" in my server.xml file and I always have the same problem. What am I missing? (I'm running Tomcat on Windows) Ben ========================================================================== TOPIC: [JSP]: Including HTM files http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1536e92d3a75c01a ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:42 am From: "Ralf Koms" <[EMAIL PROTECTED]> Forget that posting... JSP is a server sided technique... If someone knows a JavaScript solution to that - it is appreciated... ========================================================================== TOPIC: To enable system wide swing antialiasing from inside Java program http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d56581872843e101 ========================================================================== == 1 of 1 == Date: Mon, Oct 11 2004 10:50 am From: [EMAIL PROTECTED] (Daniel Polansky) Since Java 1.5.0 it is possible to enable system wide swing antialiasing by using the command line option javaw -Dswing.aatext=true ... I have tried to achieve the same from inside the Java application, upon user demand, by System.setProperty("swing.aatext","true"); without any success. Is there a working way to do that? Thanks. ======================================================================= 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
