aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Dynamic form table generation and naming of form fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Dynamic form table generation and naming of form fields" Watch "Dynamic form table generation and naming of form fields" New topic
Author

Dynamic form table generation and naming of form fields

Peter Maxwell
Greenhorn

Joined: Jun 14, 2009
Posts: 14
G'day everybody,

I have a database table with fields product,manufacturers and suppliers. I am using a bean which returns an ArrayList of these values which i am using to display the table in a jsp. Now i would like to have another jsp which generates a 10x3 table of cells having input fields(text boxes) in which i would enter these values(product,Manufacturer,supplier) and submit them to the database.
My problem is how would i go about naming these 10x3 input form fields?. For getting the data from the bean i use ArrayList which contains the ResultSet. Similarly how can i submit them to the database using a bean?. Is there any standard way to do things like this?.

After hours of work,I am completely stumped at this . Any help in any form(links, suggestions)would be very much appreciated.

PS:
I am using eclipse ganymede IDE to develop my program and the following line of code

gives me a warning "Array List is a raw type.References to generic type ArrayList<E> should be parameterized".
How can i remove this warning?

Thanks in advance.
Shashank Rudra
Ranch Hand

Joined: Mar 26, 2009
Posts: 131
First part, to insert the data in the table we can have it as simple ArrayList<ArrayList<String>> instead of ResultSet. As we have populated the HTML elements with using that only. (if I have been following you correctly).

To get rid of warning we can use <ArrayList><String>> in place of E.


Programmer Analyst || J2EE web development/design
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic form table generation and naming of form fields