Message from Victor Smootbank Most recent post: 10/28/2007 30 authors and 73 replies. JAVA, C++, BASIC V2 on a Commodore 64, women are simply to stupid to program a computer. If a woman can program a computer, "she" is a male to female crossdresser or a shemale. That's true. Real women are only useful to work at the atomic ovens, that's a job for women!!! read more about Why are women too dumb to program a computer???
Message from Dave Stallard Most recent post: 10/28/2007 13 authors and 22 replies. OK, I finally caught up to JAVA 1.5/6. (Delay had to do with available tools and my intolerance for Eclipse, but I have reconciled myself to it now). Question: Eclipse gives me a compiler error for: List list = new ArrayList(); for (String s : list) System.out.println(s); It says "Type mismatch: Cannot convert from element type Object to String". It's fine if I change decl of list to List<String>, or coerce list to List<String> in the loop decl; Is this an *actual* compiler error in the JAVA spec? Is JAVA actually that hissy about the for-each variable? The compiler does not mind the code below, even though it causes a runtime type-cast error. So why can not it insert the cast to String in the loop setup? Am I missing something? Dave List ar = new ArrayList(); ar.add(1); List<String> list = ar; for (String s : list) Utils.log(s); read more about No coercion in for-each loop?
Message from vijay.kumar.75in Most recent post: 10/28/2007 35 authors and 732 replies. Hi All, Today I have downloaded a SWT Software which is great to its features. You can learn many GUI details out of it. The basic functionality is it lists IP Addresses of the remote PC's your system is accessing. You may find the project under sourceforge.net http://nettymaster.sourceforge.net/ You can customize this software, please let me know your views read more about Great SWT Program
Message from satishchandra22 Most recent post: 10/28/2007 3 authors and 3 replies. Hi After I have finished my Graduation, I joined in a software company and they put me into testing project and I am a software test engineer for about 16months testing os products...and no way related to coding But I am worried if I have career growth in Software Testing and shall I move to my interest in JAVA/J2EE - JAVA programming ? and if I move will be able to code anything ? Please help. read more about Testing to Coding
Message from Rupesh Most recent post: 10/28/2007 22 authors and 195 replies. Is there any way to notify a particular thread to wake up? All the waiting threads are same priority. thanks read more about notifying particular thread to wake up.
Message from jerry Most recent post: 10/27/2007 5 authors and 5 replies. Class[] argTypes = { String[].class }; JAVA.lang.reflect.Method method = ClassLoader.getSystemClassLoader().loadClass(className).getDeclaredMethod("main", argTypes); Object[] args = { new String[0] }; method.invoke(null, args); what is wrong with this code? I have a JAVA application (JPanel) and it work as a main window and then, im trying to launch a JAVA application (JFrame) but when I close the JFrame window, the main window also terminated. is somebody know this?thanks. read more about Problem with classloader
Message from riva Most recent post: 10/27/2007 3 authors and 3 replies. Normally we write to files in the form of characters. Is there any way so that we can write data to the file in the form single bits like five `0's and then six `1's etc. read more about Writing single bits to a file
Message from jaja Most recent post: 10/27/2007 6 authors and 7 replies. Hello, I have built a web service in eclipse. From one service, all I do is try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } But then I get the following exception: JAVA.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.JAVA: 1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.JAVA: 1189) at JAVA.lang.ClassLoader.loadClassInternal(Unknown Source) at JAVA.lang.Class.forName0(Native Method)... etc... I use Oracle 9.x, I have classes12.zip in my class path, I tries to change it to classes12.jar, I tried to put it under tomcat local directory and to point the path to there, but nothing worked. Interesting is the fact that if I run the same code exactly outside the web service method, for example from the test class main function, everything is fine. So I suspect it is a configurable issue. But what is it??? Thanks! read more about OracleDriver load fails from a Web Service On tomcat
Message from Wojtek Most recent post: 10/27/2007 8 authors and 11 replies. If I have a class such as: ------------------ public class MyClass { public MyClass() { super(); } public void printThis(String parm) { System.out.println(parm); } } ------------------ I can run the method like this: (new MyClass()).printThis("Hello World"); Since printThis only uses passed parameters, I could also have this: ------------------ public class MyClass { public MyClass() { super(); } public static void printThis(String parm) { System.out.println(parm); } } ------------------ and then I can run the method like this: MyClass.printThis("Hello World"); Both ways are valid, and functionally equivalent. The main difference being that the first way instantiates a class whereas the second does not. Thoughts? -- Wojtek :-) read more about To static or not to static
Message from mamta81 Most recent post: 10/27/2007 3 authors and 3 replies. hi all, I am trying to insert data into a table using preparedStatement because I have to insert single quote(') in one of the columns.Whenever I am a trying to insert a single quote it isn't working though in other columns new data gets inserted. the query is sqlQuery="insert into po_item(po_no,po_item_cd,po_itemdesc,po_item_uom,po_item_unit_cost,po_item_qty,po_item_tax,po_item_dis,po_item_cost,SRL_NO)values (?,?,?,?,?,?,?,?,?,?)"; desc po_item Name Null Type ------------------------------ -------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PO_NO NOT NULL NUMBER(5) PO_ITEM_CD NOT NULL CHAR(12) PO_ITEMDESC VARCHAR2(2000) PO_ITEM_UNIT_COST NUMBER(12,2) PO_ITEM_UOM CHAR(6) PO_ITEM_QTY NUMBER(12,2) PO_ITEM_COST NUMBER(12,2) PO_ITEM_TAX NUMBER(5) PO_ITEM_DIS NUMBER(4,2) PO_ITEM_RECV_QTY NUMBER(10) SRL_NO NUMBER(2) db_connection.setPreparedStatement(sqlQuery); db_connection.getPreparedStatement().setInt(1,po_no); db_connection.getPreparedStatement().setString(2,poTable.getValueAt(i, 0).toString().trim()); db_connection.getPreparedStatement().setString(3,poTable.getValueAt(i, 1).toString().trim()); db_connection.getPreparedStatement().setString(4,poTable.getValueAt(i, 2).toString().trim()); db_c read more about prepared statement
Message from Mark Space Most recent post: 10/27/2007 6 authors and 12 replies. Here's a problem that's driving me nuts. The program below executes correctly as is. There's one line in the xsl string commented out. If you uncomment that line, the output changes. It adds the line "I can not jump." That's the value of the <jump> tag. But I do not ask for this tag to be put in the output anywhere in the xsl file, so I do not understand why it's appearing in the output. Can anyone shed some illumination on this conundrum?package xslweirdness; import JAVA.io.StringReader; import JAVAx.xml.transform.Transformer; import JAVAx.xml.transform.TransformerFactory; import JAVAx.xml.transform.stream.StreamResult; import JAVAx.xml.transform.stream.StreamSource; public class Main { private final static String xml = "<?xml version=\"1.0\"?>\n" +" <monkey>\n" +" <boy can=\"no\">\n" +" <jump>I can not jump.</jump>\n" +" </boy>\n" +" </monkey>"; private final static String xsl = "<xsl:stylesheet " +"xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" " +"version=\"1.0\">\n" +" <xsl:output method=\"html\"/>" +" <xsl:template match=\"/monkey\" >\n" +" Jumping: <xsl:value-of select=\"boy/@xxxxxxxxxxx\" />\n" // +" read more about Any XSL experts?
Message from lyallex Most recent post: 10/27/2007 4 authors and 9 replies. Hello I have the following interface in my working directory (C:\JAVA>) public interface Foo { public void doSomething(); } As you can see, there is no expicit package definition so this class is in the default package. Why do I want to do this ? well it's part of an exploration of classloading and the classloader architecture and for the fist time in I do not know how many years I'm working on the command line without Eclipse to tell me when I did something stupid. To cut a long story short I wanted to refer to this interface in a packaged class and I can not because you can not apparently use classes in the default package from within a named package. I'm trying to understand why this is but I'm not getting too far, I'm sure I did know it once, a long time ago but I have sure forgoten it now. Why can not you use classes in the default package from within a named package. Thanks read more about Way too much time spent with Eclipse
Message from javadev Most recent post: 10/27/2007 2 authors and 2 replies. Hello all I have the following piece of code as part of my .jar file which is then compiled into a .NET dll using IKVM. The code runs fine when run as a jar but on using the .NET dll I receive an IllegalBlockSizeException. Apparently the conversion into the dll is causing the error, but I can not figure out what I need to do work around this problem. Any help will be greatly appreciated. Cipher ecipher = Cipher.getInstance("DES"); byte[] raw = "SOMESTR".getBytes(); byte[] result = new byte[8]; int resultIx = 1; int bitCount = 0; for(int I = 0; i < 56; i++) { boolean bit = (in[6 - i/8]&(1 << (i%8))) > 0; if(bit) { result[7 - resultIx/8] |= (1 << (resultIx % 8)) & 0xFF; bitCount++; } if((i + 1) % 7 == 0) { if(bitCount % 2 == 0) result[7 - resultIx/8] |= 1; resultIx++; bitCount = 0; } resultIx++; } SecretKey mySpec = new SecretKeySpec(result, "DES"); ecipher.init(Cipher.ENCRYPT_MODE, mySpec); byte[] utf8 = "encryptThis".getBytes("UTF8"); byte[] enc = ecipher.doFinal(utf8); // IllegalBlockSizeException here read more about IllegalBlockSizeException when .jar compiled into .NET dll
Message from jwren Most recent post: 10/27/2007 5 authors and 8 replies. Hey guys, I am working on a JSP website on JRE1.4. I am trying to find some good packages to use to speed up development because the project currently uses no framework whatsoever. 'd anyone mind recommending some good packages? So far Struts looks worthwhile. Since I am from a C# background: JRE1.4 can not support Nullable<T>, so what is the best practice for representing null value types? Does JRE1.4 have an alternative to C#'s using statement? Thanks in advance, James read more about JSP Questions
Message from Xiao Ma Most recent post: 10/27/2007 12 authors and 17 replies. A stream may have an underlying stream. For example, FileOutputStream fos = new FileOutputStream("foo"); BufferedOutputStream bos = new BufferedOutputStream(fos); fos is the underlying stream for bos. Now if I call bos.close(), it'll also close its underlying stream. Why should the underlying stream be closed? I can think of some cases where I want to continue to write to the underlying output stream after I close the "outer" output stream. I know it's useful if people do BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("foo")); and you do not have a handle on the underlying stream. But you can always define a variable for the underlying stream. I have a method that allows the caller to pass in an output stream. Then I want to use a BufferedOutputStream to write to it. After that, I should close the BufferedOutputStream before exiting the method. But that closes the output stream passed in by the caller and the caller can no longer write to it. For example, void foo(OutputStream out) { try { BufferedOutputStream bout = new BufferedOutputStream(out); bout.write(blahblah); } finally { bout.close(); // I should close any stream I created but this closes the underlying stream, too. } } read more about Why should close() close the underlying stream?
Message from Kenneth P. Turvey Most recent post: 10/27/2007 3 authors and 3 replies. I'm new to using XML in JAVA, so please forgive me if this is an easy question. I'm using NetBeans and I have written a unit test that just reads in an XML document using the DocumentBuilder class. This is a document I have written myself and I have written a DTD for it as well. So I'd like it to be validated while being read. So, I have called the setValidating(true) method on the DocumentBuilderFactory before getting the DocumentBuilder itself. The problem is that I do not know what to do with the DTD file so that it will be found when the document is being parsed. The DocumentBuilder does not know where the xml file came from so the current directory does not seem right. There does not seem to be anywhere to load the dtd file so that the builder will be able to find it. I'm getting the following error which says to me that this is the problem, but maybe I'm misreading it. org.xml.sax.SAXParseException: Document root element "onlinequiz", must match DOCTYPE root "null". I'm sure that many of you use this stuff all the time. How'd you set up a unit test to make sure a document is being parsed correctly? What do you do with the DTD? Thanks, -- Kenneth P. Turvey <kt-usenet@xxxxxxxxxxx> read more about XML in a unit test
Message from Nicole.Winfrey Most recent post: 10/27/2007 7 authors and 16 replies. I know that the split method is used to produce an array of strings separated by the argument. I'm confused about the split string method in the following cases. String test = "ABC"; String[] arr = test.split(","); What's the value of arr? Is it null or it has arr[0] with the value of "ABC"? String test2 = ""; String[] arr2 = test2.split(","); What's the value of arr2? Is it null or it has arr[0] with the value of ""? read more about split query
Message from Athul Most recent post: 10/27/2007 2 authors and 2 replies. ""MAN+_-WOMAN_+|=SEX WORLD"" ""DATING AND ROMANCE""" ********************************* http://www.freewebs.com/sociwok/ ******************************** http://amigos.com/go/g903136-pmem read more about ""MAN+_-WOMAN_+|=SEX WORLD""
Message from Hosam Aly Most recent post: 10/27/2007 3 authors and 3 replies. Hello, I was playing with some code today, and then I hard-coded the line: System.out.println(String.valueOf(null)); At first, I expected this line to call the overload "String.valueOf(Object)", printing "null" to the output stream. However, I noticed that it called the "String.valueOf(char[])" overload, throwing a NullPointerException. Although my first expectation is incorrect, I am thinking about why the char[] overload was called automatically, and why the compiler did not complain about this being an ambigious call, in the same way it would do had there been another overload like "String.valueOf(Integer)". I guess this either has to do with the JAVA Language Specification, or a decision made for the compiler. Could you please explain to me why the compiler takes this behavior? In my opinion, it would've been safer to complain about it. Am I wrong? Why?Thanks a lot for your help. read more about Why does "String.valueOf(null)" call the array overload?
Message from Dexter Most recent post: 10/27/2007 3 authors and 15 replies. GraphEasyRect was previously available as an applet. Now we've converted it to a desktop standalone application that runs on multiple platforms Windows, Mac, and Linux This tool allows graphing functions in cartesian plane, points of discontinuity having limits are encircled on graph line. You may view and copy the values of the function between a range of x valuesDownload link is http://www.britishcomputercolleges.com/vu/GraphEasyRect.jarIts a JAVA executable file which will require you to have JAVA Runtime Environment on the system to run.Its a complimentry tool so don't hesitate to utilize its featuresOur online gallery of tools include Graphing Polar curves, finding area under curve and graphing in Cartesian planeVisit http://www.britishcomputercolleges.com read more about Download Graphing Utility (Complimentry Copy)
Message from Aryeh M. Friedman Most recent post: 10/26/2007 5 authors and 13 replies. For test data I need a string generator that will generate strings such that the order will be: a b .... z aa ab .... az ba bb .... zz aaa ... zzz ... Does anyone know of a good way to do this? read more about generator sequencial strings
Message from Roedy Green Most recent post: 10/26/2007 14 authors and 29 replies. Has anyone run across an official definition of argument and parameter for JAVA? -- Roedy Green Canadian Mind Products The JAVA Glossary http://mindprod.com read more about parameter vs argument
Message from Lew Most recent post: 10/26/2007 18 authors and 70 replies. In English, the word "its" is the third-person singular neutral genitive. The word "it's" is a contraction for "it is". Programming is an art of precision. -- Lew read more about [OT] "its" vs. "it's"
Message from Aryeh M. Friedman Most recent post: 10/26/2007 4 authors and 13 replies. Is it possible for a JAVA app to change it's classpath at runtime. I tried: System.setProperty("JAVA.class.path","foo") The reason for wanting to try is URLClassLoader won't physically reread a class file if it is in the classpath. See http://groups.google.com/group/comp.lang.JAVA.programmer/browse_thread/thread/793a9146df18365a/ceaa154348f6f271#ceaa154348f6f271 read more about changing the classpath at runtime in code
Message from bluegene Most recent post: 10/26/2007 3 authors and 3 replies. I have created an Explorer(Basic windows style) using RMI and JAVA. On localhost it runs fine , but on remote host it shows some inconsistency. Though files and folders are visible and ok , but their size (in some cases) is 0 . I am unable to track the problem. Source code is available at geocities.com/dev.sushant/rmi for review. (Project is developed in Netbeans and can be easily accessed.) read more about Problem with RMI file Browsing
Message from pedro.checo Most recent post: 10/26/2007 8 authors and 10 replies. Hi, From 1.5 and on, does JAVA automatically intern strings? During a recent team discussion, we thought we read somewhere that this was added to 1.5 as default behaviour, but we weren't sure. By automatically interning I mean that if you've String a = new String("ABC") then String str = new String("ABC") is equivalent to String str = a.intern(); Thus far, we've found nothing to say that this was added. Thanks in advance for your input. read more about Does JAVA automatically intern strings?
From 1.5 and on, does JAVA automatically intern strings?
Message from abhaypatil1 Most recent post: 10/26/2007 9 authors and 10 replies. I'd like to become a member of this group So please consider this mail as my request . read more about Regarding membership
Message from amorgan Most recent post: 10/26/2007 6 authors and 8 replies. I have a JAVA app, running on Windows, with a medium amount of C++ wrapper code doing various arcane and boring things. JProfiler swears that there is not a memory leak in the JAVA. Purify claims that there is not a memory leak in the C++. According to ProcessExplorer, however, we leak memory (or rather, the Private Byte and Working Set keep rising). Some of this might be induced by memory fragmentation, I suppose, but other than that and the thought that Sun's JVM might leak memory (possible?), I'm not sure where to go. I'm currently using Sun's 1.5 JVM. Client and Server mode does not make much of a difference (the amount of memory used goes down, but the increase remains). I have not tested extensively with 1.6, but saw essentially the same behavior with my quick look. Is futzing with the GC parameters going to accomplish anything? Is this just expected behavior? Is the only solution to kill and resume the app on a regular basis? Alan -- Defendit numerus read more about Memory leak in JAVA app
Message from sbq Most recent post: 10/26/2007 5 authors and 7 replies. I am writing some 32 bit integer data in matlab using statements such as: f=fopen('temp','w'); a=int32(23); fprintf(f,'%d',a); fclose(f); and trying to read in in JAVA using: public static void main(String[] args) { // TODO code application logic here File file = new File("C:\\JAVA\\temp"); FileInputStream fis = null; BufferedInputStream bis = null; DataInputStream dis = null; try { fis = new FileInputStream(file); // Here BufferedInputStream is added for fast reading. bis = new BufferedInputStream(fis); dis = new DataInputStream(bis); int a; a = dis.readInt(); System.out.print(a); // dispose all the resources after using them. fis.close(); bis.close(); dis.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }//end catch2 }//end main====================== Now logically, reading a 32 bit integer using this command should work fine, but I am getting out of range values, like, if I am just reading in integer valued 32, it'd rather print 8924558 or something like that, garbage values. I have tried using read other reading methods as well such as readByte, readShort, read etc but only thing that works is readln, which I do not want. It brings in whole line of data, which i do not want. Rather, I need individual integers to be read, perhaps delimited by tabs read more about JAVA Filing related
Message from Felipe Almeida Most recent post: 10/26/2007 5 authors and 5 replies. does anyone know whether we've to download the full eclipse version(eclipse classic, ~140MB) or if we can have the smaller versions(say eclipse for JAVA developers) in order to be able to install and run the plugins? thank you read more about eclipse ide
Message from jhon Most recent post: 10/26/2007 4 authors and 4 replies. Interested in Knowing the Secret Money Making Formula Just Follow the Link Below: http://h1.ripway.com/moneyinfo/ read more about !!!!!! MONEY ONLINE FAST AND LEGALLY !!!!!!
Message from java_help Most recent post: 10/26/2007 2 authors and 2 replies. Hello, I have a question about verisign security in J2EE application deployed on Websphere application server. we are using encryption and decryption using Des algorithm. and we've harcoded the secretekey and doing encryption on that. I want to use verisign degital certificate instead of this hardcoded key in crypto. How to do that? I am just new with transport layer security. If anyone has any idea about how to use verisign security and how to get value from keystore let me know. Thanks read more about verisign security
Message from Christine Mayer Most recent post: 10/26/2007 2 authors and 2 replies. I am using struts-1.3.8 tiles together with Spring, now I wanted to wrote in message a TagHandler that extends "SimpleTagSupport". Eclipse told me I needed to import the jsp-api.2.0.jar from tomcat, so I did. However, this always results in the error: org.apache.jasper.JasperException: /WEB-INF/jsp/myjsp.jsp(1,1) Unable to read TLD "META-INF/tld/struts-tiles.tld" from JAR file "file:myFileLocation": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.tiles.taglib.UseAttributeTei I did some research on the web, there it's said not to include the jsp- api.2.0.jar (but not why not to), and yes, this solves the problem - but how can I implement my Tag handler without using this jar file? Eclipse does not find the required classes otherwise... Thanks in advance, Christine read more about Failed to load or instantiate TagExtraInfo class
Message from apsira Most recent post: 10/26/2007 4 authors and 4 replies. dear friends, this link will help full see more number of E-books use this http://www.apsira.com/etc/usefulllinks.php?keyid=5.1 read more about free E-book links
Message from Project_ADM Most recent post: 10/26/2007 5 authors and 5 replies. hello friends, I am a nonJAVA professional and looking for JAVA professionals those who can make software with me, the concept, the design and the knowldge and marketing'd be mine and continous developement will be yours, I am looking partner on profit sharing basis, the front end or GUI'd a standalon appliation not a explorer based software, rest all details will be on interest shown by ur self thanks deepak sachdeva deepak.karnal@xxxxxxxxxxx read more about Partner needed
Message from Grzesiek Most recent post: 10/26/2007 4 authors and 6 replies. What is Data Source Name for Microsoft Access database? "driver={Microsoft Access Driver (*mdb)};dbq=c:\myDataBase.mdl;" doesnt work Thanx :-) read more about DSN for Ms Access
Message from Sameer Most recent post: 10/26/2007 2 authors and 2 replies. Dear All, Is there any custom tag, procedure, any mechanism which will let me put the html code to display the table rows from Oracle database table into a JSP page? Any procedure which accepts some parameters like table name, database connection url, database username, password etc. and display the table data in a web page? -Sameer read more about Displaying oracle table in jsp as a html table
Message from amandeepsinghvirk Most recent post: 10/26/2007 2 authors and 2 replies. Amazing Matches Creation http://amanspace.blogspot.com/2007/10/amazing-matches-creation.html Original Letters and Writings of Shaheed Bhagat Singh http://keepbhagatalive.blogspot.com/ read more about Amazing Matches Creation
Message from Roedy Green Most recent post: 10/26/2007 7 authors and 12 replies. You can use arrays in for:each. I presume that means somehow arrays must have an iterator method that produces an Iterator. What are the methods of arrays? Or is this just fudged as a special case by the compiler? -- Roedy Green Canadian Mind Products The JAVA Glossary http://mindprod.com read more about Iterable arrays
Message from Adam Lipscombe Most recent post: 10/26/2007 3 authors and 3 replies. FolksApologies - this almost certainly isn't the correct forum for this question, but I cant think of a better one.Our j2ee app login page URL is getting harvested by google. We dont want this to happen - how can we prevent it?Thanks - Adam read more about How to stop google harvesting URL's
Message from szczepiq Most recent post: 10/26/2007 3 authors and 4 replies. Let's say I have a proxy object. I want to know what's the interface this proxy object was created with. I know that I can check whether class is a dynamic proxy: Proxy.isProxyClass(proxyObject.getClass()) But I want something like that: Proxy.getInterfaces(proxyObject) How can I do that? Is there a library that can help me? Or am I missing something and this is very easy (yoopie!) or impossible (errr.... let's get back to Ruby). Thanks a bunch for any help! Szczepan Faber read more about how to get hold of the interfaces of JAVA.lang.reflect.Proxy object?
Message from Roedy Green Most recent post: 10/26/2007 4 authors and 5 replies. I think it'd be nice if I could prove to someone on the other end of the phone I am me, and demand they prove they are who they claim to be. It could be done by letting a modem kick in for a second to exchange challenge phrases to be encrypted by identification certificate that might include name, address, phone number, expiry date, company. Then if some charity I donate to phone me, I can be sure it is them. There are so many scams out there. It might also be done by each of us contacting an Internet server. Has anyone heard of such projects? -- Roedy Green Canadian Mind Products The JAVA Glossary http://mindprod.com read more about Telephonic Credentials
Message from Philipp Most recent post: 10/26/2007 10 authors and 19 replies. Hello, On some platforms, file names cannot contain certain characters (eg. on windows no ? is allowed in a file name and path). Is there a way in the API (application programming interface)to sanitize a user-supplied string so that it can be used as a valid filename? Is there a way to test if a filename is valid on a certain platform? Thanks Phil read more about Sanitize file name
Message from Dexter Most recent post: 10/26/2007 5 authors and 5 replies. I have developed some application software in JAVA language that I plan to distribute to end users as a trialware. How can I make the JAVA app work for a limited time. Say for a month A note to Andrew: This is the feature I tried to implement with updating a file contained in the Jar file read more about Distributing a JAVA app as a TrialWare
Message from francan00 Most recent post: 10/26/2007 2 authors and 2 replies. I have a JSP Form with 15 inputs that is processed and emailed to people. I am using Enumeration to process and display the information. But I need exact order of how the information is displayed and Enumerations don't guarantee order so I have to do this: Code: ( text ) Enumeration params = request.getParameterNames(); String text = "Form Information\n\n"; while (params.hasMoreElements()) { //String name = (String)params.nextElement(); //String[] values = (String[])request.getParameter(name); //String value = request.getParameter(name); text += "First Name: " + request.getParameter("firstName"); text += "Last Name: " + request.getParameter("lastName"); text += "City: " + request.getParameter("city"); text += "County: " + request.getParameter("county"); text += "Project Info: " + request.getParameter("projInfo"); text += "Main Status: " + request.getParameter("mainStatus"); ..... ..... /* if (values != null && values.length > 0) { for (int i=0; i<values.length; i++) { text += values + " "; } } */ } //email the info .......... EmailSender emailSender = new EmailSender(); emailSender.setFromEmail("info@xxxxxxxxxxx"); emailSender.setSubject(emailSubject); emailSender.setText(text); ......... Any better way? Please advise because I dont have Struts and probably wont be allowed to get it for a long time. read more about Enumeration of data
Message from shafaatunnur Most recent post: 10/26/2007 3 authors and 3 replies. Hi..could anyone help me to find the source code or some examples for spatial data clustering in JAVA?TQ read more about source code
Message from witkey.tu Most recent post: 10/25/2007 3 authors and 4 replies. I wanna start a tech startup and need a partner. Requirements: 1.mastery of JAVA, JSP, XML and oracle database. 2. currently reside in Hangzhou, P.R.China 3. Enthusiastic over a witkey website 4. an inflexible trait 5. an open character P.S.:Witkey is a web-based system whereby users can exchange and purchase services and information, sharing knowledge and experience, like www.innocentive.com. read more about Find a partner to start a tech enterprise
Message from cmk128 Most recent post: 10/25/2007 3 authors and 5 replies. Hi When I change my action class, struct-config.xml, I need to restart tomcat, it'll highlt affect my development speed. How to fix this problem? thanks from Peter (cmk128@xxxxxxxxxxx) read more about development speed of struts is low?
Message from pek Most recent post: 10/25/2007 3 authors and 9 replies. Hello everyone.. Here I am again for another question.. :P Suppose we've the following class public class Test { private Test2 test2 = new Test2(); public void testMethod() { test2.test2Method(); } } Is there a way, using anything (probably reflection) to know that the method testMethod of this class calls test2Method() method of Test2 class..? Or the other way around.. Is there a way to know what classes call Test2's method test2Method()..? Any help/reference/book etc. is appreciated. Thank you very much. read more about About Reflection (or not)
Message from Ouabaine Most recent post: 10/25/2007 5 authors and 5 replies. Hi all, Is it possible to create a stream originating from a byte[] array? I looked for "memorystream" and anything approaching and couldn't find it. Basically, I have an array of bytes, and I'd like to read it via a standart method that accepts streams as input. Thanks! read more about Memory stream