2,443 Posted Topics
Re: [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 … | |
Re: 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 … | |
Re: 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). | |
Re: 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, … | |
Re: 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 … | |
Re: [code] cat dailystatus.txt| mail -s "Daily Server Status Report-${yr}-${mm}-${dd}" [email protected] [/code] | |
Re: 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. | |
Re: 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]} … | |
Re: 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 … | |
Re: 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 } . | |
Re: vector -> multiple values (i.e. array, which this one is) scalar -> a single value. Read the tutorials laready linked to! | |
Re: 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. | |
Re: 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, … | |
Re: 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 … | |
Re: 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 … | |
Re: What part of no do you not understand? The N? Or the O? | |
Re: 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. ![]() | |
Re: It would seem logical to me, to read the API doc for the TimeZone class. Doesn't that sound reasonable to you? | |
Re: 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). | |
Re: JExcel or POI Google those APIs | |
Re: Use an ArrayList (this is dynamic whereas an array is fixed length). | |
Re: Download, is of course a link, upload jusst like any other file upload, Google "Java File Upload" | |
Re: 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 … | |
Re: 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 … | |
Re: Rather than showing the message dialog in the loop. simply concatenate to a string, then show the message dialog once after the loop. | |
Re: 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] | |
Re: 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. | |
Re: 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. | |
Re: [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] | |
![]() | Re: 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. |
Re: 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. | |
Re: Classpath. Check the projects library path (not build path), or execute from the command line using the -cp option. | |
Re: 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] | |
Re: 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). | |
Re: Error messages and stack traces would help. | |
Re: 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 … | |
Re: 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) … | |
Re: 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. … | |
Re: [b]JavaScript != Java[/b] I have already asked the admins to move the thread. | |
Re: No. At the very least Google for some possibilities, but nobody is going to do your work for you. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: [code] // Sample ATM Banking program code [/code] | |
Re: What problem are you having? Or are you just simply asking to have us program this and just give it to you? |
The End.