wood burning stoves
The moose likes Struts and the fly likes help regarding html select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help regarding html select" Watch "help regarding html select" New topic

help regarding html select

Sana Jay

Joined: Feb 03, 2004
Posts: 26
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" />
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?
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415

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
subject: help regarding html select
jQuery in Action, 3rd edition