2,443 Posted Topics
Re: [code] var="c0024" var2=`echo ${var} | sed -e 's/[^0-9]//g'` [/code] | |
Re: If its an Applet you have no need of any kind of sdk anyway. Read through this tutorial completely [url]http://java.sun.com/docs/books/tutorial/deployment/applet/index.html[/url] | |
Re: try [code] $fullDate = join( "/", $ARGV[3], $ARGV[4], $ARGV[5]); [/code] or [code] $fullDate = join( "/", $ARGV[3..5] ); [/code] | |
Re: If it is to be "opened" on the client, you cannot do it in JSP (or actually a bean since that sort of thing would need a scriplet and shouldn't be using scriptlets) as the JSP is executed on the server, obviously, and not on the client where the browser … | |
Re: Tomcat is already up to version 6.0 As has been said before, by others, I don't believe you are to the helping stage yet. | |
Re: Only if it is a Long, and not a long. If it is a long, then, the proper way is [code] jvar.setText(String.valueOf(longvar)); [/code] The "quick and dirty" or improper, but still functional way is [code] jvar.setText("" + longvar); [/code] | |
Re: Make your own number system and print and use barcode stickers. | |
Re: Excel file can be manipulated in Java (and so also in JSP, although the actual work should be done in a Bean and in some scriptlet) and for javascript you're going to have to ask somewhere else. I have no idea what indesign files are, but if it is a … | |
Re: [code] echo "No Data" | mailx -s "$subject2 $day" $destination [/code] | |
Re: Fatally Cool Flocking Stuff and Restful Relaxation? It might help to actually say what you want rather than throwing out a bunch of abbreviations. Also, spell out, step for step, what is needed in "RR", then start trying to explain these steps in Java terms. | |
Re: You should probably add a button.validate() call after the button.setText() calls. And use "this" not "insGui". The reason nothing is happening when you use "insGui, is because you have not defined it anywhere. And even if you had, It would have it's own "button" object, which is the one you … | |
Re: Have you defined one of the following variables in your script anywhere: [code] IO::Handle->output_record_separator EXPR $OUTPUT_RECORD_SEPARATOR $ORS $\ [/code] Because, that "^M" is the "\r" from a "\r\n" windows/dos style line ending rather than the standard "\n" of the unix/linux line ending (at least that is what I have always … | |
Re: There is a tutorial "pasted" to the top of this forum. Otherwise, this sounds far to much like homework for me to even want to give you any other answer. | |
Re: Stop posting code everywhere. Especially this stuff. And then you don't even take the time (or, maybe, have the common sense) to use code tags when you do, which only compounds the "wrongness" (both the idea and the code itself) of it. | |
Re: Stay with the original thread [url]http://www.daniweb.com/forums/thread92130.html[/url] Don't start a new thread simply because you don't like the answers you've been getting. If you feel the need to "draw attention" to the thread, or "move it to the top of the list" then post a quick reply to it, or edit … | |
Re: So write some. If you have problems, and a specific question, then come back and we will help, but for God's/Allah's/Buddha's/<insert additional diety names here>'s sake, [b]Do Your Own Homework[/b], or at least make an attempt at it. | |
Re: No. Do your own homework. Read the DaniWeb policies and terms of use. | |
Re: No. I am not going to "give you teh codez". And I am not going to meet you in any restrooms, either. You can do both of those things for yourself. | |
Re: Read the API for String. There is a method there, inherited from Object, with the same name as the symbol used in many comparisons. Use that method. (And, yes, I am being purposely obscure.) Edit: Aaarrgh, and another newb has already given code. Do not give out easy answers without … | |
Re: [QUOTE=pawan_1983;443605]i am creating chat application .can anybody tell me how can i know who is on line on the server and how can i communicate with on line members. thanks for help[/QUOTE] In Other Words: "How do I write a Chat Application?" since the two posted "questions" is pretty much … | |
| |
Re: Once you install Java, you should be able to "double-click" on a .class file and execute it in that way, if you don't have a class file (but just a .java file), then you have to compile it/them first. Better would be, to create a jarfile containing the relevant classpath … | |
Re: What does super have to do with anything here? Also, it might help to know what error you're getting. | |
Re: [QUOTE=balagangadharm;445974]Can any one help me in generating a billing report in java without using any reporting tool. I should get the header, footer and pagebreaks.If the billing takes two pages then header should cum in first page and footer in last page..please help me I would be favourable for u … | |
Re: Stay with the original thread, please. | |
Re: No. You cannot directly access sockets from an applet. (At least not without changing the security policies on the machine running the applet.) Maybe if it is a signed applet, but I don't believe that even a signed applet is allowed access to sockets. (At least not without changing the … | |
Re: [QUOTE=nikhita;445428]<% Class.forName("org.gjt.mm.mysql.Driver").newInstance(); String url="jdbc:mysql://localhost/database_name?user=user_name&password=type_password&useUnicode=true&characterEncoding=8859_1"; Connection conn= DriverManager.getConnection(url); Statement stmt=conn.createStatement(); . . . . %> like that it goes......... Hop it will help u.......[/QUOTE] That is the old MySQL driver, and is only still present in the distribution for backwards compatability. Use, as the first reply indicated, com.mysql.jdbc.Driver instead of org.gjt.mm.mysql.Driver … | |
Re: Google "Java file upload", then rather than writing the stream you get from the request to a file, write it to a DB column using the setAsciiStream, setBinaryStream, or setCharacterStream of PreparedStatement, read the API for that method and the Sun Tutorials (or the MySQL documentation which comes with complete … | |
Re: Well, it looks like you have your requirements, so do you have a question? Or did you simply want us to do it for you? | |
Re: Because 1 != 2. If you want it to enter the if statement only when the input is not 1 [b]and[/b] not 2, then you need to use the logical and (&&), not the logical (or). If you wanted to enter the loop only if the answer is either 1 … | |
Re: The [i]code of magic[/i]. Is that like a magicians codex or something. ;-) | |
Re: Why don't you ask the person you copied it from? Or did you write this yourself, and are having a problem, and so are really asking what's wrong with it? If that's the case why don't you tell what happens that you do not expect. Also, read the API for … | |
Re: Read the API for SimpleDateFormat and its setLenient method. | |
Re: No. The query and setString statements can remain the same. It is, however, not recommended to use scriptlets this way. The DB code should be moved out to a bean. Scriptlets, AFAIK, are only still supported for backwards compatability reasons. You don't want to be backwards do you? ;-) | |
Re: Read the examples that come with the documentation that comes with the driver that you download. | |
![]() | Re: The "hashtable" will have to be an instance variable. |
Re: Show the actual code. The above "process" doesn't really tell us much. For example, what, exactly, is the "necessary file IO"? A FileInputStream, a FileReader, a Scanner? Is that wrapped in a BufferedWhatever? etc, etc. | |
Re: If you want to call roll() by referencing the Class (i.e. [inlinecode]Classname.methodName()[/inlinecode]), then roll() needs to be static. If it is not static, then you need to instatiate an instance of the class in order to able to call the method (i.e. [inlinecode]Classname a = new Classname(); a.methodName();[/inlinecode] or even … | |
Re: [QUOTE=tech74;438908]Honestly, I'm getting more and more disappointed every time I see someone say, "I'm not doing your homework for you." and I'll tell you why... I've been a programmer for many years now. I've seen many horrible text books, on top of equally horrible professors there are out there - … | |
![]() | Re: Wow, all that code, and not a code tag to be found. To be honest with you, no one is going to go through that much code, especially unformatted as it is (use code tags). Try to create a small, self-contained, but complete example that duplicates the problem, and post … ![]() |
Re: Sun's Swing tutorials covers everything you need for this. | |
Re: Ask your teacher for clarification. That is what he is there for. | |
Re: Yes, it is possible, and is much more of an SQL question. Have you tried doing it? Post what you have tried. | |
Re: Nevermind. Totally misread, I was assuming you were trying with regex. | |
Re: Show an example (of the input and the desired output), as well as the code you have for doing it (at least what you have so far). | |
Re: Well, first of all, in an ArrayList you will have Integers, not ints (you may have added ints, but they will have been autoboxed into Integers). Secondly, you will need to tell ArrayList what type of Object[] array will be output, otherwise it will output an Object[], i.e. [code] Integer[] … | |
Re: It is actually better to place it inside of WEB-INF/lib, unless you are certain that it is needed by, and will not interfere with, other applications on the same server. |
The End.