Ask a question and start a new topic!

Employee of Enrich Web Technologies Private Limited might answer this
1-3of 3
  • Where to write a file in Tomcat 8 and Servlet /JSP on my Hard Disk ?

    I want to write my.properties file. My query is that “In which path should it be created”. I have installed glassfish on my Linux 14.04 machine on this path: /opt/glassfish4 and created the file my.properties at: /opt/glassfish4/glassfish/domains/swManzana/config/my.properties This is my Code: Boolean wflag = false; String wnomfile="my.properties" Properties prop = new Properties(); OutputStream output = null; System.out.println("Inicio Archivo Properties.. " + wnomfile); try { // output = new FileOutputStream("config.properties"); output = new FileOutputStream(wnomfile); System.out.println("Archivo Creado Properties.."); // set the properties value prop.setProperty("database", "localhost"); prop.setProperty("dbuser","mkyong"); prop.setProperty("dbpassword","password"); // save properties to project root folder prop.store(output,null); System.out.println("Archivo Creado/Grabado Properties.."); wflag=true; }catch(IOExceptionio){ System.out.println("Error Archivo Properties Exception.."); io.printStackTrace(); }finally{ System.out.println("Archivo Properties inicio Finally.."); if(output!=null){ try{ System.out.println("Archivo Properties Antes de CLOSE Finally.."); output.close(); System.out.println("Archivo Properties Grabado Finally.."); }catch(IOExceptione){ System.out.println("Archivo Properties Exception-Finally.."); e.printStackTrace(); } } } returnwflag; While executing the above code my.properties file not created. Why Tomcat is not creating this file. I have properly checked my tomcat installation and found no issues in access web Pages and ports. Can anyone suggest me some knowledgeable tutorials URL Links on Java questions and answers, so that I can get my query resolved faster.

    • 0 Answers
  • How to check a large list of Indexed URL in search engine using a Java Program

    I am trying to check thousands of URLs from search engine index, If they are existing or not. I need a Java program which can trigger these url one at a time to the search engine and record the response If it exists or not. I already ask this question to some Java questions and answers forum. But still I am waiting for complete solution. Someone there who would be willing to spend some time to support me to solve this problem.

    • 0 Answers
  • MasterCard integration Using Php language

    It is my first chance to integrate MasterCard to my PHP questions and Answers Website. I have already downloaded MasterCard PHP SDK but as it my first time, I am bit nervous for my MasterCard integration. Please provide me your assistance to achieve this.

    • 0 Answers
START A TOPIC OF DISCUSSION
  • Ask anything
    Related to Enrich Web Technologies Private Limited.
  • Discuss company matters
    Discuss work and working.
  • Discuss youth matters
    Discuss what matters to you, career, Company, anything.
ANSWER AND DEBATE
  • Discuss what you feel
    Click on any topic to discuss.
  • Answer and help others
    Answer or even counter Question, Questioners.