Forum: JSP 13 Days Ago |
| Replies: 4 Views: 459 > What i want to do is to search the string
Depends on what kind of search it is; if it's just searching for a single character or a string you can use the overloaded versions of the indexOf... |
Forum: JSP 13 Days Ago |
| Replies: 4 Views: 459 You say that the form sends an empty string but your error checker doesn't detect empty strings? Have you tried debugging your code to see what *actually* the error checker is checking against?
... |
Forum: Java 17 Days Ago |
| Replies: 6 Views: 230 > Thank you - my understanding of generic types is still somewhat limited.
When in doubt, always look at the standard library code which comes prepackaged with the JDK. For e.g. in this case,... |
Forum: Java 17 Days Ago |
| Replies: 6 Views: 230 IMO, though the analysis is correct, the solution provided isn't because an Iterator over a collection of elements of type E isn't the same as an Iterator over a collection of elements of type F... |
Forum: Java 17 Days Ago |
| Replies: 4 Views: 227 > Could that why the created it as an object?
There is absolutely no valid reason as to why a Boolean object needs to be created if one already exists and is ready to use i.e. considering that a... |
Forum: DaniWeb Community Feedback 17 Days Ago |
| Replies: 9 Views: 462 Hmmm...insanely strange. If you are talking about the 'Flag Bad Post' link, see it in the attached screeny. |
Forum: DaniWeb Community Feedback 17 Days Ago |
| Replies: 9 Views: 462 Have you tried clearing your cache? Because I can see the 'Flag Bad post' link... |
Forum: DaniWeb Community Feedback 17 Days Ago |
| Replies: 9 Views: 462 I can see both the links. Try clearing the cache using a force refresh. |
Forum: JSP 17 Days Ago |
| Replies: 1 Views: 334 Read Why Runtime.exec() won't work? (http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=1)
If you are using Java 1.5 or more, look into ProcessBuilder ... |
Forum: Java 17 Days Ago |
| Replies: 4 Views: 227 > data[i][k + 1] = new Boolean(false);
Better yet; data[i][k + 1] = Boolean.FALSE. Same result, no unnecessary object creation. |
Forum: Java 17 Days Ago |
| Replies: 2 Views: 171 > Can anyone help? help
Check if the Client class has a no-arg constructor in case you have explicitly provided a overloaded constructor. Also, looking at the error message gives an indication... |
Forum: Java 17 Days Ago |
| Replies: 5 Views: 262 > By number of characters l mean not punctuation or a space
Look into the isLetter method of the Character class; modify your logic to increment the count only if the above method returns true. |
Forum: JSP 25 Days Ago |
| Replies: 5 Views: 440 > Does [0-9] need to be in quotes?
No, it needs to be placed inside forward slashes to be considered as a regular expression. Of course, if you place them inside quotes, you need to explicitly use... |
Forum: DaniWeb Community Feedback 27 Days Ago |
| Replies: 5 Views: 620 > Can i remove that duplicated post ??
Just report that post using the "Flag Bad Post" option and it should get appropriately handled. |
Forum: Java 28 Days Ago |
| Replies: 3 Views: 243 > You don't need to do the conversion to int and back; just send the
> double in text format and parseDouble(...) at the Java end.
I don't think that would handle values like +INF, -INF and NaN... |
Forum: DaniWeb Community Feedback 30 Days Ago |
| Replies: 90 Views: 4,688 > No, I mean for people who don't want to install another FF plugin (b/c
> low resources for so many plugins, etc) but who already have an
> adblocker installed.
Yes again. If you already have... |
Forum: DaniWeb Community Feedback 30 Days Ago |
| Replies: 90 Views: 4,688 > sos, do you think that blocking addthis with an adblocker would work?
Yes, it does work. Plus, NoScript isn't exactly an adblocker. See attached. |
Forum: DaniWeb Community Feedback 30 Days Ago |
| Replies: 90 Views: 4,688 Apart from the top portion of each post which houses the timestamp along with the vote-up links everything looks pretty decent. I still miss the plain old code tags which didn't force the numbering... |
Forum: JavaScript / DHTML / AJAX 30 Days Ago |
| Replies: 4 Views: 428 > is it impossible to do it without that active x?
AFAIK, yes, it's not possible. |
Forum: JSP 33 Days Ago |
| Replies: 1 Views: 300 > I want it to have always 1 row length even it is as long as a novel.
AFAIK, you can't, at least not unless you are using some excel manipulation API like POI. |
Forum: DaniWeb Community Feedback 33 Days Ago |
| Replies: 6 Views: 443 Yes, as long as it's not a space, it would work. For a more standardized naming approach, trying replacing the underscore with a hyphen. |
Forum: Java 33 Days Ago |
| Replies: 4 Views: 2,889 There are many good books, blog posts and articles out there for getting started with JEE; your best bet would be the free JEE 5 tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/)hosted by... |
Forum: DaniWeb Community Feedback Oct 2nd, 2009 |
| Replies: 21 Views: 1,301 > However, I do understand your point and so I did make some
> adjustments [snip]
Sounds good enough, it shouldn't be a problem as long as this whole thing is configurable. And the initial... |
Forum: DaniWeb Community Feedback Oct 2nd, 2009 |
| Replies: 21 Views: 1,301 >Oh I see, you replaced the existing tags with spam.
Maybe you missed some of the important points of my previous post. My point being, if a member with zero posts can edit the tags for a given... |
Forum: DaniWeb Community Feedback Oct 2nd, 2009 |
| Replies: 21 Views: 1,301 > [snip]Plus, tags can be easily removed by moderators and there is a
> limit to the number of tags that can be applied to any given thread, how
> many can be applied by the thread starter.... |
Forum: DaniWeb Community Feedback Oct 2nd, 2009 |
| Replies: 21 Views: 1,301 > The idea is that the masses may want to tag a thread in a way that the
> thread [snip]
I do understand the rationale behind your using tags but concerned about the ways in which they can get... |
Forum: Java Oct 2nd, 2009 |
| Replies: 2 Views: 276 JNI would be too low level; try something like SWIG (http://www.swig.org/)or JNA (https://jna.dev.java.net/). |
Forum: Java Oct 2nd, 2009 |
| Replies: 4 Views: 2,889 > also, would this be something to do with JavaEE instead of JavaSE?
Depends on what you need to learn and where your expertise lies, but yeah, nowadays the core business functionality *is*... |
Forum: DaniWeb Community Feedback Oct 2nd, 2009 |
| Replies: 21 Views: 1,301 Allowing thread owners to tag their threads seems like a nice idea; if properly used can be used to easily hunt down difficult to search threads.
But allowing *everyone* to mess around with the... |
Forum: Java Oct 1st, 2009 |
| Replies: 2 Views: 156 > The local memory is not reconciled with the main memory
This might be because of each Thread is having a cached copy of your data; using the volatile... |
Forum: JSP Sep 30th, 2009 |
| Replies: 21 Views: 1,934 If you are using the connection pooling mechanism provided by the container instead of creating your own connection pool [as mentioned in my first post], you need to:
- remove the database related... |
Forum: DaniWeb Community Feedback Sep 27th, 2009 |
| Replies: 17 Views: 1,109 > All these colorful appearance of daniweb makes me get the impression
> that this site is friendly and supports freedom of speech until one ...
> turkish flagged my post as bad
This site... |
Forum: DaniWeb Community Feedback Sep 26th, 2009 |
| Replies: 5 Views: 452 I fancy Dani mentioning (http://googleenterprisesuperstars.blogspot.com/2008/03/how-daniweb-it-discussion-community.html) that Daniweb search is powered by Google so it wouldn't surprise me if the... |
Forum: Java Sep 24th, 2009 |
| Replies: 1 Views: 216 AFAICT, there is no such method which does that. BTW, why would you want such a method? Why not just manipulate the source array first and then add it to the ByteBuffer? |
Forum: Java Sep 24th, 2009 |
| Replies: 2 Views: 371 > But in second, I am getting exception that filenotfound.
Because the file "spring.xml" is not present at the root of the class path; you need to state the hierarchy or the path to your config... |
Forum: JSP Sep 23rd, 2009 |
| Replies: 2 Views: 688 "Stops running" is a pretty vague description; have you looked at the server logs? BTW, reading this (http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/)article might help... |
Forum: Java Sep 23rd, 2009 |
| Replies: 7 Views: 509 The way binding normally works is that you bind UI controls to properties of an object/instance. This is done because in most of the cases there is no way you can detect changes to standalone... |
Forum: Java Sep 21st, 2009 |
| Replies: 10 Views: 940 Your second file is missing the class imports. I don't see the declaration of your `Convert' enum class. Your naming conventions are still off.
These are pretty simple error messages to hunt down... |
Forum: Geeks' Lounge Sep 21st, 2009 |
| Replies: 3 Views: 332 >i also tried firefox but i didnt like it because of its limited javascript and
>css support
Wha..? Oh, you are joking, right? |
Forum: Posting Games Sep 21st, 2009 |
| Replies: 1 Views: 732 Ooh, ooh, how come I didn't notice this thread? Anyways, try guessing this for starters; simple of course: |