3,892 Posted Topics

Member Avatar for rizza_f

> According to thread MVC above, I create web.xml like this Don't repeat your database configuration; what you need is not a servlet level initialization i.e. ServletConfig but application level initialization i.e. ServletContext.

Member Avatar for ~s.o.s~
0
2K
Member Avatar for Es Sayen

So is there any special criteria which distiguishes these 3000 records from the other records. If there is, you can use that clause to delete the required rows. If this is just a mass delete and if your primary key is ordered, you can delete the rows based on the …

Member Avatar for ultimahosts
0
163
Member Avatar for Narue

I [URL="http://googleenterprisesuperstars.blogspot.com/2008/03/how-daniweb-it-discussion-community.html"]fancy Dani mentioning[/URL] that Daniweb search is powered by Google so it wouldn't surprise me if the search is performed against a snapshot and not live data.

Member Avatar for Dani
0
202
Member Avatar for serkan sendur

> 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 doesn't support freedom of speech and hence is friendly. Like I have previously mentioned elsewhere, …

Member Avatar for jasimp
-2
372
Member Avatar for hardik.rajani

> 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 file from the classpath root. > In my web application configuration file is located …

Member Avatar for hardik.rajani
0
136
Member Avatar for bulger2503

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?

Member Avatar for ~s.o.s~
0
85
Member Avatar for funlovingashish

"Stops running" is a pretty vague description; have you looked at the server logs? BTW, reading [URL="http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/"]this [/URL]article might help you get things done the right way.

Member Avatar for funlovingashish
0
225
Member Avatar for Moein.Enayati

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 variables. Simply put, you bind properties of a model to UI controls and leave the …

Member Avatar for ~s.o.s~
0
618
Member Avatar for Hanyouslayer

Read the contract of the [icode]substring[/icode] method; [icode]substring(4, 6)[/icode] == 2 characters. Also get in the habit of using uppercase characters for enums i.e. `BIN' instead of `bin'.

Member Avatar for Dougnukem
1
173
Member Avatar for Altairzq

Thinking about it in this way might help your cause: [code] power(2, 3) => - 2 * power(2, 2) - 2 * (2 * power(2, 1)) - 2 * (2 * (2 * power(2, 0))) - 2 * (2 * (2 * 1)) - 2 * (2 * 2) = …

Member Avatar for ~s.o.s~
0
132
Member Avatar for gk0110

>Is it possible to do this type of pagination thru client side scripting... Not just client side scripting unless you plan on retrieving *all* the records in a single go and looping or rendering them selectively. This is certainly not recommended since you end up retrieving data which might not …

Member Avatar for ~s.o.s~
0
270
Member Avatar for Fibinacci85

Sorry, but as per the forum [URL="http://www.daniweb.com/forums/announcement9-2.html"]rules[/URL], no effort == no help.

Member Avatar for verruckt24
0
114
Member Avatar for Freddie_M

Sorry, but as per the forum [URL="http://www.daniweb.com/forums/announcement9-2.html"]rules[/URL], no effort == no help.

Member Avatar for ~s.o.s~
0
22
Member Avatar for Nick Evan

> Clear your browser cache. Any reasons why you are not sending appropriate HTTP cache headers?

Member Avatar for Dani
0
208
Member Avatar for timon_zed

You essentially throw away almost all the records read by reading the database entries in the ResultSet loop by not doing anything. If you want to compare the user entered value with the ones present in the database, do the comparison in the ResultSet loop. Set a flag and break …

Member Avatar for timon_zed
0
142
Member Avatar for jmodeveloper

> when we are giving print from the client it does it print in client but its > get print in the server This is because the code you have written gets executed on the server. In a typical web app setting, you don't [and shouldn't IMO] have control over …

Member Avatar for ~s.o.s~
0
103
Member Avatar for .11

> I think I need multiple loops to get rid of the commas, dollar sign, and > end bracket separately. Not required IMO; a single application of the replaceAll method of the String class on each line read should do the job. Use a regular expression for your task.[code] public …

Member Avatar for .11
0
114
Member Avatar for destined2bbless

> Using the TreeSet class, how do I accomplish this It's pretty simple; just keep on reading the lines from the text file and add the last entry i.e. the publisher name to a [icode]TreeSet<String>[/icode]. So you'd probably have a `parse' method which would take a File instance [the handle …

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

IMO, you don't need a List when creating a Trio; I'd personally swap the usage of List in Trio and SortedTrio i.e. make Trio have three variables first, second & third whereas use a List only when the sorting functionality is required. Also, you don't need to manually sort the …

Member Avatar for ~s.o.s~
0
235
Member Avatar for and12

Can we all now stop with this [I]and12[/I] bashing please? Though [I]and12[/I] made a selfish request in this thread, he has nowhere come across as being rude. He asked a question and was given an appropriate answer by the forum moderator. Daniweb regulars ganging up on a new member isn't …

Member Avatar for ~s.o.s~
-2
464
Member Avatar for alsoumhi

Not sufficient information to troubleshoot the issue I must say. Anyways, is this a compile time or runtime error? You need to paste the exact error you are getting along with the concerned JSP snippet to get appropriate help.

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

Not sufficient information to troubleshoot your issue I must say. Anyways, have your tried running the BAT file[startup.bat in BIN folder of Tomcat] rather than starting Tomcat as a service? Does it work that way? Also take a look at the log files [LOGS folder of Tomcat] to find the …

Member Avatar for ~s.o.s~
0
73
Member Avatar for Salem

I did see it when I first logged in, but trying after around half an hour made it go away.

Member Avatar for MosaicFuneral
1
984
Member Avatar for rp_prasanna

Or just use [icode]Pattern.quote('your-pattern')[/icode] and let the [icode]Pattern[/icode] class do the heavy lifting...

Member Avatar for ~s.o.s~
0
94
Member Avatar for hansino

> Can you be more specific please . > I know that int data type store/hold integers or whole numbers. It's pretty simple; you just need to create two methods which have different contracts defined as part of the problem definition. One takes in a double precision number of the …

Member Avatar for crunchie
0
237
Member Avatar for Dani
Member Avatar for kaninelupus
0
41
Member Avatar for sknake

AFAICT, code highlighting on Daniweb works by rendering two DIV's, a syntax highlighted DIV which is created at the server side [i.e. no client side code highlights as used by many forums out there] and a normal DIV which contains the plain text version of the code [no style classes …

Member Avatar for Dani
0
404
Member Avatar for EddieC

I see a hanging [noparse][/url][/noparse] in the first paragraph. And as far as the comments regarding Grails are considered, why would a company/team/developer planning to use RoR suddenly consider Grails? If you are planning to shift from the Ruby ecosystem to the Java ecosystem, the closest you can get to …

Member Avatar for ~s.o.s~
0
666
Member Avatar for Dave Sinkula

What a thing to write Mr. Dave!! Really an interesting read (both the story as well as the quote at the end).

Member Avatar for Aia
0
196
Member Avatar for vijayan121

Nice snippet, though it would be better if you included the output so that beginners don't have to compile and execute your code to understand what is going on.

Member Avatar for ~s.o.s~
0
462
Member Avatar for roryt

But this code won't work if the text field loses focus and then gains it again and for a variety of other conditions. With a bit of tweaking you guys should get the desired result. Here is my stab at it...: [code=html] <html> <head> <title>Cool Text Effect</title> </head> <body> <label>Click …

Member Avatar for ServletEst
0
468
Member Avatar for vicky_dev

...and not to forget the [I]using namespace std; [/I]which has to be placed after the includes so that we can start using the constructs under the standard namespace without prefixing each of them with [I]std::[/I]

Member Avatar for manutd
0
575
Member Avatar for gabriel_wadley
Member Avatar for nanodano
Member Avatar for teddy13

The code does not even compile. Please verify that the code works before posting it. Next time such imcomplete codes will be deleted... This time I am ediiting so that it just works.. [code=cpp] #include<iostream> #include<string> using namespace std; int main() { string s; cout<<"Type something...\n"; getline(cin,s); string::iterator end = …

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

The behaviour of fflush( stdin ) is always undefined whatever be the compiler -- its just that some compilers let you get away with it. And as far as sorting the linked list is concerned, there is another simple way of doing it -- sort the list as and when …

Member Avatar for virusfree
0
151
Member Avatar for ~s.o.s~

Hello to everyone out there. Recently many people on different forums have been asking how to make a recursive function which reverses the string passed to it. But unlike the normal recrusive funtion which only prints out the reversed string, this implementation returns a pointer to reversed string.

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

The program parses the digits in the number supplied to it and converts it to aplhabetical equivalent. Fore eg. input: 1234 output: one two three four This is a simple exercise for newbies, must try out. Tested and works under ideal input conditions.

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

Some constructive comments: 1. exit (0) means successful return from a function. In case of unsuccessful memory allocation use, exit (1) instead of exit (0) 2. Always send the errors to the error stream rather than the output stream. In most of the cases the error stream is the ouput …

Member Avatar for roverphoenix
0
376
Member Avatar for Jaks_maths

The above method for gettign the string from the user wont work and would give an run time error since the user input is stored in a character ptr for whom no memory has been allocated. Better use [code] [COLOR=#339933]#include<stdio.h>[/COLOR] [COLOR=#339933]#include<string.h> [/COLOR][COLOR=#993333]char[/COLOR] *strrev[COLOR=#66CC66]([/COLOR][COLOR=#993333]char[/COLOR] *str[COLOR=#66CC66])[/COLOR] [COLOR=#66CC66]{ [/COLOR][COLOR=#993333]char[/COLOR] s[COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66]][/COLOR],*t; [COLOR=#B1B100]if[/COLOR][COLOR=#66CC66]([/COLOR]strlen[COLOR=#66CC66]([/COLOR]str[COLOR=#66CC66])[/COLOR]==[COLOR=#CC66CC]1[/COLOR][COLOR=#66CC66]) [/COLOR][COLOR=#B1B100]return[/COLOR] &str[COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]0[/COLOR][COLOR=#66CC66]][/COLOR]; …

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

Dont use "gets( )" for accepting string input from user -- It is a bad programming practice and the function itself is flawed as it doesnt check for buffer overflows. Use [search]fgets( )[/search] instead. Avoid use of globals if possible -- there is no condition where the program cant be …

Member Avatar for ~s.o.s~
0
172
Member Avatar for daveyb91

> So I want to complain on your tolerance here, its way way way to > low. This isn't that bad; really. There are forums out there which close your threads or delete "both" your threads in case you double post. There are forums out there which don't answer your …

Member Avatar for The Dude
0
179
Member Avatar for synplace

Also look into [URL="http://commons.apache.org/validator/"]Commons Validator[/URL]. Though it doesn't have a large tutorial collection or user base, there would certainly be a few things out there which you might find interesting.

Member Avatar for ~s.o.s~
0
93
Member Avatar for shell81287

Shouldn't this thread be closed or atleast a new thread be created out of it ? I'll leave it to Mr. WaltP and Wolfie to decide since it has both of your replies so i cant close the post or delete the threads.

Member Avatar for freedert
0
87
Member Avatar for docesam

> python got strong typing ,but not security I guess 'masijade' meant that Python is not [I]statically[/I] typed like Java and hence you lose out on aggressive re-factoring and excellent IDE support.

Member Avatar for tux4life
0
152
Member Avatar for llemes4011

@llemes Is this regarding the game project you were talking about? If yes, then this approach seems kinda wrong. AFAIK, in case of network games, the graphics are *never* rendered at the server and transferred to the client. The server doesn't dictate what has to be displayed but rather how …

Member Avatar for llemes4011
0
796
Member Avatar for djdanjo82

This should help you get started: [url]http://www.jaredrichardson.net/articles/junit-tutorial.html[/url]

Member Avatar for ~s.o.s~
0
193
Member Avatar for MattEvans
Member Avatar for lllllIllIlllI

More eye-candy, a more stable forum software and long time bugs being fixed is what I'd bet my money on. Of course a better way to manage code snippets and blogs would be a nice to have thing. :-) Also, since Daniweb uses vBulletin, you can read about the features …

Member Avatar for The Dude
0
111
Member Avatar for shockwave_05

> Who can solve this? You, of course will try or show us what you have tried/thought so far and the forum members will try to help you out.

Member Avatar for chingkoysilog
0
2K

The End.