3,892 Posted Topics

Member Avatar for rrocket

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 …

Member Avatar for AFAQ AHMED
0
357
Member Avatar for The Dude

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

Member Avatar for coloradoboy2
0
414
Member Avatar for lllllIllIlllI

Welcome to Daniweb Paul; looking forward to your... Oh wait, you already have more than 1000 posts! ;-)

Member Avatar for BestJewSinceJC
0
292
Member Avatar for jresh_101

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 …

Member Avatar for toughlittleone
0
215
Member Avatar for AnzJ

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 …

Member Avatar for gtugay
0
99
Member Avatar for bayo_84

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

Member Avatar for ~s.o.s~
0
129
Member Avatar for raj2476

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

Member Avatar for you web
0
152
Member Avatar for Eternity[LK]

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

Member Avatar for WaltP
0
238
Member Avatar for themarval

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 …

Member Avatar for mrnutty
0
154
Member Avatar for talha06

The error is exactly what it says, the classloader was not able to locate your class. Where have you placed the Hibernate jar files?

Member Avatar for talha06
0
3K
Member Avatar for jonsca

> I prefer it when the web behaves deterministically Wishful thinking methinks :)

Member Avatar for jonsca
0
182
Member Avatar for daddy89

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 …

Member Avatar for vicne
0
173
Member Avatar for Narue
Re: IRC

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 …

Member Avatar for Nick Evan
0
281
Member Avatar for zac_mathews

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

Member Avatar for zac_mathews
0
1K
Member Avatar for ~s.o.s~

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.

Member Avatar for samir1
0
2K
Member Avatar for 23Zone

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.

Member Avatar for 23Zone
0
129
Member Avatar for ankara84
Member Avatar for Cort3z

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

Member Avatar for masijade
0
171
Member Avatar for TheWhite

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 …

Member Avatar for TheWhite
1
166
Member Avatar for WaltP
Member Avatar for Pro2000

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 …

Member Avatar for sumit1893
0
174
Member Avatar for mrnutty

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 …

Member Avatar for vaultdweller123
0
1K
Member Avatar for ~s.o.s~
Member Avatar for vegaseat
1
206
Member Avatar for tjsail

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.

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

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

Member Avatar for ~s.o.s~
0
110
Member Avatar for beforetheyknew

Also make sure that you override the [icode]hashCode[/icode] method for your custom class to satisfy the hash code contract.

Member Avatar for ~s.o.s~
0
129
Member Avatar for bd338

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.

Member Avatar for ~s.o.s~
0
1K
Member Avatar for cutesniper22

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 …

Member Avatar for ~s.o.s~
0
60
Member Avatar for DavidB

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

Member Avatar for ~s.o.s~
0
143
Member Avatar for mark185

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

Member Avatar for mark185
0
141
Member Avatar for thekashyap

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 …

Member Avatar for jwenting
0
185
Member Avatar for beforetheyknew

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

Member Avatar for BestJewSinceJC
0
105
Member Avatar for serkan sendur

> This has already lead down the path of a typical serkan thread. Indeed and thread closed to prevent any more casualties...

Member Avatar for ~s.o.s~
-4
230
Member Avatar for feoperro

Check out the [URL="http://www.daniweb.com/forums/forum151.html"]RSS, WebServices and SOAP[/URL] forum placed under the Web-Development forums.

Member Avatar for ~s.o.s~
0
105
Member Avatar for purushoth123

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.

Member Avatar for peter_budo
0
173
Member Avatar for youngwolf0

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 …

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

Eclipse all the way given that it's: - Free - Choke full of plugins for almost every conceivable thing out there - Great community

Member Avatar for jwenting
0
151
Member Avatar for KirkPatrick

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 …

Member Avatar for KirkPatrick
0
137
Member Avatar for jemz

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

Member Avatar for jemz
0
104
Member Avatar for ShawnCplus

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 …

Member Avatar for almostbob
0
403
Member Avatar for powerbox

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.

Member Avatar for pelegri
0
248
Member Avatar for deftech69

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?

Member Avatar for ~s.o.s~
0
145
Member Avatar for checho

> is that all? Does that code even compile? [I]Hint:[/I] The way you are invoking the constructor of the super-class is erroneous.

Member Avatar for JamesCherrill
0
834
Member Avatar for cpeeyush1

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

Member Avatar for StefenL
0
203
Member Avatar for klimenta

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

Member Avatar for ~s.o.s~
0
319
Member Avatar for valleymorning

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

Member Avatar for ~s.o.s~
0
62
Member Avatar for testingjsp

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

Member Avatar for ~s.o.s~
0
60
Member Avatar for cissee

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

Member Avatar for Salem
0
80
Member Avatar for Dani

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

Member Avatar for feoperro
3
941
Member Avatar for stocean

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.

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

The End.