This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes html:Checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:Checkbox" Watch "html:Checkbox" New topic


Ashish Bassi

Joined: Aug 22, 2007
Posts: 11
I have an a Form

class myForm extends ActionForm {
SportsBean sportBean;
//sportsBean getters n setters

class SportsBean {
private cricket;
private hockey;
//getters and setters

Now in my Jsp, i want to associate 2 checkboxes with these porperties in sportsbean

im doign somethign like this in my jsp

<html:checkbox property="">

but i get an error
javax.servlet.ServletException: Invalid argument looking up property: "" of bean: "org.apache.struts.taglib.html.BEAN"
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Make sure you instantiate the bean when it is defined. Example:

Consultant, Sima Solutions
subject: html:Checkbox
Similar Threads
How to disable html:checkbox based on html:radio selection
struts and java script
how show check box checked?
struts and java script
hbm2java - private members ?