2,443 Posted Topics

Member Avatar for rusman

[QUOTE=rusman;461319]Hello, I have a script I've used on pre-Solaris 10 that works just great. Now on a Sol10 box, it is bailing on this line with this error: syntax error at line 27: `|' unexpected Here's the 'offending' line: [code]creation=`echo $backupid | sed 's/^.*_//'`[/code] I'm a bit confused as to …

Member Avatar for masijade
0
113
Member Avatar for balagangadharm

I don't know that there is anything to solve. If you are using the database for authentication, and the database is not case-sensitive in this respect, then that is just the way it is. Maybe if explain more clearly than "I have a ogin form and the DB is not …

Member Avatar for jwenting
0
94
Member Avatar for 66eagle
Re: jsp

I'm sorry, but I don't know how much help you're going to be able to find here in Chinese. Edit: Or is that Japanese (the closer I look at it, the more I want to say Japanese).

Member Avatar for masijade
0
258
Member Avatar for thebladerunner

What do you mean call a java constructor from a shell script? The only Java method you can call from a shell script is either main or a static block (and if it is a static block in a class with no main it will exit with an error). What, …

Member Avatar for masijade
0
47
Member Avatar for parthiban

Whether to use serialisation, and whether to use a DB, are not mutually exclusive. There is no reason why you cannot store a serialised object in a DB. What, exactly, is you want to know? If it is how to se a DB, then consult the JDBC tutorials at Sun …

Member Avatar for parthiban
0
108
Member Avatar for chunchuwar
Member Avatar for chunchuwar
0
105
Member Avatar for angelinajade

JavaScript != Java This is the Java forum, not the JavaScript forum. The designers did not just simply forget to include "Script" in the name, they are really two different things. Next time post into the JavaScript forum. I have already asked the moderators to move this thread.

Member Avatar for MidiMagic
0
73
Member Avatar for dave_nithis

are you using ksh or bash? if so [code] set -A aArray `print "$a" | sed -e 's/-/ /'` set -A bArray `print "$b" | sed -e 's/-/ /'` # now ${aArray[0]} and ${bArray[0]} contain the year # and ${aArray[1]} and ${bArray[1]} contain the day # and ${aArray[2]} and ${bArray[2]} …

Member Avatar for ghostdog74
0
1K
Member Avatar for bagi

What do you know about threads? What exactly about adding threading to this program do you not understand? After each connection, you need to start a new thread using the socket created by the connection. What else do you need to know? If you don't know how to make and/or …

Member Avatar for masijade
0
83
Member Avatar for WVTraveler1

We would need more than the end portion. The problem is, you have an open { without a closing }. Double check all your braces and make sure that for every { there is a corresponding } .

Member Avatar for Ezzaral
0
142
Member Avatar for ranadheer

vector -> multiple values (i.e. array, which this one is) scalar -> a single value. Read the tutorials laready linked to!

Member Avatar for KevinADC
0
137
Member Avatar for balagangadharm
Member Avatar for pawan_1983

So install Java as well, with the installer used to install your stuff. I can almost guarantee, however, that if they have a browser, they have Java installed, maybe not a "new" version, probably 1.4.2, but they probably have a Java installed.

Member Avatar for Ezzaral
0
144
Member Avatar for kalaiselvi.v

There is no API in the world that will provide you with a users password (excpet for authentication modules that actively rectrieve the password from the user "manually", of course). What is this currently? There have been, in the past few days, between here, Java World, and the Sun forums, …

Member Avatar for masijade
0
72
Member Avatar for pentasoft4u

Simply try accessing the page over the server using wget, or netcat, or something similar, for a quick, easy, simple solution (although not necessarily the right one, but hey, if you don't want to use a tool specifically designed for the purpose, you will need to make due with whatever …

Member Avatar for masijade
0
93
Member Avatar for daniweb2013

Why did you send me this in a PM. This is the closest thread (in topic) started by you that might have something to do with this, so I will post it here for everyone to see, and benefit from the answer. [QUOTE=fzafarani]Hi, I've downloaded fedora core 7 i386 from …

Member Avatar for masijade
0
133
Member Avatar for Panarchy
Member Avatar for degamer106

Don't tell me that you are not even capable of changing the numbers in that block of if statements. If that is the case then I want to know who you copied the code from, because you definately did not write it, in that case.

Member Avatar for Mouche
0
76
Member Avatar for ravi_forum

It would seem logical to me, to read the API doc for the TimeZone class. Doesn't that sound reasonable to you?

Member Avatar for jwenting
0
78
Member Avatar for deeptiarora

No, it is expected that the "client" (or to be installed on) machine already has a jdk/jre (which it probably does, just maybe not the right version).

Member Avatar for Ezzaral
0
155
Member Avatar for deeptiarora
Member Avatar for apophis
Member Avatar for Grub
Member Avatar for masijade
0
84
Member Avatar for balagangadharm

Download, is of course a link, upload jusst like any other file upload, Google "Java File Upload"

Member Avatar for Ezzaral
0
79
Member Avatar for huskersox

That is [b]not[/b] Java. Java != JavaScript. If you are to use JavaScript (not [i]Java[/i]) then please click on the "Flag Bad Post" on one of these replies and ask the moderators to move this thread to the JavaScript forum. And, next time, please, pay attention to what you are …

Member Avatar for masijade
0
104
Member Avatar for ajay_tabbu

Thias sort of thing should not even be attempted by an applet (in most cases). This sort of thing expressly forbidden in most security policies. You may use a signed applet (Google that) and it will allow you some access. To get "full" access, the user using the applet would …

Member Avatar for ajay_tabbu
0
113
Member Avatar for vladdy19
Member Avatar for satish.paluvai
Member Avatar for atrix415

Rather than showing the message dialog in the loop. simply concatenate to a string, then show the message dialog once after the loop.

Member Avatar for masijade
0
143
Member Avatar for atrix415

He wants that, because the song goes [code] On the twelveth Day of Christmas My true love gave to me 12 Drmmers Drumming 11 Pipers Piping 10 ..... [/code]

Member Avatar for masijade
0
441
Member Avatar for satish.paluvai

Read the API for FileChannel. The source and destination directory does not make any difference whatsoever, as you are always dealing with two file (or file channel) objects. Where they are makes no difference (to a point). Stop focusing on this system and/or procedural type stuff.

Member Avatar for masijade
0
104
Member Avatar for acwbrat

And you have your very own thread on this topic. Keep the discussion there. And once again, I do not know why you are so fixated on using expr.

Member Avatar for masijade
0
84
Member Avatar for acwbrat

[code] filename=me.cpp # If you use ksh or bash filename=${filename%cpp}out # if you use sh filename=`echo $filename | sed -e s/cpp$/out/` [/code]

Member Avatar for masijade
0
115
Member Avatar for sakura_fujin

Do you know what an HTML table looks like? Do you know how to receive a listing of the tracks using JDBC? Well, get your listing and loop over it inserting the TD tags around each field and TR tags around each row.

Member Avatar for masijade
0
97
Member Avatar for mrityunjay22

Then don't make a textfield. Simply place the value on the page, and if a value for that field still needs to returned by the form, add a hidden value with the name that textfield normally would have had.

Member Avatar for masijade
0
65
Member Avatar for java.cream

Classpath. Check the projects library path (not build path), or execute from the command line using the -cp option.

Member Avatar for java.cream
0
112
Member Avatar for sgriffiths

No. That he can already do, but that will lose the decimal places (i.e. expr is, essentially, int only). Try [code] result=`echo "scale=2;${var1}+${var2}" | bc` [/code]

Member Avatar for masijade
0
65
Member Avatar for mrityunjay22

see [url]http://java.sun.com/developer/EJTechTips/2003/tt0114.html[/url] (And an internet search for "Java JSP error page" returns this as the first hit).

Member Avatar for masijade
0
65
Member Avatar for balagangadharm
Member Avatar for mrityunjay22
Member Avatar for cutekola

you're looking for ints, and the last one must be mutiplied by 10 other wise the int value will always be 0 (obviously) and the first one divided by ten or it will be e.g. 10 instead of 1. [code] int tens=(int) ((v / 10) % 10); int ones=(int) (v …

Member Avatar for cutekola
0
222
Member Avatar for Rajesh.D.N

1) This code should not be in a scriptlet. Move the query part out to a bean. 2) Use a connection pool, or open the connection in a session object (although this type of persistence is frowned upon) because opening a connection for every page load is extremely inefficient. 3) …

Member Avatar for masijade
0
111
Member Avatar for kiennhoit

Your OS is CentOS 5.0, which is [b]Linux[/b] (as you also said). Try downloading just about any Linux version of JBoss, and give it a try. Edit: Also, if you know anything about JBoss, you know that it is written in Java, so simply go to [url]http://sourceforge.net/projects/jboss/[/url] and download it. …

Member Avatar for masijade
0
99
Member Avatar for vignesh babu
Member Avatar for Shaffer
0
1K
Member Avatar for push

No. At the very least Google for some possibilities, but nobody is going to do your work for you.

Member Avatar for masijade
0
54
Member Avatar for hidash_in

Why are you doing System type stuff using Java? It is not designed for it. If you want a command line command to get the "application" list that appears in TaskManager, then why are you asking in a Java forum? Ask in some Windows forum somewhere. And don't cross-post. You …

Member Avatar for masijade
0
187
Member Avatar for qinise4

Read the file, writing it to a new file at the same time, and omit what should be deleted. Then rename the old file to a different name. rename the new file to the old name, then, if all of that is successful, delete the old file.

Member Avatar for masijade
0
112
Member Avatar for venkatnavi

Javascript runs on the client, JSP runs on the server. They cannot communicate with each other directly. If you are advanced enough, look into a servlet web service and AJAX to solve your problem, if it must absolutely be dynamic. Otherwise, you are going to have to submit your form.

Member Avatar for hudz
1
13K
Member Avatar for gyle0123
Member Avatar for Arthurmilo
Member Avatar for peter_budo
0
162

The End.