2,443 Posted Topics

Member Avatar for sgriffiths
Member Avatar for radoulov
0
89
Member Avatar for himanjim

If its an Applet you have no need of any kind of sdk anyway. Read through this tutorial completely [url]http://java.sun.com/docs/books/tutorial/deployment/applet/index.html[/url]

Member Avatar for himanjim
0
105
Member Avatar for padmaja_3

try [code] $fullDate = join( "/", $ARGV[3], $ARGV[4], $ARGV[5]); [/code] or [code] $fullDate = join( "/", $ARGV[3..5] ); [/code]

Member Avatar for KevinADC
0
80
Member Avatar for hidash_in

If it is to be "opened" on the client, you cannot do it in JSP (or actually a bean since that sort of thing would need a scriplet and shouldn't be using scriptlets) as the JSP is executed on the server, obviously, and not on the client where the browser …

Member Avatar for masijade
0
118
Member Avatar for mav2040

Tomcat is already up to version 6.0 As has been said before, by others, I don't believe you are to the helping stage yet.

Member Avatar for masijade
0
87
Member Avatar for ceyesuma

Only if it is a Long, and not a long. If it is a long, then, the proper way is [code] jvar.setText(String.valueOf(longvar)); [/code] The "quick and dirty" or improper, but still functional way is [code] jvar.setText("" + longvar); [/code]

Member Avatar for ceyesuma
0
82
Member Avatar for kedarkhedkar
Member Avatar for masijade
0
115
Member Avatar for palanidgl

Excel file can be manipulated in Java (and so also in JSP, although the actual work should be done in a Bean and in some scriptlet) and for javascript you're going to have to ask somewhere else. I have no idea what indesign files are, but if it is a …

Member Avatar for masijade
0
67
Member Avatar for skelly16
Member Avatar for mragot

Fatally Cool Flocking Stuff and Restful Relaxation? It might help to actually say what you want rather than throwing out a bunch of abbreviations. Also, spell out, step for step, what is needed in "RR", then start trying to explain these steps in Java terms.

Member Avatar for jwenting
0
254
Member Avatar for parthiban

You should probably add a button.validate() call after the button.setText() calls. And use "this" not "insGui". The reason nothing is happening when you use "insGui, is because you have not defined it anywhere. And even if you had, It would have it's own "button" object, which is the one you …

Member Avatar for parthiban
0
106
Member Avatar for peterv6

Have you defined one of the following variables in your script anywhere: [code] IO::Handle->output_record_separator EXPR $OUTPUT_RECORD_SEPARATOR $ORS $\ [/code] Because, that "^M" is the "\r" from a "\r\n" windows/dos style line ending rather than the standard "\n" of the unix/linux line ending (at least that is what I have always …

Member Avatar for trudge
0
143
Member Avatar for arvindishukla

There is a tutorial "pasted" to the top of this forum. Otherwise, this sounds far to much like homework for me to even want to give you any other answer.

Member Avatar for masijade
-1
108
Member Avatar for jilshi

Stop posting code everywhere. Especially this stuff. And then you don't even take the time (or, maybe, have the common sense) to use code tags when you do, which only compounds the "wrongness" (both the idea and the code itself) of it.

Member Avatar for masijade
0
150
Member Avatar for mragot

Stay with the original thread [url]http://www.daniweb.com/forums/thread92130.html[/url] Don't start a new thread simply because you don't like the answers you've been getting. If you feel the need to "draw attention" to the thread, or "move it to the top of the list" then post a quick reply to it, or edit …

Member Avatar for masijade
0
171
Member Avatar for kavisymphony

So write some. If you have problems, and a specific question, then come back and we will help, but for God's/Allah's/Buddha's/<insert additional diety names here>'s sake, [b]Do Your Own Homework[/b], or at least make an attempt at it.

Member Avatar for hidash_in
1
2K
Member Avatar for othz08
Member Avatar for othz08
0
128
Member Avatar for restrooms

No. I am not going to "give you teh codez". And I am not going to meet you in any restrooms, either. You can do both of those things for yourself.

Member Avatar for Ezzaral
0
75
Member Avatar for jyovasinedu

Read the API for String. There is a method there, inherited from Object, with the same name as the symbol used in many comparisons. Use that method. (And, yes, I am being purposely obscure.) Edit: Aaarrgh, and another newb has already given code. Do not give out easy answers without …

Member Avatar for jyovasinedu
0
92
Member Avatar for swarnamalya
Member Avatar for pawan_1983

[QUOTE=pawan_1983;443605]i am creating chat application .can anybody tell me how can i know who is on line on the server and how can i communicate with on line members. thanks for help[/QUOTE] In Other Words: "How do I write a Chat Application?" since the two posted "questions" is pretty much …

Member Avatar for jwenting
0
195
Member Avatar for lunatica
Member Avatar for vicky_dev

Once you install Java, you should be able to "double-click" on a .class file and execute it in that way, if you don't have a class file (but just a .java file), then you have to compile it/them first. Better would be, to create a jarfile containing the relevant classpath …

Member Avatar for vicky_dev
0
2K
Member Avatar for ceyesuma

What does super have to do with anything here? Also, it might help to know what error you're getting.

Member Avatar for ceyesuma
0
69
Member Avatar for balagangadharm

[QUOTE=balagangadharm;445974]Can any one help me in generating a billing report in java without using any reporting tool. I should get the header, footer and pagebreaks.If the billing takes two pages then header should cum in first page and footer in last page..please help me I would be favourable for u …

Member Avatar for masijade
0
75
Member Avatar for awo
Member Avatar for himanjim

No. You cannot directly access sockets from an applet. (At least not without changing the security policies on the machine running the applet.) Maybe if it is a signed applet, but I don't believe that even a signed applet is allowed access to sockets. (At least not without changing the …

Member Avatar for masijade
0
106
Member Avatar for soda0091

[QUOTE=nikhita;445428]<% Class.forName("org.gjt.mm.mysql.Driver").newInstance(); String url="jdbc:mysql://localhost/database_name?user=user_name&password=type_password&useUnicode=true&characterEncoding=8859_1"; Connection conn= DriverManager.getConnection(url); Statement stmt=conn.createStatement(); . . . . %> like that it goes......... Hop it will help u.......[/QUOTE] That is the old MySQL driver, and is only still present in the distribution for backwards compatability. Use, as the first reply indicated, com.mysql.jdbc.Driver instead of org.gjt.mm.mysql.Driver …

Member Avatar for masijade
0
588
Member Avatar for nikhita

Google "Java file upload", then rather than writing the stream you get from the request to a file, write it to a DB column using the setAsciiStream, setBinaryStream, or setCharacterStream of PreparedStatement, read the API for that method and the Sun Tutorials (or the MySQL documentation which comes with complete …

Member Avatar for masijade
0
115
Member Avatar for balagangadharm

Well, it looks like you have your requirements, so do you have a question? Or did you simply want us to do it for you?

Member Avatar for masijade
0
83
Member Avatar for arvindishukla

Because 1 != 2. If you want it to enter the if statement only when the input is not 1 [b]and[/b] not 2, then you need to use the logical and (&&), not the logical (or). If you wanted to enter the loop only if the answer is either 1 …

Member Avatar for arvindishukla
0
286
Member Avatar for othz08
Member Avatar for masijade
0
31
Member Avatar for abar_sow

Why don't you ask the person you copied it from? Or did you write this yourself, and are having a problem, and so are really asking what's wrong with it? If that's the case why don't you tell what happens that you do not expect. Also, read the API for …

Member Avatar for masijade
0
116
Member Avatar for econobond007
Member Avatar for masijade
0
58
Member Avatar for Pinky.Rozita

No. The query and setString statements can remain the same. It is, however, not recommended to use scriptlets this way. The DB code should be moved out to a bean. Scriptlets, AFAIK, are only still supported for backwards compatability reasons. You don't want to be backwards do you? ;-)

Member Avatar for lookof2day
0
249
Member Avatar for genocide
Re: Jdbc

Read the examples that come with the documentation that comes with the driver that you download.

Member Avatar for schoolsoluction
0
116
Member Avatar for apontutul
Member Avatar for pulkitmalhotra
Member Avatar for Caled

Show the actual code. The above "process" doesn't really tell us much. For example, what, exactly, is the "necessary file IO"? A FileInputStream, a FileReader, a Scanner? Is that wrapped in a BufferedWhatever? etc, etc.

Member Avatar for Caled
0
1K
Member Avatar for SpaceDog

If you want to call roll() by referencing the Class (i.e. [inlinecode]Classname.methodName()[/inlinecode]), then roll() needs to be static. If it is not static, then you need to instatiate an instance of the class in order to able to call the method (i.e. [inlinecode]Classname a = new Classname(); a.methodName();[/inlinecode] or even …

Member Avatar for SpaceDog
0
196
Member Avatar for militant880

[QUOTE=tech74;438908]Honestly, I'm getting more and more disappointed every time I see someone say, "I'm not doing your homework for you." and I'll tell you why... I've been a programmer for many years now. I've seen many horrible text books, on top of equally horrible professors there are out there - …

Member Avatar for no1zson
0
166
Member Avatar for sakura_fujin

Wow, all that code, and not a code tag to be found. To be honest with you, no one is going to go through that much code, especially unformatted as it is (use code tags). Try to create a small, self-contained, but complete example that duplicates the problem, and post …

Member Avatar for sakura_fujin
0
196
Member Avatar for arkaprava
Member Avatar for anousha
Member Avatar for masijade
0
64
Member Avatar for ivatanako

Yes, it is possible, and is much more of an SQL question. Have you tried doing it? Post what you have tried.

Member Avatar for jwenting
0
722
Member Avatar for challa.kamal
Member Avatar for sarath.koiloth
Member Avatar for sarath.koiloth
0
113
Member Avatar for KimJack

Show an example (of the input and the desired output), as well as the code you have for doing it (at least what you have so far).

Member Avatar for KimJack
0
101
Member Avatar for KimJack

Well, first of all, in an ArrayList you will have Integers, not ints (you may have added ints, but they will have been autoboxed into Integers). Secondly, you will need to tell ArrayList what type of Object[] array will be output, otherwise it will output an Object[], i.e. [code] Integer[] …

Member Avatar for masijade
0
94
Member Avatar for MonkeyGarage

It is actually better to place it inside of WEB-INF/lib, unless you are certain that it is needed by, and will not interfere with, other applications on the same server.

Member Avatar for MonkeyGarage
0
115

The End.