2,443 Posted Topics

Member Avatar for migg_21

Uhhm, awk is a really large subject. O'Reilly publishing [url]http://www.oreilly.com/[/url] produces an entire book (and a good one at that) dedicated to sed and awk. Try that.

Member Avatar for ghostdog74
0
169
Member Avatar for gogo3624
Member Avatar for efui

[QUOTE=Vinoth;303642]Since he is new, there is no need to go with servlets , you can search google to find some good codes to start with. when u think u are perfect then jump to what my friend said and also look over struts framework.[/QUOTE] As aniseed alluded to above, this …

Member Avatar for jwenting
0
1K
Member Avatar for aruna_k_2006

By assigning the date object to a session variable at login, then simply displaying that date at every other page load rather than creating a new date (as you are doing now). A new date object will always hold the current time at the time of construction (at least when …

Member Avatar for masijade
0
86
Member Avatar for iknow29

Oh, this is classic, posting a question onto a thread about projects in Java (in the Java Forum of course) that is two years dead, and asking for a project in VB. This question is just guaranteed to get a lot of responses, just none that the poster will want …

Member Avatar for stymiee
0
79
Member Avatar for ranindu

Please don't cross post, it is considered rude. Please continue with the original thread: [url]http://www.daniweb.com/techtalkforums/thread77555.html[/url] And do what was asked of you there (namely repost your code using code tags, in that thread).

Member Avatar for masijade
0
103
Member Avatar for akhilesh.nitt

Try using POI (it is an apache project) or JExcel. You won't be able to do it with the Jet engine AFAIK. You could always break up the spreadsheet (I know, this is not an option).

Member Avatar for masijade
0
60
Member Avatar for milonix
Member Avatar for jaepi
0
94
Member Avatar for tripuraneni

No, because in BlackJack (21) 10 - King are all 10 and an Ace is either 1 or 11. I would say, when an Ace shows up, total the rest of the cards, then decide how much to assign to the Ace depending on the difference between the current total …

Member Avatar for Phaelax
0
303
Member Avatar for varunb4u_05
Member Avatar for srikanthgr1

If you are writing to the logfile in the following manner [inlinecode]scriptname >> logfilename[/inlinecode] Then change it as follows (for a really quick fix): [inlinecode]scriptname | tee -a logfilename | mailx -s "scriptname" email@address[/inlinecode]

Member Avatar for masijade
0
119
Member Avatar for qazwsx

Browser pointed at [url]http://java.sun.com/[/url]. Or, go there with the browser, download said documentation, unpack the resulting file, and (again) use the browser to view it (or "plug it into" your IDE, if you are using one).

Member Avatar for masijade
0
35
Member Avatar for push

"Linking" 2 or more JSPs is not the problem. Most projects contain many JSPs, Servlets, Beans, Tags, Listeners, and other components. The problem is attempting to use them from two different machines. They need to be part of the same application. Eidt: But, as mentioned above, you can, using HttpUrlConnection …

Member Avatar for masijade
0
79
Member Avatar for desiguru

I'm sorry, but this ia a Java forum. JavaScript != Java. Please get this moved to a JavaScript forum.

Member Avatar for MidiMagic
0
101
Member Avatar for imastudent

Well, start coding. If you have a problem post again, with your code and a description of your problem, along with any error messages (complete) and we will help, but we are not going to write it for you.

Member Avatar for masijade
0
526
Member Avatar for realnsleo

As in? What is your problem? What are you attempting to do, and what is actually happening? Are you getting errors? Have you, as yet attempted to code anything? If you have any code, post it, and answer the questions above, then we can help you a bit more. If …

Member Avatar for masijade
0
81
Member Avatar for tmv105

What do you mena, to no avail? It definately should work. Vectors may not be the best choice (at least from an efficiency standpoint), but it should work. It would probably be helpful to show the code and provide the complete detils to any error you may ahve gotten.

Member Avatar for jwenting
0
137
Member Avatar for new_2_java

No, it will compile just fine without it. main, as far as the compiler is concerned, is a method just like any other, but when you try to execute a class and the method definition [inlinecode]public static void main(String[] args)[/inlinecode] does not exist, you will get the exact error message …

Member Avatar for new_2_java
0
166
Member Avatar for sri2244
Member Avatar for KevinADC
0
106
Member Avatar for peter_budo

A note on the file separator, the command line intrepreter is the complete reason why "\" is always used on Windows. Almost, if not, all programming languages can use "/" for paths in Windows, but the command line interpretor interprets "/" as the option argument indicator, so it needs something …

Member Avatar for uh63
0
2K
Member Avatar for fresher

$1 is the first command line argument givben when the script is called (i.e. if the command is [inlinecode]scriptname hello[/inlinecode] then $1 is hello).

Member Avatar for fresher
0
276
Member Avatar for jamshid
Member Avatar for parul195

What it looks like is, either the user "postgres" doesn't exist in the DB, or the provided password is wrong. Edit: Or the provided user does not have permission to access the Tablespace/SID/whatever_it_is_called_in_PostGreSQL requested in the URL (the part after localhost).

Member Avatar for masijade
0
114
Member Avatar for Adriel1990

I haven't even looked at that code, because you haven't really asked a question. What part of this are you having problems with? Are you getting errors while compiling? If so, post them. Are you getting errors while running? If so post them. Are you seeing results other than what …

Member Avatar for lucky1981_iway
0
91
Member Avatar for kapkan

What is "the necessary result"? Are you getting compile errors? If so post them. Are you getting runtime errors? If so, post them. Are the results you are getting something different from what you expect? If so, post exactly what it is expect, and, exactly what it is you are …

Member Avatar for kapkan
0
82
Member Avatar for uswatun

I assume the error says that it does not implement some method or something to that effect, right? It would have really helped to know what the error was, but I believe I have found it anyway. This line [code] public void actionperformed(ActionEvent event) [/code] should be [code] public void …

Member Avatar for masijade
0
109
Member Avatar for AmyChow
Member Avatar for vishalkhialani

At the moment, if you are just learning, neither. Learn how to write programs using a simple tet editor (with syntax highlighting, maybe), while compiling, executing, and packaging from the command line. Once you have a good grip on all of that, then it would be a good idea to …

Member Avatar for iamthwee
0
91
Member Avatar for pointers
Member Avatar for indianscorpion2
0
82
Member Avatar for eeeman

You see the two Paths you listed? Those are not the same file. Take a close look at the actual Filenames, then delete the one in lowercase.

Member Avatar for jwenting
0
136
Member Avatar for ripper

It depends, on Linux play around for a while with rpm -qa, on Solaris play around with pkginfo, on AIX, HP, and SCO (as well as the FreeBSD/NetBSD deriviates) I can't really help you. I don't remember there software management commands. But as you can see, it depends on your …

Member Avatar for ajcamp
0
98
Member Avatar for staneja

First of all, never place anyting into the "bin" directory of jdk (or really in any directory of the jdk/jre). Second of all, does your class contain the following method defintion: [code] public static void main(String[] args) { // your code here } [/code] and I mean that exact method …

Member Avatar for vinod_javas
0
142
Member Avatar for mahajanrahuld

Well, I see no [inlinecode]<HTML> </HTML>[/inlinecode] or [inlinecode]<BODY> </BODY>[/inlinecode] tags, so, if that is suppossed to be a complete HTML document, it is not. I, myself, don't know how those OLE packages are suppossed to work, so I can't even begin to say whether this tip is correct or not. …

Member Avatar for katharnakh
0
112
Member Avatar for A Yasir

In mysql you not only have to create a user and set a password, you also have to designate from where (and how) that user is allowed to connect the DB. Per default, root can only connect from localhost using the sock file, but, in Java, you will be attempting …

Member Avatar for A Yasir
0
294
Member Avatar for Zatnik

[QUOTE=thekashyap;337632]Error you get is: "IOException returned is: (The filename, directory name, or volume label syntax is incorrect)" Did you check if you're giving the path correctly? May be it's some simple bug like [b]using "/" instead of "\"[/b] (/ is for Linux/Unix and \ for windows as you know)[/QUOTE] Just …

Member Avatar for thekashyap
0
109
Member Avatar for ram maradola

We are not going to do your homework for you. Make an effort, then, when you have an actual problem, pst what you have up to that point and state, explicitly, what the problem is.

Member Avatar for thekashyap
0
103
Member Avatar for eeeman

[QUOTE=thekashyap;334507]Storage of the list of Username vs ID most probably has to be done persistantly. I would recommend not to use DB if this is the only reason you want to use it. Rather go for a simple flat/txt file would be easier.[/QUOTE] I don't know why you feel storing …

Member Avatar for thekashyap
0
208
Member Avatar for nemo

Here [code] String name =JOptionPane.showInputDialog("Enter name of course: "); //downcast all strings into int float etc String inputMarks =JOptionPane.showInputDialog("Enter course marks: "); int marks = Integer.parseInt(inputMarks); String inputcHr =JOptionPane.showInputDialog("Enter course credit hours: "); int creditHr =Integer.parseInt(inputcHr); } Course c1 = new Course(name, marks, creditHr); courseResult.add(Course c1); [/code] I assume you …

Member Avatar for masijade
0
157
Member Avatar for pavani2006

Error (since 1.5) is another "excpetion" class. Here a quote from the API [quote] An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions. The ThreadDeath error, though a "normal" condition, is also a …

Member Avatar for masijade
0
140
Member Avatar for bhuvan83

JavaScript != Java Find a JavaScript forum. But, if the page is generated, rather than static, than have that page include a hidden field containg the date at the time of the request.

Member Avatar for jwenting
0
77
Member Avatar for sadbhavini

You type [inlinecode]javac config.java[/inlinecode] to compile and [inlinecode]java config[/inlinecode] to execute (not [inlinecode]java config.java[/inlinecode]).

Member Avatar for masijade
0
82
Member Avatar for TheAdjustment

Just read the API for String. Once you have read the input there are two methods in String that do [b]exactly[/b] what you want.

Member Avatar for masijade
0
126
Member Avatar for alex86

I don't think there is anything wrong with it. You said it yourself, it is for building enterprise applications. For building a 'simple website' use 'simple HTML', or PHP, or any form of CGI. JSP is not meant for a 'simple website' and that is actually all there is to …

Member Avatar for jwenting
0
108
Member Avatar for vinod_javas
Member Avatar for jwenting
0
123
Member Avatar for JeganathanK
Member Avatar for jk1998

You should be overriding paintComponent, and not paint. You also need to call setOpaque on the component.

Member Avatar for jk1998
0
179
Member Avatar for venkat.103

You run a servlet through an application server, not from the command line. Do you have an application server? Tomcat, WebSphere AS, Bea WebLogic, Sun AS, etc, etc. Once you have one (you can download and use Tomcat for free), read its documentation to find out how you deploy an …

Member Avatar for masijade
0
77
Member Avatar for Stoney

[QUOTE=BadApples;332534]Use double for your fahrenheit and celsius and change celsius = (5 / 9) * (fahrenheit - 32); to celsius = (((fahrenheit - 32) / 9) *5)[/QUOTE] You do not need to change f an c to double, you just need to make sure that you do double math (if …

Member Avatar for masijade
-1
184
Member Avatar for taineechan

Well, if the instances of the Buttons themselves are known to the ActionListener (i.e. they are instance variables that the ActionListener has access to) you can simply use getText() to get the displayed value on the button.

Member Avatar for taineechan
0
155
Member Avatar for uswatun

[QUOTE=uswatun;331663]anyone can help me.. i have a task to coplete below is the question : create class called Arithmetic for performing arithmetic process. use two integer variables to represent the private data of the class. provide a constructor function that enables an object of this class to be initialized when …

Member Avatar for uswatun
0
174

The End.