2,443 Posted Topics
Re: BufferedReader, it's readLine method, and a counter variable. | |
Re: Read the MySQL documentation, everything you need is right there. | |
Re: Create an object with two instance fields. One for the original index and one for the value. Have it implement Comparable and sort according to the value. Sorting, of course, will give the objects a new index within the array, but they will, at least, still have an instance field … | |
Re: [QUOTE=hfx642]6 % 2 = 0 So, if I have a remainder of 0 and a divisor of 2, what did I start with? Well, that would be; 2, or 4, or 6, or 8, or... (DO YOU SEE A PATTERN HERE?) There is no answer here. There is no way … | |
Re: No idea what it is you want, but "onLoad" is JavaScript and has nothing to do with JSP. Moving this post. | |
Re: Uhm, you do know that the cost of a programmers time to write something like that (which I didn't even read BTW), and test it, is more than the cost of a few routers, right? You also know that it possible for any computer you have to [i]be[/i] a router, … | |
Re: That is for a servlet (you aren't using scriptlets in the JSP, are you?). for a JSP it is [inlinecode]${param.movieIdHidden}[/inlinecode] | |
Re: Okay? And when something else uses that list [i]without[/i] synchronizing on it (or the instance)? [i]That[/i] is where the problem is coming from. | |
Re: try "man gcc" or google for gcc documentation. | |
Re: Well, for one, you haven't closed the if statement with "fi" nor closed the for statement with "done". Also, you need to check for links first or a link to a directory will probably be counted as a directory. | |
Re: Well, it has nothing to do, most likely, with the servlet, but rather with the css and html it is producing. Post the produced html on a html forum and ask there, is the best advice I can give you. | |
Re: You need to use defined bytes '00000000', '00000001', '00000010', and '00000011' i.e. [code]byte oo = 0x00; byte oi = 0x01; byte io = 0x02; byte ii = 0x03;[/code] as what you are using now is actually zero, one, ten, and eleven. Not quite what you want. or use the 0x … | |
Re: So, the person who wrote is not there. And? Does that mean you don't have the source code either? The "solution" is, of course, to simply add it to the original code. | |
Re: If you ask me "Search Results" would be a better String. In any case you can always do this idiocy [code]char quote = '"'; String search = "<h3 class=" + quote + "r" + quote + ">"[/code] or [code]char[] text = { '<', 'h', '3', ' ', 'c', 'l', 'a', … | |
Re: By using getResourceAsStream rather than File operations as the images within the jarfile are no longer "files" in and of themselves and so cannot be accessed through "File" classes (such as File, FileInputStream, FileChannel, or the Image operations that take a file as a parameter). | |
Re: Do you have the oci or the thin Oracle Driver. If you have the oci driver, then yes, I believe you do need to have an Oracle client install on your machine (at least you don't need a complete Oracle install, just a couple of libraries and a few config … | |
Re: Uhm, press the "numlock" key to either activate or deactivate it? | |
Re: Correct escaping the call (with "\") to effectively inline "unalias" the command is the proper way to go. | |
Re: Remove the query string from the executeUpdate call. | |
Re: Those items are created locally in other methods meaning they are not available within another method. It lloks as though you want to use instance variables rather than local variables. | |
Re: Maybe if we knew what "problems" you are talking about. | |
Re: The same way you would in any SQL compliant db, with SQL. Google for an SQL tutorial/reference site, there are plenty out there. | |
Re: It is not really a regex. Go to [url=http://perldoc.perl.org/perlop.html#Quote-and-Quote-like-Operators]this page[/url] and scroll about two-thirds of the way down. | |
Re: Seemingly your pwd is not what you think it is. | |
Re: As said in [url=http://www.daniweb.com/software-development/java/threads/359889]this post[/url] the action is, of course, either post or get, and the target is the servlets url, of course, again. | |
Re: It either must be from the same address that served the applet (and proxies can easily get in the way of this) or the clients need to modify their security policy files to allow it to connect to something else. Edit: Or, I believe, that a signed applet can also … | |
Re: It might help to know [i]what[/i] errors. I am not going to play compiler and even [i]try[/i] to figure them out when you could just post them. And fix your indentation, how do you expect anyone to be able to read that properly? | |
Re: Pack the images into the jarfile with the app and use ImageIO and getResourceAsStream. | |
Re: Why do you want "JSP coding", when you're currently using Java coding? Don't tell me you used a scriplet to get those values. Don't tell me that you don't know about ${param.xxx} JSP syntax. Why does everybody dive immediately into JSP and [i]never[/i] look at the tutorials? [url=http://download.oracle.com/javaee/1.4/tutorial/doc/]The J2EE(TM) 1.4 … | |
Re: Seeing as how a ".bak" is normally a backup copy of some already existing file, I would say read the original and write the new or look at the API docs for FileChannel, I believe there is actually a "copy" method there (if I'm remembering correctly). | |
Re: First of, use your algebra skills to "turn the equation around" until you have an x= .... equation. Then the rest should be self-explanatory. | |
Re: Well, I'd be sorry to be the person monitoring that email address as that would simply send an email with every start up. What I do see about it though is you define CONFIGURE and check CONFIGURED | |
Re: Of course. There are, obviously, much better ways of going about it, though. | |
Re: Fixing your indentation your code looks like this [code]package helloworld; import javax.swing.*; import java.awt.event.*; public class FourthApp extends JFrame implements ActionListener { JFrame interfaceFrame; JButton startButton, stopButton; public FourthApp() { JFrame.setDefaultLookAndFeelDecorated(true); interfaceFrame = new JFrame("GUI"); interfaceFrame.setSize(200,200); interfaceFrame.setVisible(true); interfaceFrame.setLayout(new java.awt.GridLayout(1,2)); startButton = new JButton("Start"); startButton.addActionListener(this); interfaceFrame.add(startButton); stopButton = new JButton("Stop"); stopButton.addActionListener(this); … | |
Re: [QUOTE=Effrego;1532647]Thanks :D[/QUOTE] I'm sorry, but why did you not just check the API docs? | |
Re: Probably doesn't want to create a new one if one already exists. But, in that case it has still been done wrongly, and there is no reason to have to place it back into the session, unless it is null after the get call, in which case it should be … | |
Re: Well, stop ignoring Exceptions (see all of your empty catch blocks) and you just [i]might[/i] figure out what the problem is. | |
Re: Just put the page back to the "right" place and change this "servlet" to a filter and apply the filter to the url for that page. | |
Re: The definition of recursion (essentially) is to call a method from within that same method, so, knowing that, and knowing that you need to add N to [i]N - 1[/i] what do [i]you[/i] think [i]might[/i] be appropriate in that "blank"? | |
Re: It's [i]old[/i]. That doesn't mean that learning it is a bad thing, or that it is not in active use on the market, but it is definately not a [i]hot[/i] thing and nearly as far from a [i]knew[/i] thing as COBOL. | |
Re: Uhm, the GregorianCalendar class? Edit: Damn! Too slow! | |
Re: Okay? So it gives you an error? And? How did you determine that this sort method had anything to do with it, or are you just guessing? Print the stacktrace of the error and [i]read[/i] it. It will tell you exactly where the problem is. If you find yourself incapable … | |
Re: Yes. Don't worry about "how big to make the array". Simply read the file and store the lines in an ArrayList (you do not have a preset size on those). If your "assignment instructions" (or whatever) require you to return an array, then, after reading the file, simply use the … | |
Re: At the simplest, yes, simply make the methods synchronised as that will cause them to sync on the instance of the class. | |
Re: Sun's (Oracle's really) JVM, for the most part, yes, but it doesn't [i]have[/i] to be. The language used to create the JVM is completely irrelevant as long as it is able to execute the byte code in the class files in the proscribed manner. And the compiler is written in … |
The End.