Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. javanemo

    logic error

    thanks for the post what happens if I do now know how many dates will there be in the array? i am getting the dates from the sql table and dates are not sorted
  2. javanemo

    logic error

    hi I am trying to write a simple logic say example <pre> a=20030930; b=20031005; c=20031130; d=20031231; e=20030829; while (1){ .. if(currentdate <= dateline) { print(date); } } where dateline is a list of all the dates eg a, b, c, d, e But my above codes prints b c d How...
  3. javanemo

    execute another servlet from the current servlet

    where to get the URLConnection class? I tried using the requestdispatcher but it did not work
  4. javanemo

    execute another servlet from the current servlet

    as i already said i do not want to use the URL method
  5. javanemo

    execute another servlet from the current servlet

    Hi I have got a question. How do I call another servlet? http://localhost/test/servlet/FirstServlet http://localhost/test/servlet/SecondServlet How do I call SencondServlet from the FirstServlet? I do not wish to use the url method. Is there another way?
  6. javanemo

    properties file in JWSDP 1.0

    I am currently using JWSDP 1.0 to deploy my servlets. But I am unable to deploy my properties file into the WEB-INF folder. eg test.properties always go directly to the context folder everytime I add it. I tried to move it to the WEB-INF folder but it can't. Anyone can solve this?
  7. javanemo

    JWSDP 1.0

    I am using JWSDP 1.0 to deploy my servlets. Apparently I am unable to deploy my properties file into the WEB-INF folder. eg config.properties always go directly to the context folder everytime I add it. I tried to move it to the WEB-INF folder but it can't. Anyone can solve this?
  8. javanemo

    download file in servlets

    is there a way all the servlets is totally unable to do that unless we deploy it? If we have to put it on the web server then it would be simple. We can just redirect the servlet to the filename itself. But this is not what I wanted. Any codes that will be able to solve this issue?
  9. javanemo

    download file in servlets

    I tot of that but I do not want people to find out the link as it may contain some private stuff. This will only be accessible only from a login page. Therefore I was thinking of storing the file in a local drive which is not deployable in Tomcat.
  10. javanemo

    download file in servlets

    the file will be stored in c:/tmp in the server computer. The client will be able to download the file when he clicks on a button. I need to write code for the user to download the file. I have really no idea how to approach this method.
  11. javanemo

    download file in servlets

    I am planning to write a code to downlaod an excel file in c:\tmp Anyone has any idea how will I be able to achieve that as the c:\tmp is not deployed in Tomcat? Any example codes that anyone can provide me?
  12. javanemo

    sql drop all tables in a table

    I wrote the function below but I am not sure how to parse the tablenames. Basically I am confused now. The examples from the google really messed me up. private void dropTable() throws SQLException { try { out.println(&quot;Dropping Table.............&quot;); stmt = conn.createStatement()...
  13. javanemo

    sql drop all tables in a table

    forgot to include that I wish to write a seperate method to drop the tables in sql, so that it I dun have to write multiple commands each time I wan to drop the table rite?
  14. javanemo

    sql drop all tables in a table

    Hi all.. I am new to java and I am thinking of dropping all the tables in mysql. I have written halfway and I am stuck. can someone help me? String query = &quot;SELECT tablename FROM tablelist&quot;; ResultSet rs = con.runQuery(query); ArrayList infoList = new ArrayList(); while (rs.next()) {...

Part and Inventory Search

Back
Top