3,927 Posted Topics
Re: [quote=MidiMagic;416036]If it was a coral snake in a populated area, or if it was on his car, he had good reason. There is no antidote to the poison.[/quote] Coral snakes are not found in Oklahoma and it was not on his car. In all likelihood it was a perfectly harmless … | |
Re: If you use foreach() you won't even need to bother with the indexing.[code=php] <?php $list[] = "first"; $list[] = "second"; $list[] = "third"; foreach ($list as $entry){ mail($entry, "Hey", "Whats up?"); } ?>[/code] | |
Re: [quote=ezb;414333]Tried that before, didn't seem to help, I'll give it another bash, changed a few things since then, cheers[/quote] You haven't really said what "won't work" means in this case. No results? Wrong results? Error messages? | |
Re: [quote=muskan;412848]yes i have copied the .jar files in WEB-INF/lib but still when i have compiled database connectivity program with mysql in java it gave the same error. D:\Program Files\Java\jdk1.5.0\bin\java.exe ConnBean Working Directory - C:\final project\jsp code\ Class Path - .;c:\Kawapro5.0\kawaclasses.zip;d:\program files\java\jdk1.5.0\lib\tools.jar;d:\program files\java\jdk1.5.0\jre\lib\rt.jar java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ....[/quote] Why are you trying to … | |
Re: You probably need to add the menu frame to the desktop pane such as in this code fragment[code] protected void createFrame() { MyInternalFrame frame = new MyInternalFrame(); frame.setVisible(true); desktop.add(frame); try { frame.setSelected(true); } catch (java.beans.PropertyVetoException e) {} } [/code] Is there a particular reason you need to use the JDesktopPane … | |
Re: I would recommend changing your form method to 'post' instead of 'get' and then you just need to pull the variables in from the $_POST[] array and you should be good to go. I think you want to do this[code] //variables from submit form $houseplans = $_POST['houseplans']; $bedrooms = $_POST['bedrooms']; … | |
Re: This free, online book is another handy reference for learning java. It doesn't cover some of the latest additions to the language but it is still valid (and free!) :[I] Thinking In Java, 3rd Edition[/I] [url]http://www.smart2help.com/e-books/tij-3rd-edition/TIJ3.htm[/url] | |
Re: I assume you are wanting the user to get 5 guesses at the number before ending. This isn't really what your loop is doing though. It is evaluating the same input 5 times (or less if they got it right) and then exiting. [code] int n = Integer.parseInt(t.getText());[/code] will not … | |
Re: Hey i am doing my final year BE too & i create and sell projects, right now i have these projects at hand - A Finger print recognition software : It is designed using Swing Java, the fingerprints are stored in a MySQL database in the form of BLOB objects … | |
Re: I think it would help if "graybies" counted for a point or two. Out of over 300 posts in Java and PHP, many of my rep comments come from new users to just say "Thanks, that helped". Honestly, it's nice enough just to get the comment, but if those counted … | |
Re: Sorry, no one is going to do the homework for you. Post code you are having trouble with or specific questions about what you don't understand if you want any assistance. | |
Re: the elseif needs to be inside in front of the condition, you have it on the line below in front of a string for your img tag (which also won't work right). Also, you've gotten your php code and html tangled up in the last couple of cases. Check your … | |
Re: I don't see anywhere that you have initialized an instance of your key generator, unless you have that elsewhere in the code. You'll have to create one before you can call it. Using a separate class with an extra interface is a bit of overkill for what you are needing … | |
Re: You might check your usage of the strstr() function, it may be a simple typo or something. The following works fine for me.[code=php] <?php $s = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12"; echo ($found=strstr($s,"Firefox")) ? $found : "(not found)"; echo "<br>Firefox position: ".strpos($s,"Firefox"); echo "<br>Firefox removed..<br>"; … | |
Re: [quote=no1zson;414384]OK, with the fileoutput stream I was able to write the file, but not create the directory.[/quote] Use a separate File object for the directory. Java treats files and directories both as File. [quote] With the new File statement I am able to create the directory but not write the … | |
Re: "java -version" from the command line or [inlinecode]System.getProperty("java.specification.version");[/inlinecode] From the docs on this system property [quote] The requirement to identify the Java Runtime is already partially met via the properties specified by the Java Language Specification, §20.18.7 using java.lang.System.getProperties. [LIST] [*]java.version i.e. Solaris 1.2 [*]java.vendor i.e. Sun Microsystems Inc.[/LIST]Currently these … | |
Re: [quote=Dsiembab;413480]Is their a way to prevent screen scraping? Thanks Dave[/quote] Only one that I know of: don't produce any output. | |
Re: I assume you have read all of the discussion in the manual page? [url]http://us.php.net/manual/en/function.rand.php[/url] | |
Re: [QUOTE] 1st - This listener seems to be a CaretListener .... how will that work with my ActionListener and my SEARCH button?[/QUOTE] It won't as written. It will respond to any text change in your cd name field and perform a search on the list for an incremental match. If … | |
Re: You don't mention what problem you are having with the batch file - but I am thinking it's probably a class path issue. Are you getting things like "No class def found" ? javac needs to know the class path to find any other classes that your java file is … | |
Re: Well, Netbeans has an "auto-correct" suggestion feature that you may be able to glean some ideas from if you want to study the source: http://www.netbeans.info/downloads/dev.php Joone - Java Object Oriented Neural Engine http://www.jooneworld.com/ might be useful in your neural network development. While I can see the value in pointing some … | |
Re: [quote=venomlash;408248]I recommend [inlinecode]Scanner[/inlinecode] highly. This will work nicely if: a. you replace the commas w/spaces and use [inlinecode]nextInt()[/inlinecode] b. you keep the commas, use [inlinecode]next()[/inlinecode], and set up an elaborate system to trim the commas out of the [inlinecode]String[/inlinecode]s made and convert said [inlinecode]String[/inlinecode]s to ints I'd go with "a".[/quote] … | |
Re: As peter_budo pointed out, there are some organizational issues with the way you are trying to build your layouts, but I think if you put[code] getContentPane().add( new ShapesJPanel() ); // add shapesJPanel to frame[/code][B][/B]right after you set the layout in initComponents(), your panel should show up fine. | |
![]() | |
Re: I would assume that is because you have explicitly set the table height. If you only give it a couple of rows, those rows will fill the available height. | |
Re: As far as the cmd output and exit codes, see the thread that peter_budo posted a link to above. As for the loop, you can run it in the following loop based on exit code for success:[code=java] Runtime runTime = Runtime.getRuntime(); try{ int exitCode = 0; for ( int runCount=0; … | |
Re: You dug up this 2 year old post in the Java forum just to promote your mainframe and COBOL? <boggle> | |
Re: [QUOTE]One I had not even considered until you asked it. I want to go back one record at a time, when I hit the very first record I would like to just loop around to the last record and start the process over again. Any suggestions?[/QUOTE] Well, think about your … | |
Re: You might want to post a fragment of the code that is not displaying correctly (the xml or xhtml output). | |
Re: You are calling the method in a static context because you have used the class name rather than an object reference to call the getValue() function. You will need to use the current CD object for this call. Your method is almost correct though. You want to set the text … | |
Re: I suppose you would need to first parse out the hrefs from the links and then get the content from each those urls and search for the match. Regular expressions parsing could do both or perhaps HtmlEditorKit [url]http://java.sun.com/javase/6/docs/api/javax/swing/text/html/HTMLEditorKit.html[/url] | |
Re: [url]http://www.goodphptutorials.com/[/url] Also, some free online books: [url]http://hudzilla.org/phpwiki/index.php?title=Main_Page[/url] [url]http://www.techotopia.com/index.php/PHP_Essentials[/url] | |
Re: As it says, $all_rsArticles is not a valid result, which means your query failed. Try putting [code] if (!$all_rsArticles){ $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); }[/code] after your query to see what's going on with it. | |
Re: Count the number of params in your super() call and take a look at the base constructor. | |
Re: [quote=Serunson;409882]That's possibly the most offending thing people can say. Everyone bad rep this man for saying such crap.[/quote] He is already bad-repped into the ground. Just ignore him. | |
Re: You can store your object in $_SESSION[] if you need to maintain it throughout many page views. Keep in mind you can't have session_autostart turned on if you wish to include user objects in the SESSION global array, since it needs to load the class definition before the session is … | |
Re: Take peter_budo's advice. You need to ask this question in the iReport forum. The error is originating in one of the iReport classes as can be seen from the stack trace. | |
Re: J2EE is also designed for such things, but it can be a pretty heavy architecture for a simple client-server app. | |
Re: Take a look at ReCaptcha, it might help. [url]http://recaptcha.net/[/url] | |
Re: You should place one or more labels which can be used to display the image as an ImageIcon when the box is clicked. See the following tutorial on loading images as ImageIcon. [url]http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html[/url] | |
Re: You have two options (well, a lot more than 2 actually, but here are two): Move the code that manages your array into the CdTextFrame class. Give the Inventory class methods that let you add, remove, and view the CDs and call those methods from your CdTextFrame class. Instead of … | |
Re: I don't see anywhere that your code checks to see if there is anything in the error array and display it if needed. It just goes on to attempt to send the mail and it also doesn't check the return value of the mail function. Make sure you are actually … | |
Re: The attibutes inherent to the roll should go into CRoll. Maintenance tasks should go into separate classes such that collections of these tasks can be related to (or owned by) a CRoll instance. Maintenance tasks may be able to share an interface if you can find common ground between them, … | |
Re: Your message already mentions the problem. Your main() method does not do anything. It needs to create the instance of the class and show it. | |
Re: Honestly? Google or Yahoo. Sun's generic tutorial on networking can be found here: [url]http://java.sun.com/docs/books/tutorial/networking/index.html[/url] For specific types of apps though, you're going to have to do some searching. | |
Re: You will need to forward those values along in your GET requests (the Next/Previous links) or you can store them in $_SESSION[] to have them persist. Session is probably the easiest bet. | |
Re: If you want to interact with the Yahoo server, you will need to use HTTP over sockets. There are many tutorials for this available online, including this one from Sun: [url]http://java.sun.com/docs/books/tutorial/networking/index.html[/url] | |
Re: A simple Google search "Eclipse create WAR file" yields your result immediately: [url]http://www.java-tips.org/other-api-tips/eclipse/how-to-make-war-file-in-eclipse.html[/url] | |
Re: [I]Thinking in Java, 3rd Ed. [/I][url]http://www.smart2help.com/e-books/tij-3rd-edition/TIJ3.htm[/url] This is another site that is extremely helpful for tiny code fragments to get you started when you are coding something from part of the API that you haven't used before: [url]http://www.exampledepot.com/index.html[/url] (keep in mind that it's java 1.4 code, so newer things are … | |
Re: I believe Apache will let you map any extension you wish to a given mime type, but off the top of my head I can't recall which file it is in. Check the docs on mapping mime types. |
The End.