This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes html:options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:options" Watch "html:options" New topic


Ranch Hand

Joined: May 29, 2002
Posts: 198
Hi All,

I am facing some problem in using html ptions .Below are the relevant snippets/


<html:select name ="priceForm" property = "pricePurpose">
<html ptions collection = "pricePurposeList" property = "pricePurpose"/>


while ( {
pricePurposeList.add(new PriceForm(rs.getString(1)));
request.setAttribute("pricePurposeList", pricePurposeList);

PriceForm is one bean


<form-bean name="priceForm" type="net.ubssngpb.starr.forms.PriceForm">
<action path="/getPricePurpose" type="" name="priceForm" scope="request">
<forward name="home" path="Home.jsp">

SRVE0026E: [Servlet Error]-
[Cannot find bean under name priceForm]:
javax.servlet.jsp.JspException: Cannot find bean under name priceForm

Can anybody point out where am I going wrong?

Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Are you surrounding it with an html:form with an action of getPricePurpose?

A good workman is known by his tools.
Don't get me started about those stupid light bulbs.
subject: html:options