736 Posted Topics
Re: You are not meant to use arrays, does the restriction also imply against use of Collection like [URL="http://www.baskent.edu.tr/~tkaracay/ders/prg/java/api/java/util/ArrayList.html"]ArrayList[/URL], [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashSet.html"]HashSet [/URL]etc | |
| |
Re: Do not connect to a database directly from within a JSP. JSPs are only for display purposes, your main business logic / database connectivity etc should be performed in Java code which you will include in your JSP and use as a API, So in case if in the future … | |
Re: Sharath, When you specify "codebase = /WebContent/WEB-INF/" the browser will serach for the Class file of your Applet in the "/WebContent/WEB-INF/" in the directory in which it is running on the client machine where your servlet output is being displayed, it does not look for the class file on the … | |
Re: @vishalsnc Drop the IM speak this is not a chat room, and try to read the rules and search the forums before you post anything. [QUOTE]cn u pls mail me some examples if u have ..[/QUOTE] What do you think does the Sticky which Peter has linked to contain ??? … | |
Re: [QUOTE=Ashwin1985;1101013]Any suggestions / code examples for Encryption/Decryption of files(any file format) in java. command line args - <inputfilename> <outputfilename>[/QUOTE] Show us what you have tried first please. | |
Re: Which platform are you running this on ? When I was running Eclipse 3.3 on Ubuntu 7.10, I remember encountering a similar error (for a Linux GCC toolchain based project), So I had to install the package build-essential (which includes GNU Make, GCC and other tools). However I do not … | |
Re: [QUOTE]I thought the Hash's comparison between two object should be by their equals method, [/QUOTE] The comparison is within the hash bucket, if two objects return the same hashcode then only the equality check by equals() takes place as mentioned below on [url]http://www.ibm.com/developerworks/java/library/j-jtp05273.html[/url] [QUOTE] The interface contract for Object requires … | |
Re: It seems you are from a Structured Programming background so you need to keep in mind that your main method is static and so can access only static methods and static fields of other classes (or even same class)directly. Remember Java is object oriented so to invoke your methods as … | |
Re: The comparison operator in Java is "==" not "=". Change that on line numbers 7 and 9 and check whether it works. "=" is the assignment operator, so you are actually setting the value to your array element there. | |
Re: [QUOTE]What file is it my friend?? (Ill look in mine and see if mine is there)[/QUOTE] I do not know about AOL but if you use[URL="http://www.pidgin.im/"] Pidgin/Gaim[/URL] (which is a good chance if you use the GNome desktop environment on ''linux ) and tell it to save passwords, it saves … | |
Re: Look into the [URL="http://java.sun.com/products/javamail/"]Java Mail API[/URL] | |
Re: Why not ask [B]'they'[/B] who wrote the code !!! | |
Re: JSPs can be deployed on any platform for which a servlet container(Eg Apache Tomcat) has been made or any platform for which you can find an implementation of J2EE Application Server (Eg JBoss, Glassfish). So it will work on All flavours of Linux, Windows, Solaris etc | |
Re: Well what you have is a plain ol' syntax error, on your Line No 3:- [code=java] Thread mythread1; mythread2 [/code] If you want to declare two references on the same line, use a comma (',') to separate the references and not a semicolon (';'), the semicolon is used only to … | |
Re: [QUOTE]Actually I have no clue of how to fix line 4 to 17 but I have fixed the Sum method and it looks something like;[/QUOTE] Well I can see how this can be fixed, but I need to know your motive in writing lines 4 to 17, are they for … | |
Re: In case you do not want your user to press "Cancel" in a JOptionPane dialog, you can actually get rid of that button altogether using the [URL="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html#showOptionDialog(java.awt.Component,%20java.lang.Object,%20java.lang.String,%20int,%20int,%20javax.swing.Icon,%20java.lang.Object[],%20java.lang.Object)"]JOptionPane.showOptionDialog()[/URL] <EDIT> Cleaned some of my errors. | |
Re: Well Sorry to burst the bubble here, But there is a well known work around for the problem you mentioned. If you need to access the Class member in your inner class in the above situation use the following syntax:- [code=java] <Outer_Class_Name>.this.<Member_Name> [/code] The following example should drive the point … | |
Re: [QUOTE]That is not what avinash_545 has asked. He wanted to do that with primitive types (int, float). Not Integer, Double. And even though your code "accidentally" does that, it has already been answered.[/QUOTE] This is the second thread where I have seen 'balmark' post something related to the topic but … | |
Re: From your post I am a bit lost on what you wish to do, but since the thread topic states you need help on arrays, here is a link to[URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html"] the Java Tutorial on Arrays[/URL] | |
Re: Look you need to show us what effort you have put in, in analysing the problem to get to the solution, Most people here are not going to throw the solution at you, You need to show us the effort you have put in solving the problem, only then we … | |
Re: [QUOTE=sweetyyyy;1114981]how we can send binary sms to any mobile particularly nokia mobile from pc using smpp...[/QUOTE] Since you mentioned SMPP, I am assuming you know about UDH, and the providers and what are binary messages. [URL="http://wiki.triangle-solutions.com/index.php/SMS_WAP"]Here[/URL] is a link on how to send WAP push messages, it does not deal … | |
Re: [QUOTE]hi.. where can i get the java source code for multiple regression... [/QUOTE] On your hard drive, in the folder you saved it, once you have typed it out in an IDE. | |
Re: Read [URL="http://www.daniweb.com/forums/announcement9-2.html"]this[/URL] if you wish to receive any help. Edit: Deleted taunt | |
Re: [QUOTE=peter_budo;704045]Please search JSP forum section for the answer is definite there. [I]Hint, I made a specific post on the MVC that is listed often lately [/I][/QUOTE] Shameless self promotion :P | |
Re: [QUOTE]So...I have just begun to whet my appetite for Java today, and I have already run into a stumbling block.[/QUOTE] If you have just begun Java, then I would strongly recommend using the JDK (Java Development Kit which includes the javac compiler and other stuff) directly available from Sun itself … | |
Re: [QUOTE]I just finished learning basic OO concepts and java programming.[/QUOTE] If you just know the basics of Java, then I would suggest putting some more time on getting comfortable with the language by programming in it, tinkering with collections, threads, exception handling, memory management, else while learning JSP you will … | |
Re: [QUOTE=floresj4;1084076]Hi all, I've registered a host name that I have been port forwarding to IIS for html/php pages. I recently setup up some connectors for Tomcat 6 and IIS, but that's not going so well. I can only view a set of sample pages that came with Tomcat and none … | |
Re: Nice read, another article I really liked linked with developing skills in the programming field is [URL="http://norvig.com/21-days.html"]Peter Norvig's Teach Yourself Programming in Ten Years[/URL] | |
Re: [QUOTE=schandru;953250]I need java program for SHA message digest and encrytion and decryption in RSA[/QUOTE] Ok thank you for informing us about your need, hope you succeed in writing it. | |
Re: A request to the moderators please lock this thread as I doubt anything related to original post is bound to be added here anymore and for no reason at all is being brought on the first page repeatedly. | |
Re: First of all Wrong Forum, There is a JSP forum in the Web Development section where this should go. Next you already get a ton of examples bundled with tomcat which is most probably the web server you are using to test your JSPs/Servlets | |
Re: [QUOTE=temsuimsong;779613]anyone please tell me where i can get mp3 player for motorola v3i. Thnks [/QUOTE] Yes and someone tell me where I can get the moon !!! :P | |
Re: IMHO you cant make an OS independent executable (.exe) files, cause these files contain instructions native to the OS and your system architecture, for example an executable made for an 64 bit version of an OS may not run on its 32 bit version. What I think you are looking … | |
Re: Have your tried Googling for your request ??? To name a few we have :- [URL="http://www.netbeans.org"]NetBeans[/URL] [URL="http://www.eclipse.org"]Eclipse with the appropriate plugins[/URL] If you are a web designer even Dreamweaver would be a good option and if you are not satisfied with either of them you can always [URL="http://www.google.com"]Google [/URL]for more. | |
Re: [QUOTE=sbhavan;981598]Do you need any further help? If so post your queries.[/QUOTE] Well if he could ask for a download location for Tomcat, I am betting he would have [I]shamelessly[/I] asked :P if he had any other issues too, not necessary to simply bump this thread for asking that. | |
Re: If I am not wrong Nokia is Finnish. | |
Re: To get this code to work on Linux, just replace the line [icode] system("cls"); [/icode] with [icode]system("clear")[/icode]. BTW gotta say a very nice and useful piece of code. | |
Re: That happens because when you click on your web application directly from tomcat, it goes to the ROOT of your web application and unless you have a set a welcome page in your web.xml ( or enabled directory listing) you are bound to get that error. So to actually display … | |
Re: [QUOTE]I dont want to do it by calling beanid.setname("fadi"); .. is there any other way??[/QUOTE] Well you could use the [icode]<jsp:setPropery>[/icode] tag, but may I ask what you are trying to achieve with it ? | |
Re: Well if you do not know much about [URL="http://www.daniweb.com/forums/thread99132.html"]Java[/URL], then first I suggest going back and getting your foundation in Java strong first (cause after all JSPs are java code embedded inside HTML), then proceed to learning about servlets and then move on to JSPs. As far as learning JSPs … | |
Re: [QUOTE=MoZo1;961759]Just download the one with NetBeans, then you'll get a free IDE ready to use out of the box. [URL="http://java.sun.com/javase/downloads/index.jsp"]http://java.sun.com/javase/downloads/index.jsp[/URL] Or do it the hard way: [URL="http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html"]http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html[/URL][/QUOTE] @ O.P. Recommend do it the hard way as Peter suggested cause that way you will learn more about Java. Don't straight away … | |
Re: You know a little bit googling wouldn't hurt you, Heres one resource which I found via google:- [url]http://onjava.com/pub/a/onjava/2001/03/15/tomcat.html[/url] You will find a ton of other resources if you just look around. | |
Re: This is just plain old Java syntax error, the operator "+" in Java is used to concatenate String objects, remove the extra plus after "a" in all the three statements and you should be good to go, if(c.equals("BillNo")){ /*--error--*/ rs = stmt.executeQuery("select * from orders where billNo="+a+); }else if(c.equals("UserId")){ /*--error--*/ … | |
Re: Well you seem to be confused a lot, if what you are doing is for a production system for some organization I suggest you hand over the task to someone who knows what he is doing. On the other hand if this is just some past time project you are … | |
Re: [QUOTE=komyg;953498]Hi, I need to develop a C++ application for Linux, and I am worried about its compatibility with between different distros, for example if I develop it on Kubuntu, is it possible that I may have compatibility issues if I run it on Gentoo or Open SUSE for example? In … | |
Re: [QUOTE=stonkers;953662]For the past 6 years, I've been doing development work with C# and loved Visual Studio (probably a bad word around here). Intellisense is good, smooth debugging is good. With jsp, there was talk of tools working on better debugging facilities last I developed on jsp. Did any of those … |
The End.