This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes PreCheck the Checkbox of struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "PreCheck the Checkbox of struts" Watch "PreCheck the Checkbox of struts" New topic

PreCheck the Checkbox of struts

Arun Sri

Joined: May 24, 2005
Posts: 4
Hi All,
I am using the Struts tag in my JSP in which i am using the array of checkbox to which i want to check it on pageload.

JSP Code:
<html:checkbox property="funcSelect" value='Dyanamic' />


Private String[] funcSelect;

* @return Returns the funcSelect.
public String[] getFuncSelect() {
return funcSelect;
* @param funcSelect The funcSelect to set.
public void setFuncSelect(String[] funcSelect) {
this.funcSelect = funcSelect;

I have checked all the entries in the struts-config all are surely right. because with the array of checkbox i am also using a different single check box and populating that check value from the corresponding ActionClass of the JSP and if the value is same then that checkbox is checked.but when we populate the value of array of checkboxes from the ActionClass and even all the values of the checkboxes are same the array of checkboxes not get checked.......
please provide me the solution if u have....
thx in advance
Ben Souther

Joined: Dec 11, 2004
Posts: 13410


There is a forum devoted to Struts on this site.
Your question is bound to be seen by more Struts savy developers there.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: PreCheck the Checkbox of struts
jQuery in Action, 3rd edition