• 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

html:options

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

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

Jsp


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



Action

while (rs.next()) {
System.out.println(rs.getString(1));
pricePurposeList.add(new PriceForm(rs.getString(1)));
}
request.setAttribute("pricePurposeList", pricePurposeList);



PriceForm is one bean


Struts_config.xml

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


Error
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?

Thanks
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you surrounding it with an html:form with an action of getPricePurpose?
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic