Anil dhingra

Greenhorn
+ Follow
since Oct 01, 2009
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 Anil dhingra

Hi,
HTMLTable1 is the object which i am paasing to get the no. of rows in the HTML table.That row count is getting used in the code further for coloring the cells.Please let me know if you require any further input regarding this.

Thanks.
Hi All,
My code looks like below:

function OnHTMLTable1_ClickLink ( ) {

var TableDiv = document.getElementById("HTMLTable1");
var oRows = document.getElementById("HTMLTable1").getElementsByTagName('tr');
var iRowCount = oRows.length;

for(k=1; k<=iRowCount; k++)
{
if(document.getElementById("list"+o+k).selectedIndex == 0)
{

document.getElementById("list"+o+k).selectedIndex = 1;
document.getElementById("list"+o+k).options[1].style.backgroundColor = "green";
}
}

when I am trying to run this code it opens a new browser page and throwing a error "Object Required".I think it is not finding the object "HTMLTable1" and reading it as a null value due to which throwing this error.Please suggest me the way to handle this error in javascript.

Thanks,
Anil
Hi,
Can any one suggest me a way of creating multiple dropdowns in struts whose values will be populated from different arrays and selected values will be passed to Action class in a List?I know other way of doing it like recieving values in individual variables and then saving it in Database but I want to recieve it in List. Please provide example if possible.

Thanks in advance.
Anil
9 years ago
Hi,
I have a jsp page with 10 rows for 5 coulmns alongwith the checkboxes at the side.User can select multiple checkboxes to delete mutilple rows simultaneously by clicking on delete button.The code for jsp is as:



The values of 5 columns are passed in a list in form class.I have boolean variable for checkboxes "checkStatus".Can anyone suggest me how to recieve checkboxes values in form bean and handle them in action class?Do I need javascript for this?It would be great if anyone can send me any example where this type of problem is handled.

Thanks in advance.
Anil
9 years ago
Hi,
I tried to search a lot about this problem but I have not got anything significant.The main problem is how to associate the values of all the dropdowns and get it into list for all the ten rows.Has anyone worked on this kind of issue earlier?Please help if you have any idea on this.

Thanks,
Anil
9 years ago
Can anyone suggest some solution Please?

Thanks,
Anil
9 years ago
Hi,
I have a JSP which has five dropdowns which is repeated 10 times (10 rows) for simultaneous update.I have populated the dropdown values from array of each column using html:select and html:options as :

Similarly for other 4 columns.The arrays are populated in action class as shown in below code:

Similarly for other 4 columns.In Form bean i have 5 arrays for 5 columns and its getter & setter methods.Now,I want to recieve the values selected by user in a List which will have ten objects added for each rows.I have a classs which have 5 variables for each column and its list is in form bean class which will get the values of each 10 rows.I tried to use logic:iterate but it is displaying error that logic:iterate can't be used with select and options.
Can anyone suggest solution for this problem.

Thanks in advance.
Regards,
Anil
9 years ago
Hi,
I have a JSP which has five dropdowns which is repeated 10 times (10 rows) for simultaneous update.I have populated the dropdown values from array of each column using html:select and html:options as :



Similarly for other 4 columns.The arrays are populated in action class as shown in below code:


Similarly for other 4 columns.In Form bean i have 5 arrays for 5 columns and its getter & setter methods.Now,I want to recieve the values selected by user in a List which will have ten objects added for each rows.I have a classs which have 5 variables for each column and its list is in form bean class which will get the values of each 10 rows.I tried to use logic:iterate but it is displaying error that logic:iterate can't be used with select and options.

Can anyone suggest solution for this problem.

Thanks in advance.
Regards,
Anil