3,892 Posted Topics
Re: Please post your question as a forum thread and not a code snippet. Also, try pasting your code again given that your code got eaten up when moving this thread from code snippets section to forums. | |
Re: > The problem might be that there is 11 digits in you value That shouldn't be a problem since he is storing a string. | |
Re: I wish all the members of Daniweb a Merry Christmas. Also a big thanks for helping us keep this forum alive and kicking. :-) Oh, and as they say, Santa with gifts FTW! ;-) | |
Re: > you need to then scroll all the way back to the top Pressing the HOME key works wonders IMO. :-) | |
Re: Hmm.. recursive palindrome checker. As far as the ignoring spaces part is concerned, it would be better if you purged your string of spaces or newline characters before passing it to the Palindrome checker function. That way it would be cleaner and easier. As far as the algo for recursive … | |
Re: This can be due to a lot of factors: - Web application was not properly deployed i.e deploy time failure - Attempt to access a path/resource which doesn't exist Without more details like the name of your web application, the URL you are trying to access, your deployment descriptor etc. … | |
Re: IMO this looks like a case of cached values; even though the values were changed via backend [using some sort of query], the cache has not yet being cleared which might lead to such a thing. | |
Re: > How would you recommend me doing this? Should I write the entire > game from the ground up? Should I use a game engine? Start small and definitely go for a game engine; you are trying to write a game and not a game engine. Leave the exercise of … | |
Re: IMO, the error is exactly what the trace says it is; it has found an illegal non-visual character in your markup. Are you sure the error comes *only* when you put the taglib include and works otherwise? If yes, then instead of copy-pasting that line try typing it out. BTW, … | |
Re: This is because you effectively pass a copy of reference and not the list when invoking the method. Read [URL="http://javadude.com/articles/passbyvalue.htm"]this[/URL]. | |
Re: [quote][code] assertArrayEquals(int[] correctDuplicateSort, int[] sort.sort(duplicateInts));[/code][/quote] [icode]assertArrayEquals[/icode] expects two array references as its parameters; what you've got there is an array declaration. The correct way would be: [code] assertArrayEquals(correctDuplicateSort, sort.sort(duplicateInts));[/code] | |
Re: Using something like [URL="http://jtidy.sourceforge.net/"]JTidy[/URL] would be much easier IMO. | |
Re: Either use an IFRAME to embed an external site on your web page or use the "import" JSTL core tag (<c:import>). | |
Re: Here I have put up a small and untested code snippet which moves files in a portable way from one location to another. Just change the file paths or accept the value from user... [code=c] #include <stdio.h> #include <stdlib.h> int main (void) { size_t len = 0 ; const char … | |
Re: What happens when the print method is called? Does it directly print the page or pops up a print dialog? | |
Re: Maybe looking here would help: [URL]http://www.control.com/1026187785/index_html[/URL] [URL]http://www.lvr.com/serport.htm[/URL] [URL]http://www.beyondlogic.org/serial/serial1.htm[/URL] [URL]http://www.daniweb.com/techtalkforums/thread27589.html[/URL] Hope it helped , bye. | |
Re: Using a XML processing library like [URL="http://www.jdom.org/"]JDOM [/URL]would significantly ease your job. All you'd need to do with such a library is: - Parse the source XML document - Get all the JOB nodes and filter the JOB node with the given JOBNAME - Update the child elements of the … | |
Re: > So what I need to know to be Java expert in Web and Desktop > Applications? Apart from the points already mentioned, I'd like to stress on reading good books/code. I've seen people churn out reams and reams of code without being aware that they are writing sub-standard code. … | |
Re: > Well, 650,000 users cannot be involved in every single discussion. I guess nor they would want to as many of them are here for a quick solution. > Even 20 regulars who post in the feedback forum only represent the > most vocal members Correction, the most "faithful" and … | |
Re: What's the string outputted by your echo statement? Can you look at the page source and paste the exact output your see in view source? Also, [URL="http://www.jsonlint.com/"]this [/URL]might help. | |
Re: The problem I see here is: - You don't have a business tier; any business you implement in your beans would have to be replicated when you are asked to use a different view technology. Also, placing the business logic in view components creates tight coupling which is undesirable as … | |
Re: > I don't understand what you mean by type 4 [url]http://java.sun.com/products/jdbc/driverdesc.html[/url] [url]http://www.javaworld.com/jw-07-2000/jw-0707-jdbc.html[/url] | |
Re: This definitely seems like a configuration issue of your hosting provider and normally happens when the requested resource is fetched directly by the web server instead of being redirected to Tomcat and allowing it to process your JSP request. The suggestions provided in [URL="http://mail-archives.apache.org/mod_mbox/tomcat-users/200904.mbox/%3C23226583.post@talk.nabble.com%3E"]this [/URL]thread might help you out. | |
Re: Seems to be a problem with the way your query is created; what's the JDBC type of `patientNo'? Is it a VARCHAR? If yes, then you need to wrap the passed in patient number in single quotes when constructing the query. If you don't, your database engine considers the passed … | |
Re: > Should I use Connection Pooling? Depends; all real life projects use pooling but if you have just started out, cutting down the complexity by not bothering about pooling wouldn't be that bad. There are some SQL mapping frameworks out there [iBatis] which handle all the pooling behind the scenes. … | |
Re: > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> It seems that you are using a pre JSTL 2.0 URI; in pre 2.0 JSTL, the set action is configured to not accept run-time expressions [rtexpr=false]. Try using [icode]<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>[/icode] instead; it should work. | |
Re: > JSTL main purpose is to only make your logic more readable No, it's main purpose is separation of concerns and to make sure that you don't end up mixing your business and view logic. The ability to create reusable custom tags is a big win over having duplicate code … | |
Re: Read more about BigDecimal and BigInteger in Java which are the de-facto classes used for performing arbitrary precision arithmetic. | |
Re: You might want to take a look at an open source browser in java called [URL="http://lobobrowser.org/java-browser.jsp"]Lobo[/URL]. Though it has a limited rendering capabilities when compared to browsers like Firefox, AFAICT, it's the best you can get with Java. | |
[URL="http://www.tuxdeluxe.org/node/285"]Learning the craft[/URL]; though a nice article on learning the crafts of programming, it draws on some of the finer points like needing a mentor and reading good books. Even though the article is about software development, the concept more or less applies to almost all professions out there. Reading … | |
Re: > Why use abstract classes at all? Why not just declare a class and > then make sure you never instantiate any variables of that type? ...because compile time checks are far superior/efficient when compared to your code blowing up at run time. Languages which don't have the concept of … | |
Re: /me takes off the super-mod hat > Here be tygers - and they don't like negativity If someone treats the responses to all the threads in the Feedback forums as some kind of global conspiracy, then that person is seriously messed up in the head. :S > You'll find the … ![]() | |
Re: You can either modify the properties of the command window [cmd] to show more than 500 lines [ALT + SPACE + P -> Screen Buffer Size -> Height] or pipe the output of your java program to some text file [java YourProgram > file.txt]. | |
Re: Are both the class files present in the same "policy" directory? The physical directory structure which holds your .class files needs to reflect your package hierarchy. Read the sticky post at the top of the forum for more information regarding how to run Java programs. | |
Re: I'd assume that you are having problems viewing the output of your program, yes? In that case reading [URL="http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html"]this[/URL] might help. Also, take a look at the forum sticky for more resources to get started with Java. | |
Re: > it is using the innovastudio WYSIWYG editor which i have never come across. Why not try your luck at their support forums? You would have a much better chance of getting help there. | |
Re: > I think the main problem is when I ask a question it's a hard question The main problem is not with the hard question but with the complexity of the question. A complex question is almost always a hard question but a hard question need not always be a … | |
Re: Consider the possibility of Adatapost giving the green rep for the following content: [quote]Points to be noted, raghuhr84 * Give the complete program, that is, give #include<stdio.h> . Becomes easier for us to check. * Use proper indentation * Use code tags around your program (See the forum rules)[/quote] No … | |
Re: ...because there is always more than one solution & more than one way to do things. Technical discussion never die out and there is always room for contributions; though I must agree this involves a bit more housekeeping effort on part of the moderators. | |
Re: Okay buddy, what exactly your intension is ? You have been recommended books in the prevoius posts by Mr. Dragon and Mr. Joe. Refer the previous posts for answer to your question. I'll tell you a cheap way of learning C++. Read the plethora of tutorials available on the net. … | |
Re: [url]http://forums.sun.com/thread.jspa?threadID=567258[/url] | |
Re: Try using the DocumentBuilderFactory instead of explicitly instantiating the parser.[code]public static void main(String args[]) throws Exception { DocumentBuilder builder = DocumentBuilderFactory.newInstance() .newDocumentBuilder(); Document doc = builder.parse(new File("Test.xml")); System.out.println(doc.getElementsByTagName("name")); }[/code] | |
Re: NumberFormat is an abstract class; use its static factory method to get your choice of number formatter.[code]public class MainTest { public static void main(String args[]) throws Exception { // Get a number formatter for the default locale NumberFormat nf = NumberFormat.getNumberInstance(); nf.setMinimumFractionDigits(2); System.out.println(nf.format(1.1)); // Get a number formatter for a … | |
Re: [URL="http://www.informit.com/articles/article.aspx?p=25280"]Storing & retrieving images using JDBC[/URL]. | |
Re: Very confusing, very non standard . A better implementation should have been pursued. | |
Re: The commas and the brackets are a part of the ArrayList class's toString() implementation. If you need your own row representation, either write your own method which does so or better yet, create a custom class called BoggleRow which uses composition or inheritance to mimic the ArrayList class. Something like:[code] … | |
Re: Assuming both the files have the same number of lines i.e. a salt for each string, you need to keep reading the data from your readers till the [icode]readLine()[/icode] method returns [icode]null[/icode]. Something like:[code] while((original= readerOne.readLine()) != null && (salt = readerTwo.readLine()) != null) { JCrypt.crypt(salt, original); }[/code] | |
Re: This doesn't seem to be a JSTL problem since the class missing belongs to the jsp-api.jar library which is a part of the standard distribution [i.e. part of the specification, placed in Tomcat/lib]. Have you tried making your application work outside Netbeans by copy-pasting the WAR file in the Tomcat … |
The End.