3,892 Posted Topics
Re: You are comparing a Scanner object with a String object. | |
Re: The problem is with this line [icode]firstcube = static double pow(double first, double 3);[/icode] which is invalid. When invoking methods, you don't need to specify the method modifiers along with their parameter types. I'd recommend reading the Java tutorial on Sun or the sticky at the top of this forum … | |
Re: What is the name of your web application? If it's school, then trying removing /school from the URL pattern. It should work. Also, specify the location of all your resources wrt the web app root i.e. exclude the `school' directory. | |
Re: Anything placed in the JSP between the <%! %> tags [jsp declaration tag] is placed outside the service() method but inside the auto-generated servlet class. You can of course create a method containing the given piece of code, which can be invoked from within the code placed inside the <% … | |
Re: Oh and BTW, once you are done with understanding how web services work, try splitting your logic in layers like the business[model] layer, database[persistence] layer etc. Database access from a web method is err... bad. :) | |
Re: > i miss getting beat up by her. You can of course pop in the Daniweb irc to get beaten down in real time... ;-) | |
Re: Does this address look familiar ;-) [code] Boucher, Cindy Cindy.Boucher@suddenlink.com Cebridge Connections 12444 Powerscourt Drive St. Louis, MO 63131 US 314-965-2020[/code] | |
Re: This issue was [URL="http://www.daniweb.com/forums/thread208180.html"]brought up & discussed [/URL]to some lengths a couple of months back. > As you can see I have no tags whatsoever in "plaintext" This problem crops up only when you arrive at Daniweb via a search made on google; all the highlighted terms [in yellow] in … | |
Re: It isn't, it's Elbonian. It's the new language of inner city ghettos, spreading across the world from India. Sheesh, talk about baseless accusations...:mad: | |
Re: Happy B'Day girly. ;-) May you live a long and prosperous life. [B]PS:[/B] Infractions for those who don't wish you. :-) | |
Re: I hope you don't say the same thing to your customers... | |
Re: > Should poster who answers a question only be a qualified MSCE? Definitely not; a question posted on Daniweb is always open to discussion. Personal attacks as a means of adding more value to the discussion or correcting an existing incorrect [supposedly incorrect?] answer is not acceptable as per the … | |
Re: Remove the semi-colon from your JSP expression. | |
Re: > Does anybody know how I can append to the array You can't. The best you can do is perform a copy-on-write if the content to be written is more than the initial capacity with which the array was created. Try using an implementation like ArrayList which relieves you of … | |
Re: Maybe a custom function like [URL="http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/"]getElementsByClassName()[/URL] ? | |
Re: [quote]I want to implement this technique in an Inventory software where ,when a user buys e.g Ford Mustang the units sold shall be decremented from 1000 which is the total available units in stock.[/quote] You'd typically look-up the item of interest and then perform the necessary operations on it rather … | |
Re: >I like the reputation system better I personally feel that the reputation system is a complete fail and the point system introduced by StackOverflow is awesome. You get a vote-up if the answer is acceptable; a vote-down is not. The reputation generated for each vote-up/vote-down is the *same* irrespective of … | |
Re: > The following program doesn't work in my Linux system's Mozilla firefox. > Any help to fix this problem is appreciated This isn't a browser problem. Make sure that your page which hosts EL snippets has an extension of [icode].jsp[/icode] and not [icode].html[/icode]. The container serves HTML pages as static … | |
![]() | Re: AFAICT, Dani uses a customized version of vBulletin so any feature which isn't supported out-of-the-box has to be patched in. BTW, why do you need this feature? I mean, how different is it from going to your own profile and viewing the solved threads in each forum. IMO, the chances … ![]() |
Re: >It preserves your formatting and uses a terminal font: ...but is still not enough since the original CODE tags didn't add line numbers. This auto-line numbering feature kinda breaks posts in which code tags were used for the sole purpose of preserving formatting and using a terminal font *without* the … | |
Re: > The code fails if the url does not end in a filename. So if I were to input: You have a URL and it points to a resource; filename or not, it doesn't matter. There are multiple representations of exposing the same resource. The different representations don't matter as … | |
Re: > Is there something similar to this that I can use for a Java Web App? Yes, you can either use the <jsp:include> standard action or [URL="http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags5.html"]tag files[/URL] to include reusable view templates in your web pages. Edit: Just keep in mind that the above mentioned techniques include the content … | |
Re: > there's no way of knowing for sure whether or not it's automated. > Someone could set up a greasemonkey script, couldn't they? I'd again like to suggest what I initially suggested for the "Tags" feature. Instead of having a blanket rule applicable to all, the time duration should be … | |
Re: Hmm.. hey buddy is there a problem with your code or you want to submit an example to help others out ? | |
Re: Something like [URL="http://tangentsoft.net/mysql++/"]this ?[/URL] | |
Re: This forum is basically for generic Javascript questions which don't necessarily refer to a particular library. This question would be more appropriate in the Prototype.js forums where you have better chances of getting help. :-) | |
Re: 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? There are a number of ways in which the problem can be rectified but without knowing the … | |
Re: [QUOTE=JamesCherrill;1021967]Maybe the use of <E> in the iterator class is taken as a new declaration of a type, and masks the <E> that is declared for the outer class? If so, maybe you could declare the iterator class as public class CircularListIterator<F extends E> ...[/QUOTE] IMO, though the analysis is … | |
Re: > data[i][k + 1] = new Boolean(false); Better yet; [icode]data[i][k + 1] = Boolean.FALSE[/icode]. Same result, no unnecessary object creation. | |
Re: I can see both the links. Try clearing the cache using a force refresh. | |
Re: Read [URL="http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=1"]Why Runtime.exec() won't work?[/URL] If you are using Java 1.5 or more, look into [URL="http://mindprod.com/jgloss/exec.html#PROCESSBUILDER"]ProcessBuilder [/URL]class which has replaced the old "exec" way of spawning processes. | |
Re: > 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 that you are not placing your class in a package. Make it a habit to put your classes … | |
Re: > By number of characters l mean not punctuation or a space Look into the [icode]isLetter[/icode] method of the [icode]Character[/icode] class; modify your logic to increment the count only if the above method returns [icode]true[/icode]. | |
Re: [icode]form.submit()[/icode] causes a form submit irrespective of whether that form has been assigned a real or dummy action. Plus on a page at a time only one form can be submitted. The best way here would be to rethink your design and encapsulate all the elements in the same form … | |
Re: You can: [LIST] [*]create an array of 5 elements (either statically or on the fly ) [*]run a loop which will generate random number [*]search whether that random number is already in the array [*]as long as the number is one present in the array, keep on generating random numbers. … | |
Re: > 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 the RegExp() constructor. @vishalanuj That regex won't work. Try something like:[code=javascript] // This … | |
Re: > 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 or even deal with the obvious truncation of values [think 1/3]. @Domenzup … | |
Re: > Can i remove that duplicated post ?? Just report that post using the "Flag Bad Post" option and it should get appropriately handled. | |
Re: [quote=The Dude;272711] Anyone else using Firefox have issues if they click the link above??[/quote] No I dont have any issues with this thing, it just asks me to save the file to a specified location | |
Re: > is it impossible to do it without that active x? AFAIK, yes, it's not possible. | |
Re: > Or you could do something along the lines of IE has problems with setAttribute. Plus assigning a function reference to an event listener is better than assigning a blank string to it. | |
Re: First things first...post your code in code tags as the background image in which you write your post says. Read the forum announcements for more details. Dont use void main( void ). This is the wrong defination of main( ) . It actually is int main( ). Post the specifications … | |
Re: > 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* developed using JEE. You can develop a core business functionality using web services i.e. expose your business … | |
Re: 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. | |
Re: > 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. | |
Re: 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 tags of each and every thread kinda seems twisted. I guess I understand your rationale behind … | |
Re: > Aren't web languages also programming languages or do you disagree? Though a majority of the developers out there regard HTML as a programming language, practically speaking, it isn't. It's a *markup* languauge. BTW, it's Java and ActionScript for me ATM with a bit of Ruby thrown in here and … | |
Re: JNI would be too low level; try something like [URL="http://www.swig.org/"]SWIG [/URL]or [URL="https://jna.dev.java.net/"]JNA[/URL]. | |
Re: > 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 [URL="http://www.javamex.com/tutorials/synchronization_volatile.shtml"]volatile[/URL] keyword might just do the job. |
The End.