comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Getting a Java method name - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f306208fd0d73d60 * JSP forward POST requests to new window - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fb92a0ba6a8a1f9d * [jsp]: getProperty - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6230ddcfe0818100 * Swing Pushed Button ImageIcon - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b6e486cfca89448a * String replaceAll fails - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bcb219b705c63680 * J2SE Bluetooth and java comm API - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/16e6786cb0f953d8 ============================================================================== TOPIC: Getting a Java method name http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f306208fd0d73d60 ============================================================================== == 1 of 1 == Date: Tues, Dec 28 2004 10:09 pm From: "shay.bc" not really, notice that i use from my log only the log message and nothing more (like object or level) also i dont need the exception object in my code the log method create it itself and use the StackTraceElement[1] not 0 also the method is static and i use a singleton to avoid from all the preperation in each code segment like: import, get instance, set all config parameters etc. only to log one line at some times i also have the option to set levels different file to write to and start and end entries as a group, but thats beside the point and up to the programmer to decide what and how to do. ============================================================================== TOPIC: JSP forward POST requests to new window http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fb92a0ba6a8a1f9d ============================================================================== == 1 of 2 == Date: Tues, Dec 28 2004 10:25 pm From: [EMAIL PROTECTED] request.getRequestDispatcher(url).forward(request,response); will forward the POST request from previous page to the next page, but they are on the same window. I want to forward the POST request to a new window: i.e. window.open("http://localhost"+"<=url>",'url_win','menubar=no,scrollbars=no,width=800,height=800'); Is it possible? any ideas?? thanks!! == 2 of 2 == Date: Wed, Dec 29 2004 6:34 am From: Andrew Thompson On 28 Dec 2004 22:25:56 -0800, [EMAIL PROTECTED] wrote: > request.getRequestDispatcher(url).forward(request,response); I would like to think this is a repost of "request.getRequestDispatcher(url).forward(request,response); problem" on c.l.j.p some, ..4 and a half hours ago now, taking hints from Ryan Stewart's advice to ask an actual question. Unfortunately, since you merely reposted the text, that seems unlikely. Why did you repost it? [ F'Ups set to c.l.j.help ] -- 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: [jsp]: getProperty http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6230ddcfe0818100 ============================================================================== == 1 of 1 == Date: Wed, Dec 29 2004 6:28 am From: Andrew Thompson On Wed, 29 Dec 2004 00:02:46 -0600, Ryan Stewart wrote: > "Marcus Reiter" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] .. >> I can't find a way, but the prof. said we should ... .. >> What do you think? > ..If > you're not supposed to use scriptlets or other libraries, and each key has > to correspond to multiple bean values... I'm just not seeing a clean way of > doing it. Since nobody else has jumped into this thread, I assume that they > aren't having any bright ideas either. Dunno if it is bright or not, but I'd take it back to the prof., explain your current strategy and reasons for it, and ask her/him where you are going wrong. It could turn out to be a simple misunderstanding of the requirement or constraints. -- 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: Swing Pushed Button ImageIcon http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b6e486cfca89448a ============================================================================== == 1 of 2 == Date: Tues, Dec 28 2004 10:34 pm From: [EMAIL PROTECTED] Andrew, Thanks for the reply. I have now re-written this and have it working now. I used setInsets which laid out the button images nicely. Thanks again for the help, Johnston Andrew Thompson wrote: > On 27 Dec 2004 03:43:50 -0800, [EMAIL PROTECTED] wrote: > > > class NewButton extends JButton { > ... > > public void paint(Graphics g) { > > You should not be overriding paint() in a Swing component. > <http://www.physci.org/guifaq.jsp#2.4> > > I suggest you work through some of the Swing tutroials, linked > to in the GUI FAQ. > > 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 2 == Date: Wed, Dec 29 2004 7:42 am From: Andrew Thompson On 28 Dec 2004 22:34:08 -0800, [EMAIL PROTECTED] wrote: > I have now re-written this and have it working now. Excellent. > Thanks again for the help, You are welcome. -- 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: String replaceAll fails http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bcb219b705c63680 ============================================================================== == 1 of 1 == Date: Wed, Dec 29 2004 2:45 am From: "Josh Martin" Tim - Welcome to the wonderful world of regular expressions in Java :) Escaping characters is a bit unwieldy - I always forget the part of setting the original String (i.e. techName = techName.replaceAll...). Josh "Tim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > The bug was mine/documentation. > > public String replaceAll(String regex,String replacement) > Replaces each substring of this string that matches the > given regular expression with the given replacement. > > I assumed they meant "replacement [String]" but they meant > "replacement [special set of characters]". Where the special set of > characters is at least partially defined in the doc for the Matcher > class and means you'll get unexpected behavior if the replacement > String contains \ or $ and you did not realize the behavior is that of > Matcher.replaceAll. > > The correct solution for me was > techName = techName.replaceAll("[']", "\\\\'"); > as I needed to change each ' to a \' for use as parameters to a > javascript function. > > Maybe someone has written a RegEx class that uses methods and > attributes rather than special characters to carry out its functions? > Thanks for the feedback, > TimJowers > ============================================================================== TOPIC: J2SE Bluetooth and java comm API http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/16e6786cb0f953d8 ============================================================================== == 1 of 2 == Date: Wed, Dec 29 2004 8:52 am From: Eta Hello > What happens if you use the exact same code in the example and just > change the message String? > Normally I use the exact same code in the example! If I change the message String the result is the same! Eta == 2 of 2 == Date: Wed, Dec 29 2004 8:54 am From: Eta Hello, I do not upload the J2ME application on the Phone at the moment. But if I try to send a file from OS Bluetooth manager a receive e message on e phone same as an SMS....so why my application can't do the same result?? Eta > > What is you phone application ? J2ME ? What is reading the text you send > over the BT connection ? If there is no program listening, then you > won't see anything on the phone. > > -- > JSC ============================================================================== 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
