Search:

Type: Posts; User: noFear

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Re: How to use VelocityContext to take values from template?

    up up up up
  2. How to use VelocityContext to take values from template?

    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...
  3. Replies
    6
    Views
    2,251

    How to sort an ArrayList of Strings?

    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?
  4. Re: How to make this print only the first 200 results?

    Thank you, it worked!
  5. How to make this print only the first 200 results?

    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);...
  6. Replies
    9
    Views
    1,718

    Re: How can i divide a string?

    Tokenizer did the trick thanks :)
  7. Replies
    9
    Views
    1,718

    How can i divide a string?

    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?
  8. Re: How can i view search results by using servlet and jsp?

    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...
  9. How can i view search results by using servlet and jsp?

    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...
  10. Re: How can i print rows 1 by 1 using System.out.println?

    I think that there isn`t a solution to my problem. Thanks anyway. I should find a different approach.
  11. How can i print rows 1 by 1 using System.out.println?

    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...
  12. Re: How can I convert a String to Set? Is it possible?

    It worked just fine!
    Just one remark: Searcher.searchAnd(set) should be inside a try/catch clause.

    Thank you for the help!
  13. How can I convert a String to Set? Is it possible?

    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...
  14. Replies
    2
    Views
    1,587

    How to fix this?

    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...
  15. Re: I get an error trying to connect to database:java.sql.SQLException: Access denied

    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
  16. Re: I get an error trying to connect to database:java.sql.SQLException: Access denied

    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...
  17. Re: I get an error trying to connect to database:java.sql.SQLException: Access denied

    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...
  18. I get an error trying to connect to database:java.sql.SQLException: Access denied for

    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...
  19. Re: How to install a JDBC driver in Eclipse? And where to take it from?

    how to see the name of the driver?
  20. How to install a JDBC driver in Eclipse? And where to take it from?

    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...
  21. What is the difference between next() and nextLine()?

    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...
  22. Re: Save the information from an ArrayList after restarting the program

    how to install the libraries in Eclipse? I think XStream will do the trick
  23. Save the information from an ArrayList after restarting the program

    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...
  24. Re: How to make an error message when my program crashes?

    I like this approach very much can you give me a simple example how to use that?
  25. Re: How to make an error message when my program crashes?

    I really can`t understand how to use this code...can you put mine code in yours to see the usage?
Results 1 to 25 of 34
Page 1 of 2 1 2