[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using <html:multibox> struts error: org.apache.struts.taglib.html.BEAN does not view

Posted on 2007-07-23
3
Medium Priority
?
746 Views
Last Modified: 2013-11-24
hi,

i am trying to create a number of checkboxes at the and of rows of data to allow you to select a number of rows and then hit a submit button that will call an action. When the <html:multibox> tag is used the page doesnot load and give the error:

"Cannot find bean under name org.apache.struts.taglib.html.BEAN "
here is my code:
JSP:-

<c:choose>
   <c:when test="${pageObject.surveyId == '104'}">
      <html:multibox property="resultId">
          <c:out value="${pageObject.id}"/>
      </html:multibox>
   </c:when>
</c:choose>

which is enclosed in a form calling allocateResource.do with a submit button.

ACTION FORM:-
public class AllocateResultsForm extends ActionForm {
      private String[] resultId ={};
     
       public String[] getResultId() {
      return resultId;
       }

       public void setResultId(String[] strings) {
              resultId = strings;
       }

}

Thanks for you help in advance.


0
Comment
Question by:Rosscowie
1 Comment
 
LVL 4

Accepted Solution

by:
evnafets earned 2000 total points
ID: 19552910
>Cannot find bean under name org.apache.struts.taglib.html.BEAN

The standard cause of this error message is that you have not got an <html:form> on your page.
When you use a struts html component and specify only a property, it looks for the property on the backing form bean.  So this multibox tag needs to be nested within an <html:form>

Cheers,
evnafets
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question