wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Spring portlet form: @ModelAttribute not populated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Spring portlet form: @ModelAttribute not populated" Watch "Spring portlet form: @ModelAttribute not populated" New topic

Spring portlet form: @ModelAttribute not populated

Weng Pui Lam

Joined: Sep 12, 2012
Posts: 1
I am a beginner at Spring and I was wondering why my ModelAttribute did not populate (All the values were null)

I want to create a multipart from that allows me to upload a csv file as well as the type of CSV file too.

My codes are as such:

In the CSVUpload-portlet.xml:

CSVUploadPortlet.java (Controller)


Form JSP

I know it seems like asking you to help solve a problem for me but I've been stuck on this for 8 hours, reading every resource and stackoverflow website i could google on. But despite that, I wasn't able to find anything.

Thank you for your help in this. Please let me know if I missed anything out.
I agree. Here's the link: http://aspose.com/file-tools
subject: Spring portlet form: @ModelAttribute not populated
Similar Threads
Form for fetching data from database and displaying results on same page
IllegalStateException:Neither BindingResult nor plain target object for bean name available
New value is inserted into db in @ManyToOne relation instead of update
ID isn't binded with form object