2,443 Posted Topics
Re: Can you do it in HTML? If not, then you can't do it in JSP, either. If so, then have the JSP produce that HTML. Where's the problem? | |
Re: Because the designers thought the language was better off without it. If you want more information, go to James Gosling's blog site and ask. | |
Re: If it is meant to be between multiple hosts simuteneously, then UDP to a multicast address over multicast enabled network interfaces. Edit: If you need to be absolutely certain that every message is received, then TCP. | |
Re: Read the error messages you get when you compile and try to fix them. Provide us with those error message, and we might help you, but we are not going to guess at what the errors might be. | |
Re: Well, reality often is. | |
Re: Remove the "private" from "private int option ...". Access modifiers only apply to class/instance variables, not local variables. Add something to case 1 (or don't if you wish, as I believe that "error" is only a warning). And, if that is really your complete code, most of the other errors … | |
Re: [QUOTE=eddy556;538493]I have a JSP which inserts date into a MS Access database. But I keep receiving the error: 24: statement.executeUpdate("INSERT INTO Questions WHERE ID ='"+ID+"'(\"Question\", \"Answer\", \"Timestamp\", \"Author\", \"Customer_Useful\", \"Customer_NotUseful\") VALUES ('"+Question+"','"+Answer+"','this has been updated','"+Author+"','0','0')"); I have checked and checked all the values are there and correct and that the … | |
Re: [QUOTE=jwenting;536917]management. With your lack of knowledge it's the only place you'll ever succeed.[/QUOTE] Aside from the fact that he suppossedly has a "Master" (although I [i]have[/i] to assume he meant major here, and not masters) and he is just now going to start looking for an entry level development position? … | |
Re: Set a socketTimeout on the ServerSocket and place the accept in a while loop so that it will "interrupt" every once in a while. I.E. [code] ServerSocket ss = ..... ss.setSoTimeout(1000); while(true) { Socket s = ss.accept(); // do whatever you normally do with s (if it is defined); // … | |
Re: See my first post in your other thread. The same applies here. | |
Re: And what have you got so far, and what part of it, exactly, are you having problems with. No one here is simply going to do it for you. We will give you hints and nudges in the right direction, but [i]you[/i] are going to be the one to have … | |
Re: I bleieve he actually asking about PATH not CLASSPATH. @OP This is a pure OS issue, not a Java issue. find a (seemingly) Windows forum, or use google. | |
Re: [code] Arrays.sort(array); [/code] Read the API docs. Edit: Also read the API doc for Calendar, as the months, and Days of the week already have assigned int values. | |
Re: Good For you. You're Welcome. Masijade | |
Re: I'm sorry, but when I see things like the following few snippets [code] {public class DVD(); } [/code] [code] { setDefaultCloseOperation(); //EXITONCLOSE(); { setVisible("true"); { setSize ("410, 380"); [/code] [code] {public class Inventory.java [/code] All I can say is, start over. | |
Re: To tell you the truth, there is nothing [i]secure[/i] about http. Https (in some ways) yes, but not simple http. What is you want to do? Not how you want to do it (which is what you have described here), but rather what you want to [i]do[/i], and why. | |
Re: Because "UserListIn" is an ArrayList of GymUser objects, it is not a GymUser object itself. You need to retreive the GymUser object from the ArrayList using get(i), then call getID() on that. | |
Re: What do you mean "refresh onload". That's useless. Do you mean that you don't want the browser, or any proxies in the middle, caching it. So that everytime the page is referenced it must be retrieved anew, rather than simply loaded from cache? If so, look at the expires and … | |
Re: Use the TimeStamp class to get and set the field in the DB, not the Date class. In SQL a Date, is a Date, and does not contain a Time. You can then transfer that value to a Date object later, if you wish. | |
Re: [code] public static void main(String[] args) { String AQC1_UID = ""; String AQC1_USER_PWD = ""; public Login(String AQC1_UID,String AQC1_USER_PWD) { this.AQC1_UID=AQC1_UID; this.AQC1_USER_PWD=AQC1_USER_PWD; } ..... [/code] When indented properly, the error becomes obvious. Do you see it? I believe you meant to close of main as an empty method, but didn't. | |
Re: [code] tf2.setText(tf1.getText()); [/code] in an ActionListener. If you don't know what an ActionListener is, or how to use one, then read the Swing Tutorials. (addActionListener on a JTextField will cause "Enter" to fire an ActionEvent) | |
Re: Change [code] String year = request.getParameter("xyear"); [/code] to [code] String year = request.getParameter("xyear"); if (year == null) { year = today.getYear(); } [/code] But you also really need to change "today" to be Calendar and use get(Calendar.YEAR) instead of getYear(), as the getYear() method of Date is deprecated for a … ![]() | |
Re: Nobody is going to read all that (especially unformatted code). In any case, the error message is pretty self explanatory. You are essentially doing something like add(parent) or container.add(parent), where container and parent are variables represents some component, of course. | |
Re: [QUOTE=missileh;525233]Sorry. ) and ; are together taken as smiley in my above reply.[/QUOTE] Use code tags, and that won't happen. | |
Re: javaAddict had the write idea, unfortunately, your variables are doubles, so you can't simply cast the division operations to ints. You can, however, do this in the print statements. I.E. [code] System.out.println("Enter purchase amount: " + purchase); System.out.println("The change is: " + change); System.out.println("The number of quarters is: " + … | |
Re: [QUOTE=Nichito;520278] 8Gb RAM windows XP (Vista is too crappy for gaming) [/QUOTE] Can XP handle 8 Gb RAM? I haven't looked at the specs, but I have at least heard (I can't comment on the reliability of the source) that it can't handle more than 2Gb. Edit: Sorry make that … | |
Re: By using SimpleDateFormat to parse the "String" into a date, then compare the two Date objects. | |
Re: [code] public class SRTF { // Your code here } [/code] Well, there's a start. | |
Re: Well, post your code, but file.rename(), on a single file, shouldn't be beyond you. | |
Re: I don't know about you, but I see all sorts of documentation links here [url]http://www.snmp4j.org/[/url] P.S. Google (or whatever search engine you prefer) is your friend. | |
Re: My company is named Matrix, and we use Oracle, so I guess you could ask me. ;-) | |
Re: [QUOTE=jbennet;521724]TRY MY SUGGESTIONS AT YOUR OWN RISK! I ACCEPT NO RESPONSIBILITY FOR ANYTHING ADVERSE CAUSED BY MY ADVICE [/QUOTE] Does it happen so often that you need a disclaimer? ;-) | |
Re: You've declarred an array (attr) of type attrribute, but the elements of that array, until defined, are null. So, when you attempt to dereference one of those elements (that are currently null) by referencing the "name" attribute you get an NPE. You need to define each element in the array … | |
Re: Go through the JDBC tutorials, then go through the Swing tutorials, then, make sure you don't mix the two into the same class. | |
Re: An "application" does not have an "instance id". It has a "process id" though. If that is what you mean then you will have to use Runtime.exec() to set of a "ps" command (or the OS specific equivalent as ps is a Unix/Linx command). IOW, this is not the sort … | |
| |
Re: I really don't know how that is going to help you. Even if the information is correct "HP/UX 10.01", "Linux", "OS/2 TCP/IP 3.0", and "VMS/Multinet" all have the same values. So, when you see those values, which one is it? And that's if the system even answers a ping. In … | |
Re: [QUOTE=~s.o.s~;518573]> Have you tried this site: [url]http://www.roseindia.net/jsp/jsp.htm[/url] I wouldn't trust that site. The content seems to be substandard.[/QUOTE] [b][i]That's[/i][/b] an understatement! ![]() | |
Re: Yes, but the Rocky Horror Picture Show is, at least, funny. That's just scary, and, maybe, a little sad. ;-) | |
Re: Yes, we can. Will we? No. We are not here to do your work for you. | |
Re: ? [b][i]WTF[/i][/b] ? | |
Re: [code] Float.parseFloat(String value, int radix); [/code] See the API docs. | |
Re: This is the Java, not JavaScript, forum. You see the difference there? Next time, post in the JavaScript forum, please. I have already requested th admins move this thread. | |
Re: A while loop. Edit: Or a for loop ;-) | |
Re: Sounds like you may be better off implementing a JTextField in combination with a PopupMenu. There you can use the menu separator. Pack them together into a custom component and you will be able to use it just like a JComboBox. |
The End.