This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

PreCheck the Checkbox of struts

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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' />

FormBean:

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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arun,

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

Good-Luck.
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic