• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help regarding html select

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
while running my html:select i am getting the error
"cannot find bean under the name AAA"
My Jsp code is as follows

<html:select property="category1" size="7">
<html ptions collection="AAA" property="key" labelproperty="category" />
</html:select>
I have a String category1 setter and getter in my Form and
getter and setter for property key and category in my bean
I am creating an arraylist of my bean(with the key and category) in my action and setting to the request attribute AAA.
But when i run the jsp i am getting the error --
"cannot find bean under the name AAA"
Should i retrieve the attribute AAA in the Jsp page.
How to go abt this?
Thanks
Sana
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

That AAA basically should be a Collection r arraylist which holds objects with 2 set and get properties.Seems as if thats not in scope .so onece try printing that object depending on the scope(At the min it shld be in request scope if u r not writing any scriplets in ur jsp)

Do let me know abt this
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic