Dave Tolls wrote:Can you put that code inside code tags?
Also, that lot won't compile, the executeQuery line is missing a closing quotes and bracket.
ALL is valid, but I'm not sure it's required is it? It's the default for a statement, so i's a bit redundant.
Can you post the full stack trace and message and highlight the exact line in your code the error is thrown from?
Dave Tolls wrote:Can you put that code inside code tags?
Also, that lot won't compile, the executeQuery line is missing a closing quotes and bracket.
ALL is valid, but I'm not sure it's required is it? It's the default for a statement, so i's a bit redundant.
Can you post the full stack trace and message and highlight the exact line in your code the error is thrown from?
Ulf Dittmer wrote:That's what the <welcome-file-list> tag in your web.xml is for.
username:test
password:test123
domain:test321
DBname:testDB
Jarrod Rackley wrote:Here is a simple example that grabs a text file and prints it's contents.
The text file contains:
That should help get you started. You can also check out the java tutorials here and I have found some of the examples and tutorials here helpful as well.
**Edit**
Removed some unused attributes I had in.
**Edit 2**
Instead of doing System.out.println() you can print the text into a JTextArea, JLabel, or a number of other components that you can add to the JPanel. Also if you are going to mess with the String a lot, it might be easier to use a StringBuilder instead of just String.
Jarrod Rackley wrote:With info like that I think a properties file would be better.
But I would say use java.io.File and then you could read and print that line by line, or grab chunks based off keywords.
Tony Docherty wrote:Have you tried compiling and running it to see what happens?
BTW are you sure your NewExcelNewExcel test = new NewExcel(); line shouldn't just be:
I ask because your text object seems to be calling methods that are in the ReadExcel class.
Winston Gutkowski wrote:
Foni kumar wrote:Can someone suggest me why I am getting the error message :-
Yes. Because the compiler doesn't know what a NewExcel is. Is it a class from a library? Or one that you wrote yourself? Either way, if it's not in the same package as your ReadExcel class, you'll have to add an 'import' statement for it.
Winston
Bear Bibeault wrote:Nothing to do with JSP, moved to HTML/JavaScript.
Have you done a search on how to set cookies in JavaScript?