aspose file tools
The moose likes Servlets and the fly likes Can I use a Bean to send form data from Servlet to Model Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Can I use a Bean to send form data from Servlet to Model" Watch "Can I use a Bean to send form data from Servlet to Model" New topic
Author

Can I use a Bean to send form data from Servlet to Model

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 781

Hi everybody, I am Chaitanya, I have a html form which sends some data to Servlet. Total 25 fields are sent to the Servlet. These fields are inserted into Database through a Model. I am using an Array in servlet and passing this Array to Model.

My doubt is, can I use a Bean instead of Array.

Thank you all in advance.


Love all, trust a few, do wrong to none.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sure, why not? You're writing it, you can do it however you want.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can I use a Bean to send form data from Servlet to Model
 
Similar Threads
use of jsp, java serlvets and java beans in MVC model
Passing data to two servlets?
setIndexedProperty errors after reposting form data
Listener Class and Regular Java
getting an array into a bean