736 Posted Topics
Re: [QUOTE=Superstar288;756786]thanks very much m8 i will try this 2moro hope i can get it 2 work thanks[/QUOTE] Too much of an effort to type in the full words ??? Let me just quote some of the member rules here:- [QUOTE]We strive to be a community geared towards the professional. We … | |
Re: [code=java] System.out.print(iterator.next() + " "); [/code] The above code is your problem. Here you are printing the object and not its contents, hence the reason for getting those strange values in your output. The reason is because you see the above code is exactly like :- [code=java] System.out.print(iterator.next().toString() + " … | |
Re: @clueless101 Why did you put what you are saying inside [noparse][QUOTE][/noparse] tags. Any specific reason for it ? I remember you doing that in some other thread too. Also just like javaAddict, recommend you read the Javadocs more often in fact whenever you are planning to use a certain class … | |
Re: [QUOTE] no it didnt work.... i just want to display a text document in a JFRAME .... its okk, if its PDF or wat ever the type is,,, just a document....[/QUOTE] You have lost us now, Do you mean to say that anytype of document (PDF, Word, Word2007, ODF, .... … | |
Re: This should answer all your questions on precompiling JSP files. [url]http://tinyurl.com/5l62lo[/url] | |
Re: [QUOTE]Just got the wonderful Line is longer than 80 characters error.[/QUOTE] Strange never heard of this one before (at least not yet), Give us exactly what your compiler is throwing up at you. | |
Re: The split() function of the String class accepts a Regular Expression as an argument, You seem to be under the impression that it accepts comma separated characters which is incorrect. If you want to check more about Regular Expressions in Java, [URL="http://java.sun.com/docs/books/tutorial/essential/regex/"]this[/URL] is the best place. Also note the double … | |
Re: This [URL="http://tinyurl.com/59qovg"]Link[/URL] should answer all your questions regarding JOptionPane. | |
Re: Honestly I have no clue what you trying to say, can you please be divulge more details and especially the relevant code / SQL query you are dealing with. Also on what basis are you reorganizing your records every week, you have just shown us how it should appear not … | |
Re: [QUOTE=Srinivas14;754842]Hi can any one send me the code for receving sms through gateway using java program. first i want recevie the sms from mobile through gateway and the i want to send sms to mobile through gateway..plz send me the sample code to achieve this.. Thanks in advance..[/QUOTE] No I … | |
Re: [QUOTE=veledrom;747648]Hi, I cant save any php file into www. Gives permission error in text editor. But, i can save with using sudo nano ..... in terminal. In the properties of www directory, it permites only root. How do i solve this problem? Thanks[/QUOTE] Thats because of the file permission system … | |
Re: I do not know this will suite you but try simply redirecting to that file so that the PDF will directly open in the browser (if the client's browser supports it ) or it will ask the Client whether he wishes to download the file on his machine and open … | |
Re: [QUOTE]Calling method from JSP is not working why? [/QUOTE] Because you messed up somewhere. Quite simply you should learn a more polite way to ask questions and ideally read [URL="http://www.catb.org/~esr/faqs/smart-questions.html"]this essay[/URL] by Eric Raymond to learn how you should ask questions so that more people start paying attention to you. … | |
Re: You are working on Glassfish (At least it seems so). I would have given you the exact data how to deploy, but the net at my place is ridiculously slow so you will have to find it out from the following link yourself. [url]https://glassfish.dev.java.net/downloads/quickstart/index.html[/url] Normally we make a WAR file … | |
Re: Well you could have at least mentioned what problem you are encountering and what output you are currently getting so we can check where you are actually going wrong .... instead of going through the entire code. Now first mistake which I found :- [code=java] String str = ("Data: " … | |
Re: @bugmemnot, I am pretty sure the thread starter has already solved his problem by now. | |
Re: Also another suggestion as far as using StringTokenizer is considered, to quote the javadocs :- [QUOTE]StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the … | |
Re: The following piece of code:- [code=java] label3.setText(arrayOfTen.get(i)); [/code] Replaces whatever previous value you have set for the label with the new one you have specified here. Use this in case you want to also retain the previous content of the label:- [code=java] label3.setText(label3.getText() + " " + arrayOfTen.get(i)); [/code] And … | |
Re: Well I guess your actual problem has been solved by stultuske, But still I would like to mention a few things by looking at your code :- Firstly Java is an object oriented language and its true power is manifested in that only, but you have basically pulled it down … | |
| |
Re: If this is what I think it is try Ctrl + Alt + Up Arrow to see if your screen returns to normal orientation | |
Re: honestly I can't make any sense of what you are trying to say. You are mentioning that you want to do some String manipulation but then suddenly you are talking about the compiler complaining about the FileNotFoundException being not caught or mentioned in the throws clause. Please paste your complete … | |
Re: First is you need to know how to send SMSes via the Computer, there are basically two ways :- [LIST=1] [*]GSM Modem or a GPRS Modem (or a Cell Phone acting as one) connected to your Computer [*]SMS Service Provider, this is the second method and the preferred method for … | |
Re: [QUOTE]Firefox+NoScript+AdBlockPlus=solved problems[/QUOTE] Yep thats what is working for me too. But I have one observation, on my Windows machine I do not have any such problem, both in IE 8 beta as well as Firefox. I encountered this problem only in my Firefox + OpenSuse combination (with Adblock Plus disabled … | |
Re: Just a thought, instead of writing each object after serializing one by one to the file, why don't you just serialize the entire ArrayList and write it to a file. And when you need to add any data to the file, get the ArrayList back from the file, add the … | |
Re: [B]Your question was already answered more that two months ago, in [URL="http://www.daniweb.com/forums/thread145572.html"]this[/URL] thread started by you. I remember cause I was one of the repliers. Please do not ask the same questions again and again.[/B] | |
Re: Its refreshing to see that some posters pay attention to atleast some of the rules before posting, but we wont give you ready made code, but we'll help you write it yourself. | |
Re: JSPs should only be used for display purposes in Web Applications, kind off like swing and AWT are used for the User Interface. Your actual programming logic should be written in normal Java class, to the methods of which you will pass your parameters (in this case the word to … | |
Re: Looking at the exception it seems that Netbeans can't find the Persistence provider for your EntityManager. In simple language *I think* it means that there is no JDBC driver for SQLite on your system or in the classpath. I cant guess any more possibilities since you have not provided any … | |
Re: This sounds more like a Javascript question as opposed to a PHP question. Well all you have to do is on the radio button you have to define an "onclick" (or onchange but it doesn't work with IE) event on the two radio buttons like below :- [code=html] <form> <input … | |
| |
Re: Can you tell me the architecture of the system ?? And how do you plan to validate users ??? Do you have a central database server or is it small school / college assignment where your database will be MS Access / etc and it will reside on the machine … | |
Re: Add some functionality, Compile it and run it and see if it behaves as you want. Why do want our stamp of approval on it, its not like the world would come to an end if you get a compile error or a wrong output while trying out different combinations … | |
Re: CEO my foot, am pretty sure you are just lone programmer cum administrator cum janitor there. And hope your so called firm goes bankrupt and rots in HELL. | |
Re: Have you even bothered searching through the forums, I bet not because I myself have answered the same question nearly two or three times and just in case you are in too much of a hurry to even type the search query here you go ;- [url]http://www.daniweb.com/search/search.php?q=send+sms+via+java[/url] | |
Re: First point I suggest is read the[URL="http://www.daniweb.com/forums/thread141776.html"] Read-Me thread[/URL] which is the first thread in the JSP forum, You are performing database operations from directly withing your JSP page which is considered a bad practice, the above thread will guide you on how to go about organizing your code nicely … | |
Re: [QUOTE=RenjithVR;748793]Hi, Hi All, Can anyone tell me about a library that helps me to read contents from /etc/resolv.conf file and also update the same file with new entries. Does this possible with Resolver library routines? Any useful links or sample programs regarding this? Thanks in advance. Renjith[/QUOTE] resolv.conf stores the … | |
Re: Try [icode]Ctrl + Alt + F1[/icode] this should give you the command line, then try [icode]Ctrl + Alt + F7[/icode] and check if the desktop appears. | |
Re: Well I this is a workaround I had done while using VirtualBox which had Ubuntu (the OS in my Virtual Machine), on my Windows XP laptop. The folders in Windows XP on which network sharing is enabled, are accessible in Ubuntu. All you have to do in your Ubuntu box … | |
Re: First thing you could do to help us is get rid of that SMS or Instant Messaging language to let us understand your problem better and get rid of the ".."s we are not playing fill in the blanks here, and finally use a spell check. Next do not do … | |
Re: That should be simple :- [code=sql] SELECT * FROM customers WHERE customers_id NOT IN ( SELECT customers_id FROM orders ) [/code] | |
Re: [URL="http://java.sun.com/j2se/javadoc/writingdoccomments/"]This[/URL] should help you understand how Javadoc comments should be written. | |
Re: Exception error, Now thats the most generic term I can think of when describing a problem, Can you be more specific as to what Exception you are getting and at what line number the exception is being thrown as indicated by your JVM ??? | |
Re: No wonder no one has responded yet to this thread. You have not used code tags while adding your code and have pasted the complete thing, Just looking at the darned thing will most probably chase away anyone and everyone with an intention to help you. I do not know … | |
Re: Now consider your code:- [code=C] if (nummer[i] < 0 && nummer[i] > 9){ [/code] Now according to me since this is a [icode]char[/icode] array, you numbers will be stored as chars and hence you will need to check for their ASCII equivalent values, or better you could just use the … | |
Re: @thariqrasheed The answer had already been given to you. But your inability to figure it out is at best apathetic. | |
Re: First of all let me congratulate you on the amazing indentation technique you follow. I think very few programmers in the world survive today who use your indentation technique ... complete left alignment :P. I suggest you first learn to indent your code. As long as you are doing these … | |
Re: This [URL="http://www.nowsms.com/support/bulletins/tb-nowsms-003.htm"]link[/URL] will help you on how to configure NowSMS to read incoming messages and forward them on to an HTTP URL (which could be your servlet, JSP whatever). I had already told you in one of your previous threads to check the reference manual of NowSMS for that, but … | |
Re: [QUOTE]Apparently nobody wants to tutor Computer Science these days. [/QUOTE] Same situation here, can always consider teaching CS an option :D . | |
Re: Your [icode]<select>[/icode] element (and also any other element eg textfields, checkboxes, etc ) should be inside the [icode]<form> </form>[/icode] tags, if you want your data to get posted (via GET or POST) to the URL specified in the form's [icode]action[/icode] parameter. From what I see you seem to have no … |
The End.