2,443 Posted Topics

Member Avatar for subii P
Member Avatar for masijade
0
120
Member Avatar for alsoumhi

[QUOTE=alsoumhi;932728]thank you very much but what Id or name, this is my menu selection: <select> <option value ="sydney">Sydney</option> <option value ="melbourne">Melbourne</option> <option value ="cromwell">Cromwell</option> <option value ="queenstown">Queenstown</option> </select> what is the name or id for that[/QUOTE] Add one. [code] <select id="...." name="....."> <option value ="sydney">Sydney</option> <option value ="melbourne">Melbourne</option> <option value …

Member Avatar for masijade
0
74
Member Avatar for hajjo

forget roseindia. The only thing you'll learn there is bad habits. javac like with every other Java library.

Member Avatar for BestJewSinceJC
0
118
Member Avatar for elnuk

Like I have said before (and I believe to you) was write a servlet that takes a filename as one of the parameters and then have that servlet check the session information before returning the contents of the file. It is [i]not[/i] that hard, already. I am [i]not[/i], however, going …

Member Avatar for elnuk
0
778
Member Avatar for Masood Ali

Use PreparedStatement and new Date (using java.sql.Date not java.util.Date). If you question is how to formulate a query in general, then please find an SQL forum.

Member Avatar for Sakthimeenakshi
0
200
Member Avatar for zghotlawala
Member Avatar for jdfskitz
Member Avatar for ~s.o.s~
0
104
Member Avatar for garimarajesh

Do Your Own Homework. We have no problem with a specific question about a specific part of your code, but we do not do wholesale homework assignments. [url]http://www.rentacoder.com/[/url]

Member Avatar for nipunsaxena
0
98
Member Avatar for sotvisal

[QUOTE=harsh2327;929574]Please explain your problem properly. Cant get it what you want. From what I have understood... to find whether a string that ends with [B]","[/B] or [B]"."[/B], eg. [CODE=java] String str = "Hello World."; if(str.charAt(str.length-1)==',' || str.charAt(str.length-1)=='.') { // Your Code } [/CODE][/QUOTE] Huh? What's wrong with the "endsWith" method …

Member Avatar for harsh2327
0
115
Member Avatar for Gayatri1987

This "dynamic population", as you call it, would happen on the client side, but JSP, of course, runs on the server side, so you have three options 1. Send [i]all[/i] of the data (either in the form of hidden fields or prepopulated JavaScript Arrays) and use JavaScript to replace the …

Member Avatar for peter_budo
0
2K
Member Avatar for keziaebitner

Okay? So what do you have, and what error/compiler messages are you getting from it, or what is it doing that you don't expect, or vice-versa. You will notice the terms and conditions of this site (which you agreed to when you signed up here), forbid us simply giving you …

Member Avatar for campbellm
0
95
Member Avatar for auhuman

A buffer for what? There are a few classes actually [i]called[/i] buffer in the API. You did read the API docs, right? If worse come to worse, write your own.

Member Avatar for auhuman
0
86
Member Avatar for keziaebitner

As I told you in your multipost: Okay? So what do you have, and what error/compiler messages are you getting from it, or what is it doing that you don't expect, or vice-versa. You will notice the terms and conditions of this site (which you agreed to when you signed …

Member Avatar for masijade
0
82
Member Avatar for haf

Gods, what a bunch of lazy a**holes. Do your own homework. No one here, who has even a half an ounce of either sense and/or honor, will do it for you. God forbid if we did, and then had to work with your lazy, cheating a**es.

Member Avatar for peter_budo
0
382
Member Avatar for Ruw

Ha! Ha! Ha! Ha! Read the terms and agreements of the site again. Which, by the way, you agreed to when you created your account here.

Member Avatar for masijade
0
92
Member Avatar for smoore
Member Avatar for chiotti

Well, with this line [code] while (t.hasMoreTokens() && t.countTokens() <= numNodes) [/code] the "3" that marks the start of the next "matrix" also passes the test. Wouldn't ">1 and <= num" work better? Edit: Also, seeing as how those single numbers declare "square" matrices, it would make even more sense …

Member Avatar for masijade
0
2K
Member Avatar for BestJewSinceJC

The associated errors would help. Also, provide the full path to the "root" directory of the classpath item that the class making the call resides in, and the full path to the actual file. Also, check the access rights of the user to the file, and the directory it's in. …

Member Avatar for ~s.o.s~
0
134
Member Avatar for get2tk
Member Avatar for rs25

Sessions Google that. [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url]

Member Avatar for masijade
0
125
Member Avatar for khotso

Okay? And what do you want of us? If it is to do your homework for you, then read the terms and conditions for this site (which you agreed to when you created your account).

Member Avatar for masijade
0
29
Member Avatar for masterjiraya
Member Avatar for loozax
Member Avatar for loozax
Member Avatar for MonicaClare
Member Avatar for manfosys

SQL functions are part of SQL statements. Find an SQL tutorial. Stored Procedures are written in SQl, find an SQL tutorial (prefereably for the DB involved). They are then called using CallableStatement. Triggers are a table "property", find an SQL Tutorial.

Member Avatar for masijade
0
78
Member Avatar for farahshafilla

Include the jar that contains the class "org/apache/commons/io/output/DeferredFileOutputStream" in the WEB-INF/lib directory of your webapp.

Member Avatar for kvprajapati
0
2K
Member Avatar for mnealmneal
Member Avatar for hardik.rajani
0
99
Member Avatar for George2

The [i]only[/i] way to prevent decompilation is to not distribute your app. Provide it as a web-app and hope no one breaks into the server. Obfuscation makes it harder, and obfuscating and then, also, native compiling can make it even harder than that, but it would [i]still[/i] be possible, and …

Member Avatar for masijade
0
145
Member Avatar for baftjar

[i]What[/i] do you not understand? The first letter is obviously the shape, and the points are on a grid. So figure out the lengths of the sides/radius and do the multiplication work. We are [i]not[/i] going to do your homework for you.

Member Avatar for masijade
0
84
Member Avatar for peter_budo

Even though the PDF document is something you "see", it is not, truely, part of the view (IMHO), it is the Data, and I would handle it as such and have all actions that affect it run through the controller. Just my two cents. ;-)

Member Avatar for masijade
0
98
Member Avatar for PatrixCR

#! is a built-in exec. The shell script is executed in the shell declared on this line. $1 etc are the arguments provided on the command line (or provided on the function call when used inside a function) ~ means home directory. And I [i]hope[/i] this is not homework.

Member Avatar for sknake
0
169
Member Avatar for xyzt

Do you really want to copy the modified line to the end of the original file so that the same tag exists twice with differing values? Also, you can avoid having to escape the "/" by using a different separator [code]sed -n 's;<idle>600</idle>;<idle>900</idle>;p'[/code] Also, unless you are using variabls in …

Member Avatar for fpmurphy
0
407
Member Avatar for akulkarni
Member Avatar for NeelimaB
Member Avatar for masijade
0
54
Member Avatar for akulkarni

[i]Where[/i] are you "getting" it? The exception provides a line number, you know. Also, why do [inlinecode]for(int i=0;i<=d-1;i++)[/inlinecode] when you can do [inlinecode]for(int i=0;i<d;i++)[/inlinecode]. I believe, however, that you problem is here [code] String[] s2=new String[d]; [/code] Doing that creates an array of reference variables that [i]must[/i] point to a …

Member Avatar for akulkarni
0
144
Member Avatar for sympatiko

[QUOTE=sympatiko;907421]i want a quick solution man[/QUOTE] Then you'd better get crackin'!

Member Avatar for VernonDozier
0
698
Member Avatar for sympatiko

[code=Java] System.out.println("Please Enter 2 values:(number must range from 1 to 9)else display error message"); System.out.println("value 1: 3"); System.out.println("value 2: 8"); System.out.println("Fibonacci numbers are:"); System.out.println("11 19 30 49 79 128 207 335 542"); System.out.println("Even numbers are:"); System.out.println("* * 30 49 * 128 * 335 542"); System.out.println("Odd numbers are:"); System.out.println("11 19 * …

Member Avatar for VernonDozier
0
112
Member Avatar for manveet
Member Avatar for kvprajapati
0
123
Member Avatar for pradeepptp

Did you download and install the "jpcap" Java API on the machine in question, or did you simply copy the jarfile from another machine? If the second, then do the first, of course.

Member Avatar for masijade
0
289
Member Avatar for claudiu_is

[QUOTE=claudiu_is;446880]I`m trying to write a web crawler but i `don`t know how to handle the situation when i have to login to acces a site. [B]How to type in that login form from my java program?[/B] I`ve searched on the net but the results points to JSP. I haven`t worked …

Member Avatar for dkhang
0
183
Member Avatar for stevnlon

What happens if the String argument contains a single quote? Or even worse, something like [code] show("';delete from Staff_Details WHERE Address2 <> '"); [/code] Use a PreparedStatement. [url]http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html[/url]

Member Avatar for masijade
0
137
Member Avatar for suretd

Yes, you should be using getString, [i]but[/i] you should [i]not[/i] be using "select *". You should be naming the columns. Also, per definition, a JDBC Driver need only allow access to a column once and only in the order in which they are returned. Which means that unless the columns …

Member Avatar for masijade
0
12K
Member Avatar for gshockneo

This may be a JSP producing this javascript, the error is, seemingly, in the javascript, however, so the question is better asked in the javascript forum.

Member Avatar for masijade
0
119
Member Avatar for sharao

Change your application server/web container configuration to use port 80, rather than 8080, than use localhost.

Member Avatar for sharao
0
2K
Member Avatar for multicoder

Please stop PMing me. Post this "batch" script your talking about and post the [i]entire[/i] and [i]exact[/i] command line command you are using to execute the program manually.

Member Avatar for multicoder
0
435
Member Avatar for jaque322

Yes, as long as it's not JME implementing Comparable or creating a Comparator is the way to go, but there is no reason to use Arrays. Collections also has sort methods. No reason to convert to an array and back to a list, leave it as a list.

Member Avatar for jaque322
0
114
Member Avatar for aakaashjois

By writing some code? Why don't you do "Google Java Game Tutorial"? You might be surprised.

Member Avatar for masijade
0
31
Member Avatar for vishal Thakare

ImageIO find that class in the API docs, or Object(Input/Output)Stream look up those in the API docs (and tutorials).

Member Avatar for masijade
0
83
Member Avatar for Web_Sailor

Maybe, if we knew what "does not work" meant. A little more information is needed, obviously. Do you get compile time messages? Do you get exceptions at runtime? Does it run, but produce unexpected output? If so, how does it differ from the expected output?

Member Avatar for masijade
0
136

The End.