3,892 Posted Topics
Re: Posting the server side code is pointless since browser embedded Javascript works with / operates on the generated content. Plus with no definitions of functions like $find(), $object(), show() how do you expect us to help you out? Maybe this question would be more suited in the C# / ASP … | |
Re: > Yes, but slightly more expected. Hey doesn't this amount to tainting our image? Its not that only men fight... ;-) > It is babaric and exposes that part of man that should be worked upon to be better. Reality is always barbaric. Our ancestors were barbaric, we are barbaric, … | |
Re: Welcome to Daniweb Paul; looking forward to your... Oh wait, you already have more than 1000 posts! ;-) | |
Re: You can apply [ICODE]trim()[/ICODE] method on the given string to trim leading and trailing whitespaces. Also since str forms a part of the URL, make sure you URL encode the string so that special characters are taken care of [e.g. &, ; etc.]. One question though: How did a newline … | |
Re: Just a small hint for you. Make changes to suit your purposes since handing out complete solutions won't be such a good idea... ;-) [code=javascript] document.onmousedown=disableclick function disableclick(e) { var message = "Right click is disabled"; if (document.all) { if (event.button==2||event.button==3) { alert(message); return false; } } if(document.layers || document.getElementById … | |
Re: [quote]But this does not really help me. I still dont know hat to register my subclass. Does anyone?[/quote] The same way you would register the Spring XML configuration file. In your web.xml along with specifying the context configuration location, also specify your context loader class. Something like: [code]<context-param> <param-name>contextClass</param-name> <param-value>net.sos.services.common.MyLoader</param-value> … | |
Re: There seems to be some problem with the way you are using Ajax or in general Javascript. Though I don't have the time to sift limitless lines of Javascript code, the exception which I get on Firefox is "Error: uncaught exception: Permission denied to call method XMLHttpRequest.open". Oh and BTW, … | |
Re: I am a touch typist and my typing speed falls between 60-70 wpm with 100% accuracy (no spelling mistakes) which IMO is pretty decent. My speed/accuracy can be attributed to not using chat/l33t speak even when chatting. ;) | |
Re: Instead of using Strings, use enums for your "face" and "suit" types. Create a separate class Card which would contain the card related information like face, suit, representation etc. Always think about abstractions and layers when creating an application. The "Card" type (Model) can be used for creating a swing … | |
Re: The error is exactly what it says, the classloader was not able to locate your class. Where have you placed the Hibernate jar files? | |
Re: > I prefer it when the web behaves deterministically Wishful thinking methinks :) | |
Re: Something like this: [code=javascript] <html> <head> <script type="text/javascript"> var doConfirm = function(id) { var link = document.getElementById(id); if(confirm("Do you really want to go to Google?")) return true; else return false; } </script> </head> <body> <br /><br /> <div> Click on <a href="http://www.google.com" id="link" onclick="return doConfirm(this.id);">this link</a> to go to google … | |
Re: I guess there is a bit of confusion here as to how the Daniweb IRC works. The Daniweb IRC channel is meant to be a place to hang out and relax; we normally don't entertain technical queries though you are free to answer if someone asks them. The normal protocol … | |
Re: > My questions is how to convert TIMESTAMP value to a Java Date > or Calendar Object ?..... It seems that the Timestamp here refers to the Unix timestamp (which is the number of [B]seconds[/B] elapsed since January 1, 1970 (midnight UTC/GMT). This is in contrast with the way Java … | |
Hello here i am posting the non recursive or no recursion implementation of outputting [B]Permutations of a string [/B]as compared to the recursive implementations previously posted. Any feedback, constructive criticism or comments are most welcome. | |
Re: You are declaring your methods inside another method (the [icode]public static void main[/icode] method) which isn't acceptable in Java. I'd recommend reading the "sticky" thread at the top of this forum for getting started with Java. | |
Re: [icode]|[/icode] has a special meaning when it comes to regular expressions, it's called the [URL="http://www.regular-expressions.info/alternation.html"]alternation symbol[/URL]. If you have something like [ICODE]"##|##|##".split("|")[/ICODE], it's the same as [ICODE]"##|##|##".split("")[/ICODE] since a single pipe symbol is the same as saying "alternate between a blank string and another blank string" which is the same … | |
Re: IMO, the operations(mkdir & chdir) should be part of the same thread of execution. Also, creating a thread-aware Ftp class doesn't seem like a good idea unless of course you provide a provision to schedule multiple FTP actions synchronously. [quote]I would have to create a generic static object and synchronize … | |
Re: It can be done in two ways. The difference between the two methods is obvious: one of them(visibility) doesn't change the page layout while the other(display) does. [code] <html> <head> <script> function hide() { var elem = document.getElementById('myP'); elem.style.display = 'none'; } function show() { var elem = document.getElementById('myP'); elem.style.display … | |
Re: A good filtering criteria is asking what the individual has worked on and evaluating him based on the same. This way even the applicant can't turn all defensive and claim that he was being asked unjust questions (something which happens way too often). This is pretty much applicable to everyone … | |
I wish all the Indians out there a very Happy 61st Republic Day! :-) | |
Re: Which terms are you trying to match here? Post a sample text along with the output you are expecting. Also, the trick to creating complex regular expressions is to build the regular expression incrementally rather than writing it in a single go only to find it doesn't work as expected. | |
Re: You could certainly make the JAR path configurable and then load the class by dynamically creating a class and invoking the method using reflection but it has a few disadvantages: - Reflection is slow, at least slower than normal method calls. - Too many assumptions, assuming the name of class, … | |
Re: Also make sure that you override the [icode]hashCode[/icode] method for your custom class to satisfy the hash code contract. | |
Re: Hint: [icode]c.iterator()[/icode] creates a new [icode]Iterator[/icode] instance. Also, calling [icode]next()[/icode] on an [icode]Iterator[/icode] without testing the presence of an element using [icode]hasNext()[/icode] is not recommended. | |
Re: Create a new task which depends on these tasks so that whenever your custom task is executed, it would in turn execute these three. On a side note, I've always found Eclipse a pleasure to work with when developing web applications esp the auto-publish feature. You should definitely give Eclipse … | |
Re: > Okay. So how do I search for a multi-word string in the forums? I prefer to use Google for my power-searching needs. For e.g., in your case a query like [icode]site:[url]www.daniweb.com[/url] "free online television"[/icode] when entered in the google search field should give decent results. Try it out, works … | |
Re: > If re-direction must occur, it must be the first line of a constructor. Why? To ensure that the parent class is completely initialized before it gets used in the child class's constructor body. If this restriction was not imposed, you could have code like this which really doesn't make … | |
Re: If all you would want to do is import/insert some bulk data in your database, you are better off using a specialized/optimized approach rather than the plain old inserts wrapped under some stupid managed bean method invocations. Given that you are OK with solutions like using a CSV file, I'd … | |
Re: [quote]So essentially, declaring, in the method header, that a method throws an Exception, forces the programmer calling the method to deal with an Exception if one occurs[/quote] Not necessary if you are talking about exceptions in general and not the Exception class. Exception classes which extend RuntimeException and Error can … | |
Re: > This has already lead down the path of a typical serkan thread. Indeed and thread closed to prevent any more casualties... | |
![]() | Re: Check out the [URL="http://www.daniweb.com/forums/forum151.html"]RSS, WebServices and SOAP[/URL] forum placed under the Web-Development forums. |
Re: There are a choke full of online resources out there for the same. A simple google search for "connect to oracle using java" should be good to go. | |
Re: You need to implement some sort of buffered reading/writing; the way your code is currently written(single character I/O) it makes way too many I/O calls which can be a real performance killer. A better option IMO is to use the libraries out there which ease the task of zipping/unzipping; some … | |
Re: Eclipse all the way given that it's: - Free - Choke full of plugins for almost every conceivable thing out there - Great community | |
Re: Initialize [icode]allData[/icode] or [icode]allDccs[/icode] (I guess there is some sort of mix-up here) in the [icode]while[/icode] loop and you should be good to go without having to clear the list. Anyways, to clarify up the matter, there is only one list in your case which is pointed to or referred … | |
Re: > please suggest me if what is the best compiler for java? The [URL="http://java.sun.com/javase/downloads/widget/jdk6.jsp"]JDK provided by Sun[/URL] along with [URL="http://www.eclipse.org/downloads/"]Eclipse as an IDE [/URL]works out pretty well for me. | |
Re: Given that Dani is pretty busy these days, I've created a [URL="http://www.daniweb.com/forums/announcement17-66.html"]new announcement in the Web Development section[/URL] for the time being. As far as the entire 'homework help' debate is concerned, I personally feel that the ones who lose out the most when posting ready solutions are the OP … | |
Re: I'm not quite clear as to what your end requirements are but as far as embeddable containers go, [URL="http://jetty.codehaus.org/jetty/"]Jetty [/URL]and [URL="https://grizzly.dev.java.net/"]Grizzly [/URL]are worth a look. | |
Re: The entire [icode]else[/icode] block code can be replaced with [icode]dat = y - 1986;[/icode]. BTW, how are you persisting the data? DataOutputStream or plain old FileOutputStream? | |
Re: > is that all? Does that code even compile? [I]Hint:[/I] The way you are invoking the constructor of the super-class is erroneous. | |
Re: > is there any solution that IE will not block my java script so the IE > user's can directly see it Simply put, no, otherwise there would be little point in providing security settings for browsers. | |
Re: > Firstly, an abstract class from definition contains atleast one abstract method Really? ;-) [code]abstract class MyClass {}[/code] [quote]I don't want to open a connection to the database, write the record and close the connection, since I have to implement that for the other three subclasses and it's a lot … | |
Re: [URL="http://www.soapui.org/"]SoapUI[/URL] can be used for testing web services. The debugger which comes with your IDE (Netbeans/Eclipse) should be good enough for all your debugging needs. | |
Re: > Is it necessary for the request to come from browser for the server to > maintain session. No, sessions are normally implemented using Cookies. So as long as your application makes sure that the cookie returned in the headers of your very first response are sent to the web … | |
Re: >You are supposed to post something valuable And you are not? Posting one liner questions one after another gives the impression that you are not at all putting in effort for solving your own queries. How about something like: [QUOTE]I've read about X v/s Y at [url]http://random.net[/url] and am still … | |
Re: [QUOTE=cscgal;1003990]I have gotten soooo many mixed opinions lately, and I was wondering what you guys thought of the current style. Please be brutally honest. [snip...][/QUOTE] 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 … ![]() | |
Re: It's just as the error says, the container was unable to compile the JSP. There must be something different in both the environments. It'd be difficult to help you out without getting the entire stack trace along with the details of both the environments. |
The End.