File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
jsf/file-upload/src/main/java/org/javaee7/jsf/file/upload Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,10 @@ public Part getFile() {
6060 }
6161
6262 public void setFile (Part file ) {
63+ System .out .println ("Got file ..." );
6364 this .file = file ;
6465 if (null != file ) {
66+ System .out .println ("... and trying to read it ..." );
6567 try {
6668 BufferedReader reader = new BufferedReader (new InputStreamReader (file .getInputStream ()));
6769 String string = reader .readLine ();
@@ -72,12 +74,16 @@ public void setFile(Part file) {
7274 }
7375 text = builder .toString ();
7476 } catch (IOException ex ) {
75-
77+ ex . printStackTrace ( System . err );
7678 }
79+ System .out .println ("... completed reading file." );
80+ } else {
81+ System .out .println ("... but its null." );
7782 }
7883 }
7984
8085 public String getText () {
86+ System .out .println ("Complete text: " + text );
8187 return text ;
8288 }
8389}
You can’t perform that action at this time.
0 commit comments