i want to write a jsf code to get a site where i can able to browse the files in my computer and choose on of them (upload)
File Upload is Easy in JSF2.2 | Ramki Java Blog
jsf - PrimeFaces fileUpload showing the file name after upload - Stack Overflow

But acutely what i need is to return the path and return of the uploaded file
1) method to return the name of the uploaded file
2) method to return the path of the uploaded file

how to do it?