Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 856769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:17:21+00:00 2026-05-15T08:17:21+00:00

In my Struts form I’ve got a list. In a JSP I iterate over

  • 0

In my Struts form I’ve got a list. In a JSP I iterate over it like this:

<c:forEach items="${MyForm.types}" var="type">
    <tr>
        <td>${type.name}</td>
        <td>${type.forced}</td>
        <td>${type.receive}</td>
        <html:checkbox property="type.receive" />
    </tr>
</c:forEach>

Now the <html:checkbox isn’t working. I’m always getting the following error:

Caused by: javax.servlet.jsp.JspException: No getter method for property type.receive of bean org.apache.struts.taglib.html.BEAN

But actually there is a getter for this property in my form class. It’s written like this:

public Boolean getReceive() {
  return receive;
}

When I remove the checkbox it’s also possible to display the property as in the <td>-tag above so I don’t know where the problem is.

Maybe I’m accessing it in the wrong way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:17:22+00:00Added an answer on May 15, 2026 at 8:17 am

    I’m now doing it like this:

    <c:forEach items="${MyForm.testList}" var="testElement" varStatus="status">
        <html:checkbox property="testList[${status.count-1}].checkboxValue" />
    </c:forEach>
    

    Thanks to this question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an input in Struts 2 form like this: <s:form action=Action> <input type=text
I have this line of code in my JSP. (I'm using struts 1.3) <html:form
I have this code in my JSP: <%@taglib uri=http://struts.apache.org/tags-html prefix=html%> .. .. <html:form action=update
I'm having an issue with a Struts 1 form, which contains a logic:iterate in
Using Struts 1.3. Submitting forms as a collection using the <logic:iterate> tag I'd like
This is the first time I am working with struts (1.2) In my jsp
Struts - Alternative of <html:errors /> to display error messages in Jsp?
I have a JSP struts application that uses Spring to integrate with the services/dao/database.
I'm trying to save a data in a simple form through Hibernate using struts
In one of my Struts action I've got the following code in a method:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.