Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<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>
<action path="/popsup" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" parameter="parameter" input="/pages/uploadsuccess.jsp">
<forward name="success" path="/pages/uploadsuccess.jsp"/>
</action>

in the uploadsuccess.jsp
i have
<html:select property="valueObj.id" name="FileUpload">
<html ptionsCollection property="objectList" value="id" label="fullName"/>
</html:select>
<html:submit/>
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)
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this code
<html:select property="selectedEmployeesStringArray" multiple="true" size="5" >
<html ptionsCollection name="employeesList" value="id" label="name" />
</html:select>
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic