3,927 Posted Topics

Member Avatar for The Dude

[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 …

Member Avatar for lasher511
0
251
Member Avatar for Firestone

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]

Member Avatar for jamshid
0
86
Member Avatar for ezb

[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?

Member Avatar for ezb
0
98
Member Avatar for muskan

[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 …

Member Avatar for masijade
0
186
Member Avatar for pmhayden

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 …

Member Avatar for Ezzaral
0
99
Member Avatar for JadeaDragon

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']; …

Member Avatar for JadeaDragon
0
148
Member Avatar for Ainur

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]

Member Avatar for Ainur
0
132
Member Avatar for lamees

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 …

Member Avatar for Ezzaral
0
138
Member Avatar for mayur_kulkarni

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 …

Member Avatar for masijade
0
97
Member Avatar for Dani

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 …

Member Avatar for Dani
1
989
Member Avatar for Ainur

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.

Member Avatar for ~s.o.s~
0
149
Member Avatar for piers

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 …

Member Avatar for piers
0
142
Member Avatar for no1zson

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 …

Member Avatar for no1zson
0
108
Member Avatar for EnderX

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>"; …

Member Avatar for cereal
0
114
Member Avatar for no1zson

[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 …

Member Avatar for no1zson
0
142
Member Avatar for nanodano

"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 …

Member Avatar for Ezzaral
0
114
Member Avatar for Dsiembab

[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.

Member Avatar for Ezzaral
0
170
Member Avatar for Staplerkid

I assume you have read all of the discussion in the manual page? [url]http://us.php.net/manual/en/function.rand.php[/url]

Member Avatar for cereal
0
125
Member Avatar for no1zson

[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 …

Member Avatar for no1zson
0
3K
Member Avatar for bumassjp

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 …

Member Avatar for bumassjp
0
186
Member Avatar for PoovenM

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 …

Member Avatar for PoovenM
0
1K
Member Avatar for baltazar

[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] …

Member Avatar for ~s.o.s~
0
600
Member Avatar for no1zson

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.

Member Avatar for no1zson
0
152
Member Avatar for marjan_m
Member Avatar for assgar

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.

Member Avatar for assgar
0
199
Member Avatar for vijaygandhi559

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; …

Member Avatar for vijaygandhi559
0
124
Member Avatar for DeFrog777

You dug up this 2 year old post in the Java forum just to promote your mainframe and COBOL? <boggle>

Member Avatar for Ezzaral
0
158
Member Avatar for no1zson

[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 …

Member Avatar for peter_budo
0
272
Member Avatar for jonathan.jbkt

You might want to post a fragment of the code that is not displaying correctly (the xml or xhtml output).

Member Avatar for jonathan.jbkt
0
237
Member Avatar for no1zson

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 …

Member Avatar for no1zson
0
532
Member Avatar for abar_sow

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]

Member Avatar for abar_sow
0
200
Member Avatar for reggienoble
Re: Help

[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]

Member Avatar for stymiee
0
143
Member Avatar for pvc4twenty

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.

Member Avatar for Ezzaral
0
63
Member Avatar for no1zson
Member Avatar for no1zson
0
77
Member Avatar for hbk619

[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.

Member Avatar for Serunson
1
252
Member Avatar for Cerberus

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 …

Member Avatar for Cerberus
0
154
Member Avatar for onsir

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.

Member Avatar for Byaptia
0
414
Member Avatar for agrothe

J2EE is also designed for such things, but it can be a pretty heavy architecture for a simple client-server app.

Member Avatar for tonakai
0
144
Member Avatar for Luc

Take a look at ReCaptcha, it might help. [url]http://recaptcha.net/[/url]

Member Avatar for Luc
0
80
Member Avatar for johnD29

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]

Member Avatar for Ezzaral
0
96
Member Avatar for no1zson

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 …

Member Avatar for no1zson
0
233
Member Avatar for Luc

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 …

Member Avatar for Luc
0
174
Member Avatar for tyroTechie

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, …

Member Avatar for thekashyap
0
86
Member Avatar for manusp

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.

Member Avatar for masijade
0
143
Member Avatar for tygerberg

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.

Member Avatar for peter_budo
0
122
Member Avatar for sickly_man

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.

Member Avatar for sickly_man
0
116
Member Avatar for vinu_07

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]

Member Avatar for Ezzaral
0
104
Member Avatar for satish.paluvai

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]

Member Avatar for Ezzaral
0
89
Member Avatar for staron4

[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 …

Member Avatar for tygerberg
0
136
Member Avatar for FBI

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.

Member Avatar for FBI
0
1K

The End.