This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
html:options
Ajai
Ranch Hand
Joined: May 29, 2002
Posts: 198
posted
Dec 01, 2005 03:13:00
0
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
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
I like...
posted
Dec 02, 2005 15:38:00
0
Are you surrounding it with an html:form with an action of getPricePurpose?
A good workman is known by his tools.
I agree. Here's the link:
http://aspose.com/file-tools
subject: html:options
Similar Threads
html:options collection tag help URGENT
struts1.2 html:select tag not working
New to struts, please help
how to select mutiplse values in SELECT TAG
Cannot find bean: "EMPLOYEELIST" in any scope
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter