santhi deeksha

Greenhorn
+ Follow
since Apr 02, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by santhi deeksha

I tried the loop like Tom suggested and it worked!!! I should have thought of it! But thanks Shankar and Tom for taking the time to help me out. You guys are awesome.


9 years ago
Oh and I forgot. I verified and no I am not overloading the getter or setter.
9 years ago
Hi Shankar, I appreciate you trying to help me out. It is not a waste of my time if I am learning something :-). Thank you!

I am using Struts 1.1. Line 102 in my code is the return statement in the getter. I included the SOPs as you suggested and I did get the one in getter printed as "processing current index: 7" and my Exception reads the same index "java.lang.IndexOutOfBoundsException: Index: 7, Size: 7"
9 years ago
Hi Tom, yes it is in fact programmeTeamList. I might have accidentally deleted it while trying to copy it over here. Sorry about that.

9 years ago
Shankar, Yes and this is how it looks.

9 years ago
Hi Shankar, here it is. Like I mentioned earlier, I have one initial row. I added 3 more one by one. So I have 4 rows when I tried to add 2 more at once.

9 years ago
I have a form with a table which has a single row of three columns initially. I have a link which adds an extra row everytime it is clicked. Since I do not know how many might be added I used an arrayList. Here's how my JSP looks.


And this is how I am adding a row using Jquery


In my form, I wrote getter and setter for a member (of each iteration) apart from the getter and setter for the arrayList.



Now, the above code works fine if I try to add a single row and submit. But if I try to add more than one row at a time and submit, I get an IndexOutOfBoundsException. Can you please tell me what I am doing wrong and how can I fix it?
9 years ago
Hi, I am writing a JSP that is able to upload multiple files at a time (with a single File element). My idea is to create a table and add a row to it when a file is selected. And what I would like to do is to pass these values to an array and submit to the server. Here's what I've written so far.

I thought I could create an array with selected checkboxes and submit the array but I realize that I cannot return it to the JSP (or can I?). Can anyone suggest how to proceed further from here? I am open to an entirely different way of doing this if it is possible. The only constraint is I cannot limit the user to a max number of files and have to use a single file element.

Thanks in advance for your help.