You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Prasad, Kamakshya" <kp...@capitalservicing.co.jp> on 2004/04/07 11:35:10 UTC

"No bean specified" error

Hi,

I have this line in my jsp 

<table>
      <logic:iterate id="courseDetailsLocal" name="employeeDetailsForm"
property="courseDetailsArray" indexId="ctr">
        <tr>  
          <td><html:text name="employeeDetailsForm" property='<%=
"courseDetails[" + ctr + "].name" %>'/></td>
        </tr>
      </logic:iterate>
    </table>

When I am submitting the form it gives me the error
java.lang.IllegalArgumentException: No bean specified

Could anyone please help me on this?

The EmployeeDetailsForm has this code

public class EmployeeDetailsForm extends ActionForm
{
private CourseDetailsForm courseDetailsFormArray[] = new
CourseDetailsForm[2];

public void setCourseDetails(int iIndex, CourseDetailsForm
courseDetailsForm)
	{
		courseDetailsFormArray[iIndex] = courseDetailsForm; 
	}

public CourseDetailsForm getCourseDetails(int iIndex)
	{
		return courseDetailsFormArray[iIndex]; 
	}

	public CourseDetailsForm[] getCourseDetailsArray()
	{
		return courseDetailsFormArray; 
	}

KP

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: "No bean specified" error

Posted by Marco Mistroni <mm...@waersystems.com>.
Hi,
	Wild guess... have you checked that the Action class
To which you submit the form has a 'name' attribute in the
struts-config?

Regards
	marco

-----Original Message-----
From: Prasad, Kamakshya [mailto:kprasad@capitalservicing.co.jp] 
Sent: 07 April 2004 10:35
To: Struts Users Mailing List
Subject: "No bean specified" error

Hi,

I have this line in my jsp 

<table>
      <logic:iterate id="courseDetailsLocal" name="employeeDetailsForm"
property="courseDetailsArray" indexId="ctr">
        <tr>  
          <td><html:text name="employeeDetailsForm" property='<%=
"courseDetails[" + ctr + "].name" %>'/></td>
        </tr>
      </logic:iterate>
    </table>

When I am submitting the form it gives me the error
java.lang.IllegalArgumentException: No bean specified

Could anyone please help me on this?

The EmployeeDetailsForm has this code

public class EmployeeDetailsForm extends ActionForm
{
private CourseDetailsForm courseDetailsFormArray[] = new
CourseDetailsForm[2];

public void setCourseDetails(int iIndex, CourseDetailsForm
courseDetailsForm)
	{
		courseDetailsFormArray[iIndex] = courseDetailsForm; 
	}

public CourseDetailsForm getCourseDetails(int iIndex)
	{
		return courseDetailsFormArray[iIndex]; 
	}

	public CourseDetailsForm[] getCourseDetailsArray()
	{
		return courseDetailsFormArray; 
	}

KP

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org