3,892 Posted Topics

Member Avatar for sleaze

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.

Member Avatar for ~s.o.s~
0
187
Member Avatar for hooligan2008

> The problem might be that there is 11 digits in you value That shouldn't be a problem since he is storing a string.

Member Avatar for ~s.o.s~
0
175
Member Avatar for happygeek

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! ;-)

Member Avatar for The Dude
7
180
Member Avatar for Roguefoxx

> you need to then scroll all the way back to the top Pressing the HOME key works wonders IMO. :-)

Member Avatar for ~s.o.s~
1
179
Member Avatar for Sin-da-cat

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 …

Member Avatar for farooqiumar
0
2K
Member Avatar for stocean

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. …

Member Avatar for stocean
0
88
Member Avatar for GrimJack
Member Avatar for Nick Evan

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.

Member Avatar for Nick Evan
2
269
Member Avatar for SoulMazer

> 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 …

Member Avatar for SoulMazer
0
187
Member Avatar for billybobc

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, …

Member Avatar for billybobc
0
3K
Member Avatar for Crushyerbones

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].

Member Avatar for Crushyerbones
0
178
Member Avatar for tfitz666

[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]

Member Avatar for tfitz666
0
219
Member Avatar for veerasek

Using something like [URL="http://jtidy.sourceforge.net/"]JTidy[/URL] would be much easier IMO.

Member Avatar for ~s.o.s~
0
6K
Member Avatar for prasannakarthik

Either use an IFRAME to embed an external site on your web page or use the "import" JSTL core tag (<c:import>).

Member Avatar for ~s.o.s~
0
98
Member Avatar for jan1024188

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 …

Member Avatar for luigi10011
-2
20K
Member Avatar for beppeilbuono

What happens when the print method is called? Does it directly print the page or pops up a print dialog?

Member Avatar for jokohu
0
214
Member Avatar for prashw

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.

Member Avatar for Ivan85
1
8K
Member Avatar for P00dle

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 …

Member Avatar for P00dle
0
106
Member Avatar for Stefano Mtangoo

> 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. …

Member Avatar for kingsboro2008
2
193
Member Avatar for sknake

> 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 …

Member Avatar for sknake
2
430
Member Avatar for JRM

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.

Member Avatar for ShawnCplus
0
187
Member Avatar for ceyesuma

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 …

Member Avatar for ~s.o.s~
0
139
Member Avatar for Stefano Mtangoo

> 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]

Member Avatar for Ezzaral
0
153
Member Avatar for pjnewberry

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.

Member Avatar for ~s.o.s~
0
2K
Member Avatar for JBeginer7891

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 …

Member Avatar for ~s.o.s~
0
112
Member Avatar for rs25

> 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. …

Member Avatar for rs25
0
106
Member Avatar for ceyesuma

> <%@ 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.

Member Avatar for ceyesuma
0
1K
Member Avatar for rimorin

> 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 …

Member Avatar for ~s.o.s~
0
107
Member Avatar for Cort3z

Read more about BigDecimal and BigInteger in Java which are the de-facto classes used for performing arbitrary precision arithmetic.

Member Avatar for ~s.o.s~
0
70
Member Avatar for Phaelax

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.

Member Avatar for ~s.o.s~
0
137
Member Avatar for ~s.o.s~

[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 …

Member Avatar for alams
1
176
Member Avatar for adcodingmaster

> 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 …

Member Avatar for ~s.o.s~
0
94
Member Avatar for anonymous alias

/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 …

Member Avatar for diafol
-2
414
Member Avatar for absk

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].

Member Avatar for absk
0
78
Member Avatar for KSM899

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.

Member Avatar for ~s.o.s~
0
124
Member Avatar for mini programmer

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.

Member Avatar for ~s.o.s~
0
113
Member Avatar for kevin wood

> 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.

Member Avatar for Mr.Bit
0
2K
Member Avatar for cwarn23

> 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 …

Member Avatar for Dave Sinkula
0
164
Member Avatar for jephthah

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 …

Member Avatar for jephthah
0
281
Member Avatar for jonsca

...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.

Member Avatar for Narue
1
134
Member Avatar for lllllIllIlllI
Member Avatar for Kenny_Zhou
0
82
Member Avatar for Tauren

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. …

Member Avatar for Ancient Dragon
0
545
Member Avatar for vinithktp
Member Avatar for RichardCrickets

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]

Member Avatar for Ezzaral
0
1K
Member Avatar for Moonrise_state

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 …

Member Avatar for Moonrise_state
0
90
Member Avatar for redmaverick

[URL="http://www.informit.com/articles/article.aspx?p=25280"]Storing & retrieving images using JDBC[/URL].

Member Avatar for ~s.o.s~
0
97
Member Avatar for roverphoenix

Very confusing, very non standard . A better implementation should have been pursued.

Member Avatar for Ancient Dragon
2
248
Member Avatar for _dragonwolf_

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] …

Member Avatar for ~s.o.s~
0
112
Member Avatar for nonshatter

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]

Member Avatar for ~s.o.s~
0
113
Member Avatar for ibanez270dx

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 …

Member Avatar for ibanez270dx
0
5K

The End.