2,443 Posted Topics

Member Avatar for hkraskian
Member Avatar for fpaquin

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?

Member Avatar for orko
0
157
Member Avatar for Parsu7

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.

Member Avatar for masijade
0
83
Member Avatar for parthiban

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.

Member Avatar for jwenting
0
110
Member Avatar for Helpwithjava

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.

Member Avatar for jwenting
0
94
Member Avatar for SPJ
Member Avatar for mayank.aga

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 …

Member Avatar for mayank.aga
0
94
Member Avatar for crabs_crab
Member Avatar for eddy556

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

Member Avatar for masijade
0
404
Member Avatar for Aman0711

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

Member Avatar for Aman0711
0
91
Member Avatar for shaikh_mshariq

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); // …

Member Avatar for shaikh_mshariq
0
512
Member Avatar for kiwanz7
Member Avatar for masijade
0
78
Member Avatar for kiwanz7

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 …

Member Avatar for masijade
0
119
Member Avatar for srikanth882003

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.

Member Avatar for masijade
0
107
Member Avatar for nuch1311

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

Member Avatar for DangerDev
0
126
Member Avatar for sridharp_in
Member Avatar for shrutijadhav
Member Avatar for dharajsmith

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.

Member Avatar for dharajsmith
0
183
Member Avatar for hidash_in
Member Avatar for shaikh_mshariq

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.

Member Avatar for vpcse
0
266
Member Avatar for javaStud

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.

Member Avatar for javaStud
0
93
Member Avatar for shashipkiran

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 …

Member Avatar for shashipkiran
0
98
Member Avatar for Spartan552

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.

Member Avatar for masijade
0
52
Member Avatar for Ankita B

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

Member Avatar for Ankita B
0
125
Member Avatar for suzy_naresh

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

Member Avatar for javaAddict
0
83
Member Avatar for wolverine_ramir

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 …

Member Avatar for electron33
0
92
Member Avatar for fatjoy25

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.

Member Avatar for jwenting
0
75
Member Avatar for reiyn17

[QUOTE=missileh;525233]Sorry. ) and ; are together taken as smiley in my above reply.[/QUOTE] Use code tags, and that won't happen.

Member Avatar for reiyn17
0
130
Member Avatar for fufu123

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: " + …

Member Avatar for fufu123
0
176
Member Avatar for zandiago

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

Member Avatar for zandiago
0
114
Member Avatar for ashkash

By using SimpleDateFormat to parse the "String" into a date, then compare the two Date objects.

Member Avatar for Ezzaral
0
105
Member Avatar for sourcerer
Re: Srtf

[code] public class SRTF { // Your code here } [/code] Well, there's a start.

Member Avatar for javaAddict
0
85
Member Avatar for hidash_in
Member Avatar for masijade
0
300
Member Avatar for shaikh_mshariq

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.

Member Avatar for shaikh_mshariq
0
97
Member Avatar for Ankita B

My company is named Matrix, and we use Oracle, so I guess you could ask me. ;-)

Member Avatar for masijade
0
61
Member Avatar for raheleh

[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? ;-)

Member Avatar for masijade
0
107
Member Avatar for arkaprava

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 …

Member Avatar for arkaprava
0
203
Member Avatar for ceyesuma

Go through the JDBC tutorials, then go through the Swing tutorials, then, make sure you don't mix the two into the same class.

Member Avatar for ceyesuma
0
108
Member Avatar for hidash_in

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 …

Member Avatar for p.bondam
0
136
Member Avatar for zeiken
Member Avatar for masijade
0
67
Member Avatar for shaikh_mshariq

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 …

Member Avatar for shaikh_mshariq
0
629
Member Avatar for chitra1

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

Member Avatar for electron33
0
104
Member Avatar for Mohandsa

Yes, but the Rocky Horror Picture Show is, at least, funny. That's just scary, and, maybe, a little sad. ;-)

Member Avatar for masijade
0
2K
Member Avatar for aksm
Member Avatar for peter_budo
0
343
Member Avatar for zaibitreg
Member Avatar for mrynit
Member Avatar for mrynit
0
142
Member Avatar for hidash_in
Member Avatar for n33712

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.

Member Avatar for n33712
0
98
Member Avatar for chunchuwar
Member Avatar for winbatch

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.

Member Avatar for masijade
0
214

The End.