- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 48
- Posts with Upvotes
- 39
- Upvoting Members
- 17
- Downvotes Received
- 23
- Posts with Downvotes
- 21
- Downvoting Members
- 6
- PC Specs
- OS Name Microsoft Windows XP Professional Version 5.1.2600 Service Pack 2 Build 2600 System Type X86-based…
202 Posted Topics
Re: this remove zeros... [CODE] for(int i = 0; i < array.length; i++) { if(array[i] == 0) { remove(i); } [/CODE] this remove zeros which is trailing of numbers like(90,100,)... [CODE] for(int i = 0; i < array.length; i++) { if((array[i] %10)== 0) { array[i]=(array[i] +"").replace("0",""); } [/CODE] | |
Re: follow this to get idea... [URL="http://www.daniweb.com/forums/thread252329.html"]http://www.daniweb.com/forums/thread252329.html[/URL] | |
Re: if your parameter "goods" is fixed then you just rewrite url like [icode]<a href="http://www.example.com?value=goods"> goods </a>[/icode] then get "goods" like this... [icode]<% String goods=request.getParameter("value");%> [/icode] other ideas also available if the parameters are dynamic. you should study how to get the parameters in jsp. | |
Re: chat over lan or internet(like skype..) | |
Re: [CODE]fileName = new File("C:\\Users\\Tristan\\Desktop\\edited\\Assingment 2010-01-16 at 16.11.38", "UserData.xml");[/CODE] might be you were not given correct path for file... check also .. some times file will be taken but no contents in it.. so no user from the file means nullpointerexception may come.. | |
Re: AFAIK, jsp converted into servlet by any application server(tomcat,jboss ,etc) automatically... servlet file itself a java file... so you no need to convert it as java by yourself... | |
Re: [CODE]System.out.printf("%6s %6s %12s", "x1", "x2", "(y1, y2) \n");[/CODE] [COLOR="Green"]output:[/COLOR] (6space) x1 (6space) x2 (6space) (y1, y2) | |
Re: Try using ascii value for equal operator... I think u want to terminate method execution when press = symbol.... | |
Re: Can i send sms using my internet connection....i have router which is enough to transmit bytes...is port need to be open to send and receive message? ...... | |
hi! can any one suggest me tutorial site for spring security... thank you !!!!!!!!!!!!! | |
i run command to update all packages... the error came like this [CODE]E: Couldn't find package libmp3lame-dev[/CODE] what i need to do... | |
Re: [CODE]String a = "abcd/dgws"; a.replaceAll("/", "\\\\b");[/CODE] | |
Re: KeySet which returns all the key values stored in hashmap. from the key you can get corresponding value for that key from the hashmap or hashtable. try to find difference between keyset and map.entry. | |
Re: do you asking program? or what? i can't understand what you come to ask and this is not a zone to show the manual for how to connect pc and weight machine. ask right and get right . edit: try to google for java api for connect external device with … | |
afaik, i know the overall concept about this. but i need to know any in depth difference between them. and how one is better than others? when and where it will be used ? | |
afaik, string is immutable and string buffer is mutable. when we concatenate characters with string new string object will be created. but when we append string buffer it remains the same object. apart from these what are the key and other difference between them?. | |
Re: download jar file for JMS [URL="http://www.java2s.com/Code/Jar/STUVWXYZ/Downloadjavaxjmsjar.htm"]http://www.java2s.com/Code/Jar/STUVWXYZ/Downloadjavaxjmsjar.htm[/URL] and add it in your class path........ | |
Re: The keyword [B]final [/B]makes the declaration a constant. you cannot reassign value. [CODE]eg; final int i=10 i=20;//error:i can't be assigned[/CODE] The keyword [B]static [/B]makes the declaration belong to the class as a whole. A static field is shared by all instances of the class, instead of each instance having its … | |
Re: [CODE]String regex = ("[^\\d\\s]"); String text = "f 5//10 3//2 6//3"; text.split(regex);[/CODE] edit: or [CODE]String regex = ("[\\s\\\\[^\\d]\\s]");[/CODE] the above code pull out all the integer.. try yourself to get clear output. | |
Re: [CODE]int[] number = new int[10]; int[] outnum = new int[10]; int l = 0; int k; int newNum; Scanner scan = new Scanner(System.in); for(int i = 0; i < 10; i++) { System.out.print("Enter number: "); newNum = scan.nextInt(); // read next number k = 0; while (k < l) { … | |
Re: it may help you try this link [URL="http://www.velocityreviews.com/forums/t131194-java-string-encoding.html"]http://www.velocityreviews.com/forums/t131194-java-string-encoding.html[/URL] | |
Re: what you actually want to do? the program you written has no errors look like and it is correct. then what you want.. | |
Re: you should go through guidance given by vendor for the dll api... if you have any error or exception while calling method from dll using jni then you should post your bugs in the vendor's forum.. | |
Re: don't override and replicate threads... the same that you already started this.. [URL="http://www.daniweb.com/forums/thread301298.html"]http://www.daniweb.com/forums/thread301298.html[/URL] | |
Re: it may be a version incompatibility between eclipse 7.5 and your crystal jar and plugin.. see this link may be you can get some ideas... [URL="http://www.myeclipseide.com/PNphpBB2-printview-t-23807-start-0.html"]http://www.myeclipseide.com/PNphpBB2-printview-t-23807-start-0.html[/URL] | |
Re: apart from the EXCELL work, if you need all decimal in jsp page.. use BigDecimal class in java.... | |
Re: what is your problem.. what exception or error you got.. post your run time or compile time error.. then we can help you.. otherwise we can't..we are not here to run and check your coding.. | |
Re: other option u can use EXCELL files... if txt file is mandatory then split or stringtokenizer option may fulfil your requirements. | |
Re: see top of your thread heading like [B]JSP database connectivity according to Model View Controller (MVC) Model 2[/B] [URL="http://www.daniweb.com/forums/thread141776.html"]http://www.daniweb.com/forums/thread141776.html[/URL] | |
Re: stephen is correct.. this is simple problem to solve... | |
Re: [QUOTE=joe'g;1282746]am trying to make a menu with a frame en its not working. and how can i introduce multiple panels in the same frame? [/QUOTE] see this link.. [url]http://www.java-forums.org/awt-swing/10373-adding-multiple-panels-single-scroll-bar-jframe.html[/url] after then post your error or exception | |
Re: EJB the name itself has definition... Enterprise Java Bean.. what is an Enterprise application.. it is a large scale application.. this application needs remote object(Remote method invocation),session(staeful,stateless),data persistence(entity bean),concurrent transaction(JTA),object serialization(Value Object or JTO),security(JCE,JAAS).. these are all fulfilled by EJB.. this EJB specification in MVC is decoupling business logic from … | |
Re: try this i also prepared this for my application .. [CODE]<script language="javascript"> var delay=1000 //set delay in miliseconds var curindex=0 var randomimages=new Array() randomimages[0]="image1.jpg" randomimages[1]="image2.jpg" randomimages[2]="image3.jpg" randomimages[3]="image4.jpg" randomimages[4]="image5.jpg" randomimages[5]="image6.jpg" var preload=new Array() for (n=0;n<randomimages.length;n++) { preload[n]=new Image() preload[n].src=randomimages[n] } document.write('<img name="defaultimage" src="'+randomimages[Math.floor(Math.random()*(randomimages.length))]+'">') function rotateimage() { if (curindex==(tempindex=Math.floor(Math.random()*(randomimages.length)))){ curindex=curindex==0? 1 : … | |
Re: [CODE]JLabel label = new JLabel(); label.setIcon(new ImageIcon(image));[/CODE] in JPANEL add image as Jlabel. you can get other solution by simply google it or here daniweb also has similar threads like this... | |
[B]i can predict your mother's name if you say yours father's name...[/B] so reply me..i have one miraculous mathematical calculation.. it will calculate yours mother name using yours father's name.. come on reply me with your father's name... | |
Re: where you placed your aa1.jsp... it should be under webapps\ROOT folder in Tomcat home directory.. | |
Re: as per my knowledge.. for an Enterprise,web application,Mobile apps choose java(j2ee/j2se/j2me) . for Desktop,Networking,Hardware Interaction,Embedded choose c/c++. another possibility is JNI ,through which we can aid c/c++ support for Java. that is we can leverage our application by combining java and c/c++,perl,etc..using JNI. for small scale web application PHP also … | |
Re: for java see eclipse and jcreator,net beans.. in eclipse file-->new project then it will create one project(web project or java project) if it is java project then simply copy and past your source code folder of existing project.. if it is web then just past your servlet in src folder … | |
Re: 1.prepare for Certification it will fortify your fundamentals. 2.surf some open projects in google then try yourself to do (weather you completed or not its not a problem ). 3.participate in the techie forums like Daniweb.so you can gain knowledge. this is what i am doing now.:) any more suggestion … | |
Re: sorry , i can't get your points.. i think you need DHTML ie,innerHtml to be appeared when you select particular value from the drop down list is it? please clarify about what you print as textbox.. | |
Re: post the error that was thrown when compile/running... | |
Re: when i was tried this program i found nothing wrong.. how do you give file name as input.. if u give just file name like "test.txt"..it thorws error.. but if u give exact path of the file like "c:\\temp\\test.txt"..it is fine.. check it once again..and post the exact error and … | |
Re: this is little bit easy... i don't know why u following two database..may be you said DB instead of Table.. u just update user logged in date ... that is you should have column in table like DATE_LOGGED_IN_LAST... THEN your table has details of logging with recent activity date.. after … | |
Re: [URL="http://www.daniweb.com/forums/thread252329.html"]http://www.daniweb.com/forums/thread252329.html[/URL] refer this link..you can get idea.. | |
Re: you want how do navigate pages.. you must go through servlet mapping and web.xml... otherwise if you are using any framework(struts,spring,hibernate..) see xml file of the corresponding framework.. surf the google.. this is simple u can fix it yourself.. | |
Re: check the java console at browser.. then find out the error... post the console error if u can't fix it.... | |
Re: using css with script as following example... [B]script [/B]: [CODE]function highlightOnLoad() { // Get search string if (/s\=/.test(window.location.search)) { var searchString = getSearchString(); // Starting node, parent to all nodes you want to search var textContainerNode = document.getElementById("content"); // Informational message for search var searchInfo = 'Search Results for: '; … | |
Re: first of all you should understand polymorphism, that is inheritance which is main advantages of java the term "reusability". in terms of inheritance java provide interface and abstract. in an interface for example class A contains method1 and method2. class B contains some methods itself like method3 and method4. in … |
The End.