Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, why not? You're writing it, you can do it however you want.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic