wood burning stoves 2.0*
The moose likes Struts and the fly likes java. lang. IllegalArgumentException: No Bean specified, help me to resolve 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 "java. lang. IllegalArgumentException: No Bean specified, help me to resolve" Watch "java. lang. IllegalArgumentException: No Bean specified, help me to resolve" New topic

java. lang. IllegalArgumentException: No Bean specified, help me to resolve

vijay ks

Joined: Oct 27, 2005
Posts: 9
<form-bean name="FileUpload" type="roseindia.net.StrutsUploadForm"/>
<action path="/FileUpload" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" parameter="parameter" input="/pages/FileUpload.jsp">
<forward name="success" path="/pages/uploadsuccess.jsp"/>
<action path="/popsup" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" parameter="parameter" input="/pages/uploadsuccess.jsp">
<forward name="success" path="/pages/uploadsuccess.jsp"/>

in the uploadsuccess.jsp
i have
<html:select property="valueObj.id" name="FileUpload">
<html ptionsCollection property="objectList" value="id" label="fullName"/>
My form Bean property is private ArrayList objectList; //list of valueObject
private valueObject valueObj; //has getters ans setters for id, firstName, lastName and only getter for fullName

After clicking the submit t got the following error

java.lang.IllegalArgumentException: No bean specified org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837) org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Tushar Fender

Joined: Sep 13, 2006
Posts: 3
try this code
<html:select property="selectedEmployeesStringArray" multiple="true" size="5" >
<html ptionsCollection name="employeesList" value="id" label="name" />
Dave Ken

Joined: Jul 28, 2009
Posts: 2
I have a similar issue to this one... The thing displays just fine but when I try to go back from the JSP to the form it gives me the 'No Bean specified error'

manageUsers.jsp - problem chunk

currentUser is a User Object... it is inside of my bean. The User object has a Role object inside of it and I want to set the role of the user....
Also insde of my bean I have an arraylist called Roles with all the roles avaliable to be assigned to a user

Thanks in advance!
I agree. Here's the link: http://aspose.com/file-tools
subject: java. lang. IllegalArgumentException: No Bean specified, help me to resolve
Similar Threads
Struts Configuration problem
Error msg: No bean specified
Probelom in Manual Validation method
java . lang . IllegalArgumentException: No bean specified
Getting Exception