2,443 Posted Topics
Re: As in the response to your hijack post in the other thread [code]$ENV{PATH}[/code] | |
Re: [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 … | |
Re: forget roseindia. The only thing you'll learn there is bad habits. javac like with every other Java library. | |
Re: 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 … | |
Re: 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. | |
Re: Google "java3d". If I remember right, there is an API for this. | |
Re: 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] | |
Re: [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 … ![]() | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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. … | |
Re: [url]http://java.sun.com/docs/books/tutorial/ui/index.html[/url] | |
Re: Sessions Google that. [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url] | |
Re: 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). | |
Re: And what are these last two post suppossed to mean? | |
Re: Two or Three words? Billy Joe Jim Bob Thornton ;-) | |
Re: 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. | |
Re: Include the jar that contains the class "org/apache/commons/io/output/DeferredFileOutputStream" in the WEB-INF/lib directory of your webapp. | |
Re: Java != Java[i]Script[/i] Next time, please find a Java[i]Script[/i] forum. | |
Re: 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 … | |
Re: [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. | |
Re: 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. ;-) | |
Re: #! 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. | |
Re: 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 … | |
Re: The exception contains a line number, so which line is it? | |
Re: Because you are trying to dereference a null reference. | |
Re: [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 … | |
Re: [QUOTE=sympatiko;907421]i want a quick solution man[/QUOTE] Then you'd better get crackin'! | |
Re: [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 * … | |
Re: Go to where the ".class" file is and type the command as [inlinecode]java -cp . Abc[/inlinecode] | |
Re: 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. | |
Re: [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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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. | |
Re: Change your application server/web container configuration to use port 80, rather than 8080, than use localhost. | |
Re: 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. | |
Re: 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. | |
![]() | Re: By writing some code? Why don't you do "Google Java Game Tutorial"? You might be surprised. |
Re: ImageIO find that class in the API docs, or Object(Input/Output)Stream look up those in the API docs (and tutorials). | |
Re: 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? |
The End.