up up up up
Type: Posts; User: noFear
Greetings!
I have .xhtml template and I have declared variables there. Example:
<!-- #set( $mailserver = "10.10.10.10") -->
I want to use these variables in my Java Code. The question is how...
I want to make different type of sort. I have an ArrayList of Strings. When the information is shown I want all the Strings beginning with "blablabla" to be shown first. How can I achieve that?
Thank you, it worked!
This piece of code prints everything that it finds. I want to print only the first 200 results. Here is the code
for (String key : data.keySet()) {
Set<File> files = data.get(key);...
Tokenizer did the trick thanks :)
I have a string containing several words. What i need is to seperate these words and add them to a Set<String>. How can I achieve that?
I am searcing inside a file server, my output is path to file. Can you give an example code. My servlet is ok i have trouble only with the viewSearch.jsp. In the servlet i store all the found info...
Can you give me an example of a simple view results page (jsp) when using servlet in a search engine?
I have tried to follow this example: Search from Database In Servlet but i can`t understand it...
I think that there isn`t a solution to my problem. Thanks anyway. I should find a different approach.
What i mean is I have the method
public static void dumpData(PrintStream ps, Data data)
which prints the results in seperate lines. I need to call this method dumpData(System.out, data) but each...
It worked just fine!
Just one remark: Searcher.searchAnd(set) should be inside a try/catch clause.
Thank you for the help!
I have a method with argument of type Set<String>. The variable which i should use as a paramter of the method is type String. What is the solution ?
Method:
public static Data...
I get an error: Unknown column 'a' in 'field list'. The values i have entered are: edit_name=a, edit_ip=b, edit_os=c, edit_ram=123, old_name=1(I have 4 records with that name). Here is my code, how...
the url, driver, dbName, userName, and password are stored in a properties file, i load the values with no problem, while debugging i checked the values and they are just as they are supposed to be
i have no idea there isn`t line 1075
I debugged and the exception was thrown after this line:
conn = DriverManager.getConnection(url+dbName,userName,password);
when I click on the error that`s...
I have made a change
The method CreateTable drops out.
I create the table manually.
Then when i am executinmg this, the samo error appears:
public static void AddInfoDB(Connection conn, String...
Greetings!
I get the following error while compiling my java code:
java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES)
I have made some research and noticed...
how to see the name of the driver?
I am recently using Mysql with Java. I want to ask a few things:
1. Do i need to install a version of MySQL(i think this is a foolish question but i have never used MySQL inside JAVA)
2. Where to...
Can you tell me the difference between those two?
I have noticed that when i use next(), for example:
String entered_name=scan.next(); , I can enter only one word, this method doesn`t accept two...
how to install the libraries in Eclipse? I think XStream will do the trick
How can i save an information stored in an ArrayList object after the program has been terminated and started again?
I save all the information from the ArrayList object in a file.
I have an...
I like this approach very much can you give me a simple example how to use that?
I really can`t understand how to use this code...can you put mine code in yours to see the usage?