2,443 Posted Topics
Re: Well at least give it a try. Post the code and all error/compile messages as well as what it does (not) do that you expected, once you have written something. | |
Re: You are getting a download box, because the browser (I assume your on Windoof) does not know what to do with files that have an extension of ".bat", so it is asking you what it should do with it. You need to add a mime type for ".bat". This entire … | |
Re: ? No idea what you are talking about. | |
Re: I would have vary hard time explaining you, since I have no idea who/what you are, or what your purpose is. | |
Re: Start taking out from the largest to the smallest coin. | |
Re: We are not going o do your homework for you. If you provide what you already have, we help to point you in the right direction though. And, if you bother to post (or write) your code, don't forget to use code tags. | |
Re: Well, if it starts with "/*" then either that is the problem, or that code is not the problem, as it is commented out. | |
Re: Google "Java File Upload" and "POI" and read the JDBC tutorials. And, don't do this from a JSP, use a servlet to kick off the request, and supporting classes to do the actual work. | |
Re: So, wht do you have so far? We are not going to do your homework for you, that is not only morally wrong, it is against the Daniweb terms and policies, which you agreed to when creating an account here. | |
Re: Include the link to it, just like in every other HTML page? | |
Re: JNI, your only real hope. But, somehow, I get the feeling that his entire project is beyond you. | |
Re: You don't compare Strings with either == or != use [code] while(!"stop".equals(fName)) { [/code] And, before you ask, putting "stop" instead of fName first, avoids a possible NullPointerException if fName happens to be null. That does not mean you won't have problems inside the while if it is null, so … | |
Re: Yes he does, and I believe that is his problem. Although it would have been nice to know which line "34" was, without having to count. ![]() | |
| |
Re: [QUOTE=iamthwee;471214]Don't put conditions in for loops...[/QUOTE] Nothing wrong with it. However, you must be aware that if the overall condition returns false, the loop ends. If you wish to skip a single iteration of the loop and continue with the next, then use only the standard condition (i.e. i < … | |
Re: [QUOTE=hostsyst;303604]Hi, what to say "just a coincidence":) , I represent my company and we offer a solution for SVN and Tomcat.[/QUOTE] In this sort of case, I don't really mind the advertising (although it should be reported), but, the least you can do is to identify yourself as a member … | |
| |
Re: What exactly is the problem? Other than the fact, of course, that the method you're calling returns a value and you are simply ignoring that value, rather than storing it in a variable, evaluating it, then printing either it or the message. | |
Re: If that's your complete program, then you've forgotten to import the class Change, and yes, that class must be found on your classpath, see [url]http://java.sun.com/docs/books/tutorial/getStarted/index.html[/url] | |
Re: Read the API for Integer and its to.....String methods. | |
Re: Well, the contentPane of the the JFrams already has a layout. It simply needs to be used correctly. If you use add without any anchor parameter then according to the documentation [i]As a convenience, BorderLayout interprets the absence of a string specification the same as the constant CENTER[/i] So, simply … | |
![]() | Re: Well, don't mix them. Eliminate the scriptlets altogether. You should be doing this stuff in Beans, and the like. ![]() |
Re: if [i]No main class [b]variable[/b] defined[/i] is the error, then it is no standard JVM error that I'm aware of. I would say to read the documentation for the Mysaifu JVM, as the first option. | |
Re: It has nothing to do with the JDBC code (excpet for where it opens the file), and everything to do with how you are retreiving the file. Seemingly, according to the error messages, you are not uploading a file into the db, but simply saving a local file into the … | |
Re: Yes there is. Now, to find out about it, Start your own thread, rather than hijacking this one, post the code you already have (you have some don't you) and ask a specific question about what is troubling you with it. | |
Re: Start your own thread. And then, state what the actual problem is (i.e. compiler/error messages or actual vs. expected results), don't just say what the end result should be and then dump alot of code. We are not going to even try to decipher it, in that case. | |
Re: Good for you. Get started. If you have a specific question, post your code, any and all error/compiler messages you got, and a detailed description of your problem, and we will help. | |
Re: And? Your question is? No one is going to do it for you. | |
Re: Scanner or BufferedReader and an if statement and while statement. That's as much as you're going to get until you produce something on your own. | |
Re: As far as the J2ME on the Dell, I would say to ask them. As far as "communicating with the server", if the communication is normal network traffic, then why not? It would be quite hard to try RMI type stuff (although CORBA should, technically, work), but normal network traffic, … | |
Re: Next time, post to the javascript forum (not the Java forum, there is a difference), please. I have already asked the admins to move this thread. | |
Re: Because everyone of your constructors are redefining them. | |
Re: What are you trying to accomplish with [code] if ("name" == null) [/code] Comparing a string literal to null will always be false. | |
Re: AJAX maybe, to connect to a Servlet (or some other serverside program) that returns the results. But, in any case, this is a JSP/Java forum, not JavaScript, please post this type of question in a JavaScript forum, next time. I have already asked the admins to move this one. | |
Re: Maybe, if we could understand what you just said. But I believe you are talking about transparency (transparent windows/frames), google that. | |
Re: [QUOTE=ithelp;465887]... you cannot send a file over a socket.[/QUOTE] Since when? How do you think FTP does it? | |
Re: change [code] mput "go*" bye rm go* End-of-session exit 0 [/code] to [code] mput "go*" bye End-of-session rm go* exit 0 [/code] Because the rm go* is being fed to the ftp command (everything up to "End-of-session" is being fed to the ftp command), but the ftp session ended at … | |
Re: Simply include the url. Whether or not that url becomes a "hyperlink" depends on the tool being used to view the mail. | |
Re: There are a lot of syntax highlighting editors out there, emacs, vim, nedit, ultraedit, and textpad (not notepad) to name a few. Google any of those. (vim is a more graphical version of vi) | |
Re: delete every line from the first line to the exact line [inlinecode]%!ab-cdef$[/inlinecode], and on the rest of the lines change any occurence of the following character sequence [inlinecode].#@%&*)[/inlinecode] to [inlinecode])[/inlinecode] | |
Re: Well, yes, seemingly they can run from everywhere, or you wouldn't be getting an internal server error, but rather the contents of the script spilled out onto the browser (or the browser asking you what you wanted to do with ".pl" file). As to why it is failing, hard to … | |
Re: Because jsp is not html (which is what you've written). JSP produces html, when compiled and executed by an application server (e.g. Tomcat, WebSphere, WebLogic, etc). Go through this tutorial (its for the last version, but hey) [url]http://java.sun.com/j2ee/1.4/docs/tutorial/doc/[/url] | |
Re: Every time an error occurs in a JSP you will get a 500 http code at the browser. That does not tell us anything. It would really help to include that [i]actual[/i] error. But in general, move all this scriptlet stuff out of the JSP and into a Bean. Tomcat … | |
Re: An interface cannot implement anything, since an interface is not an implementation. An interface can only extend interfaces (exactly one). Edit: PS If you are a David Eddings fan, it is spelled Belgarath not Balgarath. If not, then please ignore. | |
Re: What the hell is wrong with the Date, Calendar, and SimpleDateFormat classes (that do all this bs for you), and reading the API doc for those. | |
Re: All of that about Herb Schildt also applies to that roseindia site, in General. | |
Re: We are not just simply going to do your homework. Tell us your answers, and we might, I repeat [i]might[/i] tell you if you're right. | |
Re: Look at the last line of parthibans post again. You were already provided with an answer for this. | |
Re: I will go out on a limb, and assume that you passed this hash to a method, and call the print statement in that method. In this case the print statement needs to be changed to: [code] print "$HeaderHash->{'Deal Name'}\n"; [/code] If that is not the case, then as KevinADC … |
The End.