troubleshooting Question

Struts - Nested or Indexed Array not working - Invalid argument looking up property of bean

Avatar of kanishkpanwar
kanishkpanwar asked on
5 Comments1 Solution4922 ViewsLast Modified:
I have an array of a class in my bean and when I try loading the JSP, it throws me the error given below.

javax.servlet.jsp.JspException: Invalid argument looking up property emailTO[0].internetIdentifier of bean org.apache.struts.taglib.html.BEAN
      at org.apache.struts.taglib.TagUtils.lookup(
      at org.apache.struts.taglib.html.BaseFieldTag.prepareValue(
      at org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(
      at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(

public class FieldIntellFormBean extends BaseFormBean {

      private InternetIdentifierTO[] emailTO = new InternetIdentifierTO[3];

      private InternetIdentifierTO[] imNameTO = new InternetIdentifierTO[3];

      public FieldIntellFormBean() {

            for (int j = 0; j < SIZE; j++) {
                  emailTO[j] = new InternetIdentifierTO();

                  imNameTO[j] = new InternetIdentifierTO();

public class InternetIdentifier{

      private String internetIdentifier;


public InternetIdentifierTO(){
      internetIdentifier = "";

Any Help?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros