wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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: 800

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.
 
 
subject: Can I use a Bean to send form data from Servlet to Model
 
Similar Threads
setIndexedProperty errors after reposting form data
Listener Class and Regular Java
Passing data to two servlets?
use of jsp, java serlvets and java beans in MVC model
getting an array into a bean