Results 1 to 3 of 3
- 05-27-2012, 04:58 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
Inserting form fields to database
Hi All,
I am stuck in a situation wherein i am given to design a form(financial year) which contains many unique fields.I want to know how do i insert these many fields to database as using prepared statement would mean my Insert statement would go endless(as the fields are 60).The form pattern is i have months vertically arranged and 5 headers (horizontally arranged).Also an option of using an array wont work since all the fields are unique..
Any help would be highly appreciated.
Thanks in advance
- 05-27-2012, 06:32 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,609
- Rep Power
- 5
- 05-28-2012, 10:51 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Inserting form fields to database
Presumably the form represents a financial year (you seem to have 12 months on it).
So (in my mind) you have 12 rows to insert, one for each month, each containing 5 fields.
Which is a going to be a batched PreparedStatement as, presumably, you do not want a partial commit.Please do not ask for code as refusal often offends.
Similar Threads
-
passing data from .jsp or HTML form fields to a JAVA File and to a database
By juggernaut26 in forum New To JavaReplies: 2Last Post: 05-16-2012, 09:54 AM -
Using Editable Pdf form fields in Application
By jiten.mistry in forum Advanced JavaReplies: 5Last Post: 09-21-2011, 08:37 PM -
Connecting and Inserting Images to a java form.
By kiz106 in forum NetBeansReplies: 2Last Post: 07-01-2010, 02:32 AM -
Dynamic fields in form using Form Bean
By janu.c in forum Java SoftwareReplies: 1Last Post: 09-23-2009, 04:26 AM -
Inserting data to database from the form
By Ms.Ranjan in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-17-2008, 01:06 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks