Don't know about the asterik, probably some IE compatability work-around of some sort.
Otherwise, again, show some of the "problem" css blocks and some of the JSF code where you expect them to take affect.
Don't know about the asterik, probably some IE compatability work-around of some sort.
Otherwise, again, show some of the "problem" css blocks and some of the JSF code where you expect them to take affect.
It MIGHT help to know EXACTLY what you are changing AND HOW you are using it (i.e. both the css changes as well as how that css, including class and id if need be, is included in the JSF page).
We will NOT write code for you. To actually help you we will need more information though. Here some info to get you started
FileInputStream
FileOutputStream
Socket
ServerSocket
THAT is what the SHARED FOLDER is for. Ask your Windows System Administrators (if a business/uni system) or at a microsoft forum if personal.
You do it exactly like that but with "E:" being a shared file system (a shared drive).
You can't (AFAIK), not like you're thinking. MSAccess is a file, and does not have, in anyway shape or form, a network interface (AFAIK). Place the DB on a shared filesystem and access it directly, but beware of concurrent connections, those are a problem for access.
@rubberman Really? nedit for Unix/Linux? I assume you do not use UTF-8 for your standard file encoding? Because the last time I used nedit it did not support UTF-8 encoding and that caused some very irritating problems for the web-site I was working on. Or does it now support UTF-8 file encoding?
P.S. You REALLY should look into using an IDE. Not for generating code, I, generally, do not do that either, but for the fact that they really DO increase productivity. I am VERY much of the school that you should NOT use one when LEARNING the language, but that they make GREAT sense once you DO know what you're doing.
That could very well be (and IS considering the API doc quote), I just guessed this time. I hate Scanner and DO NOT use it. Bleah!
;-)
nextInt(), saving the value and THEN nextLine() ignoring the return?
Next Line will include the "newline" which is not parseable as a number.
You are entitled to your opinion, BUT, when the process is EXPLICITLY defined by the JLS to NOT do that, it doesn't really MATTER what your opinion is.
Edit: Also, you STILL do not seem to have grasped the fact that C++ "works" that way IN THE CURRENT IMPLEMENTATION of the C++ specs that YOU ARE USING. Other implementations may NOT work that way, as C++ DOES NOT DEFINE how the process is to work.
That means one or more of the preceding character (class). I.E. There must be at least one of the preceding character (class), but there can also be more than one, and, if there is more, than all of them will be matched.
No, that is just looking for that EXACT string in the provided argument (not in the contents of the file it references).
@s.o.s
You can also escape the literal -
System.out.println("This is _ a - test?.".replaceAll("[_\\-?]", "+"));
produces
This is + a + test+.
But, including it at the front or end looks cleaner. ;-)
It greps whether the command used contains the string "/transforms/" and returns 1 if it does and 0 if it doesn't.
$0 (or, iow, ${0}) refers to the actual command used on the command line.
Change line 10 from the OP
private CashDispenser cashDispenser;
and actually assign that variable a value other than null (which is the default for Objects declared in this manner).
uhm, use cashDispenser instead of CashDispenser? And actually assign that variable a value, of course.
Google for the Eclipse m2e plugin.
Ugh, judging by this JOptionPane stuff, I assume this is part of a GUI? In which case I HOPE that this is part of a SwingWorker, and even then the JOptionPane stuff is probably not usuable in this form, as otherwise this is running on the same thread as the GUI which will introduce all sorts of problems.
See the API docs SwingWorker and google for some examples.
I also do not see where you are declaring your connection and statements. I see where you are defining them, but not where you are declaring them, so I can only assume they are instance variables, which will, most likely, also lead to a whole host of problems. Declare them locally.
But, other than those two obvious and grave errors, what is the actual problem you're having?
It might help to show the pattern used and the text you think matched that pattern.
You would have to connect to the mysql server with the root user (or some other user with full rights), then use the standard mysql command to create the db, and to grant accesses and/or create users.
All of this, of course, assumes that a mysql server is installed and running, of course, it would take much more to install and configure the server, of course.
All I can say at the moment is check your spelling. On windows when not packaged in a jar it will not be case sensitive, but once is packed into the jar it is case sensitive.
Did you check that the file is actually in the created jar?
I am attempting to run a junit test against a JAX-WS service method
using a simple client class and compiled generated sources from
ws-import.
When the test is run through surefire while doing either test or install
I get the error
java.lang.NoSuchMethodError:
com.sun.xml.ws.api.model.SEIModel.getJAXBContext()Lcom/sun/xml/bind/api/JAXBRIContext;
but when I inspect the xml in the surefire reports directory and use
java and junit directly on the command line using the classpath and
bootclasspath outlined in the xml file (and, of course, the same version
of junit and the same version of java) the test is successful.
Anyone have an idea of what the problem might be, or how it might be overcome?
P.S. "using the same classpath, etc" obviously means that I am using the same versions of all of the components as they are all pulled from the repository and the classpath points directly to the repository, the only things not included are whatever jars and the like used for the Junit4Provider and the other elements of surefire. My only guess is that one of these jars (the surefire jars, that is) also contains the above mentioned class, or includes another jar that contains it, in a version that is not compatible with the other JAX-XXX jars (i.e. a jaxb version that is not compatible with JAX-WS 2.2).
And as for your exception, you need to add the jar file of your driver to the path.
Nope. Or, at least, not yet. That error means that Java can not find any loaded driver that matches the provided url, not that java can not load the class, but rather, that it doesn't know what class to use.
@OP, un-comment the "forName" line before the "getConnection". And, if that then leads to a "ClassNotFound", etc, exception, then add the jar to the classpath.
Edit: P.S. are you sure your DB is listening on port 80 as the used url suggest? Somehow, I doubt that.
1. The tomcat documentation, it comes with the tomcat distribution.
2. The JEE tutorials
JEE5 -> http://docs.oracle.com/javaee/5/tutorial/doc/
JEE6 -> http://download.oracle.com/javaee/6/tutorial/doc/
As mentioned in your other thread, read the JEE tutorials and the Tomcat documentation.
The topic you are attempting to bridge here is far too large.
The documentation and tutorials do that. Have you even bothered to read them, yet?
Install a 64 bit office or a 32 bit java. You can access (with some extra admin steps to configure the driver) a 64 bit access with the 32 bit bridge (as, as mentioned, you can, with a few steps, create access to the 64 bit driver using a 32 bit driver reference), but I know of no way to go the other way.
Properly configure your web caontainer's configuration pool and use jndi to access it. See the JEE tutorials and/or your web container's documentation.
Install a web container or an application server, deploy a webapp containing that jsp to that container/server, start the webapp, access the site.
What do you mean "how insertion and deletion works in my program"? Don't you know? Didn't you write it?
You don't close the else block of case 5.
Always use braces when using if and you won't forget this sort of thing.
Look at those compiler warnings. The compiler will also suggest to you an argumnet to use during compilation. Do so, and it will tell you exactly what needs to be changed.
Please use code tags.
Anyway, what is your question?
And why a Leftist heap? Why not a Marxist heap?
But I want an alphabet to be at its position and a number should be auto incremented.
And for that I said to find some MS Access doumentation which will tell you how to get an auto increment type field and that same access documentation should be able to tell you how to, in a query, make sure that number (as a string) contains a specific amount of characters, and pad it when it is not, as well as how, in an access query, to concatenate strings. Have you done that yet? In any case, this is not a Java question in the first place.
Oh, so, in other words, you are simply going to wait and hope someone does it for you? Find an access forum/documentation/whatever and find out about sequences, then simply slap a letter onto the front of it while padding its length (and the access documentation will also show you how to do that). At least try, then post your attempt and maybe someone will help you fix it, if it doesn't work.
for oracle investigate "trigger" and "sequence", for mysql invesitage "auto-increment", for other dbs something similar.
Like I said, go back and try the second method
print the arrays values
Create an int assign it the length of the array.
Then while that variable is greater than 1
loop through the array from 1 while the index is less than that variable
and assign to index - 1 the result of subtracting the values at index and index - 1
print that array's values up the element at that variables value minus 2
subtract one from that variable
How did printStackTrace "not work". You need to explain that one more. In any case, add a printStackTrace anyway and post the results of that.
I'm sure it would be. Post your code and we will help you correct it. The last method is the one you want to use.
Sure print the first array, create a second array, calculate into it, print that, redefine the first array as a the third array (or simply use a "last index" type variable) and calculate the second into that, rinse, lather, repeat.
Edit: Better of course, would be to simply recalculate the first value "in place" and use a "last index" type variable.
As has already been said.
It has also been noted that this is not guaranteed to the have desired effect. The browser (and especially proxy servers) do not have to honor these.
Like I said it is the UAC. Users do not have normal access to write to the "Program Files" directory without Administrator rights, and, in fact, even then not without starting the browser under "run as administrator". You are not going to be able to change that.
I done it already but not working properly ! ( Same Error)
Then you haven't done it correctly. Post that,hopefully without scriptlets.
Or by learning some SQL and doing a join.
By using another statement object, obviously.
Because you are using the same statement to open multiple result sets, see the API docs for Statement where it clearly states that opening a second resultset will automatically close the first.