• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help regarding html select

 
Sana Jay
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
sreenath reddy
Ranch Hand
Posts: 415
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic