File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Two dimensional Array  - Struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Two dimensional Array  - Struts 1" Watch "Two dimensional Array  - Struts 1" New topic

Two dimensional Array - Struts 1

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Hi All,
Thanks for reading the post. I am stuck up with this issue for some time and I am looking for suggestion to do it. I need to create the below Slab structure dynamically.

By default, I will have Slab 1. With Lower Income and Upper Level as text boxes which user can enter. Also user can define the Lower Income, Upper Income and Rate dynamically (There will be three text boxes where user can enter values. And 'Add rate' button will be provided, if he clicks on that 3 new textboxes will come down. Using this he can define any number of rates). There would be a add slab button to add a new slab. If he clicks on it Slab 2 would come up, with Lower and Upper income level as Textboxes. And also one row of 3 text boxes with Lower, Upper and Rate will be displayed. I need to do this in Struts. I am able to add the rows etc. But don't have an idea to associate them to form.

For e.g.

Is it possible to declare in the above way and get it in the Action? Thanks in Advance.

I agree. Here's the link:
subject: Two dimensional Array - Struts 1
It's not a secret anymore!