I have a maven web application in which I use JSF and spring. I want to parse a csv uploaded file with fileUploadListener. The file is uploaded, but I don't know how to get data from it and store it in database:
<h:outputLabel value="Choose your file : *" />
<p:fileUpload mode="advanced" fileUploadListener="#{campagneMB.handleFileUpload}" update="growl"
sizeLimit="4000000" allowTypes="/(\.|\/)(csv)$/"/>
my file has this form:
xxxx#xxxxx#xxxxx