I haven't actually used the html:select tag, but it looks as though is
expects to retrieve data from a bean.
The name attribute specifies which bean to use (in the pageContext) and the
property attribute specifies which
property of the bean to use.

HTH,
    Pete

"Kilmer, Erich" wrote:

> In the struts example struts-select.jsp there is this code:
>       <html:select property="singleSelect" size="10">
>         <html:option value="Single 0">Single 0</html:option>
>         <html:option value="Single 1">Single 1</html:option>
>         ...
>         <html:option value="Single 9">Single 9</html:option>
>       </html:select>
>
> When I try this code:
> <html:select property="status" size="2">
>    <html:option value="enabled">Enabled</html:option>
>    <html:option value="disabled">Disabled</html:option>
> </html:select>
>
> I get:
> 500 Internal Server Error
> javax.servlet.jsp.JspException: No getter method available for property
> status for bean under name org.apache.struts.taglib.html.BEAN
> at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304)
> at /input.jsp._jspService(/input.jsp.java:322) (JSP page line 98)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>
> Why? I want status to be the name of the request parameter that is sent
> back. Why does Struts think this is a bean property?
>
> Should I use something other than property?
> TIA,
>
> Erich Kilmer
> Bell+Howell
> RTP, NC

Reply via email to