0 Replies Latest reply on Jun 16, 2008 9:07 AM by Sascha Hoffmann

    File in wich folder?

    Sascha Hoffmann Newbie

      Hi everybody

      I have a litle question. I try to read a file in my WebApplication
      but I have no idea in wich JBoss-Folder I have to put the files.

      My code

      public String getFehlerMeldung(String code, int kezi) {
       String text = "";
       String datei = "";
      
       //Datei ermitteln
       switch(kezi)
       {
       case 1: datei = "hwnStatusGesamt.hwc";
       case 2: datei = "hwnStatusAnrede.hwc";
       case 3: datei = "hwnStatusTitel.hwc";
       case 4: datei = "hwnStatusVorname.hwc";
       case 5: datei = "hwnStatusAdel.hwc";
       case 6: datei = "hwnStatusNachname.hwc";
       case 7: datei = "hwnStatusNachsatz.hwc";
       case 8: datei = "hwnStatusNamensrest.hwc";
       }
      
       try
       {
       BufferedReader test = new BufferedReader(new FileReader(datei)); ..............