| To: | users@xxxxxxxxxx |
|---|---|
| Subject: | Simple Struts Tag Question |
| From: | John Olmstead <jolmstead2k@xxxxxxxxx> |
| Date: | Thu, 28 Jul 2005 08:44:22 -0700 (PDT) |
| Delivered-to: | mailing list users@cinjug.org |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AOxeWEB/gurJTTQTx8H26nH9s2xDIqgsuqkukesgaWQkmlQip4+izujy8HHfHnwAFZXl1cA6DbXhFbyclHijA65QoX7EC6uJVPxXBfWTGvtCmrTtWLScYOAhN6GokvdNYYLroJSKpKDisULPmhRtCtW9ou0X1K0/pvvPzkRYfXU= ; |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
Ladies and Gentlemen;
I am trying to populate an html drop down with the Struts select and options
tags. The
countryList bean referenced in the collection is an ArrayList of struts
LabelValue beans.
Here is the tag snippet:
<html:select name="userInfoForm" property="citizenship">
<html:options name="countryList" property="value"
labelProperty="label"/>
<html:option value="">OTHER</html:option>
</html:select>
The stack trace(below) indicates that the Struts options tag is trying to call
getValue()
method on the list object itself. Omitting the property and labelProperty
attributs of the
tag results in the Object toString() being invoked with the correct values of
the labal and
value properties of the LabelValue Bean.
Any assistance is much appreciated.
Thanks;
John Olmstead
The resulting Stack Trace is:
javax.servlet.ServletException: No getter method available for property value
for bean under
name countryList
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.newuserpage_jsp._jspService(newuserpage_jsp.java:112)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
root cause
javax.servlet.jsp.JspException: No getter method available for property value
for bean under
name countryList
org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:425)
org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:289)
org.apache.jsp.newuserpage_jsp._jspx_meth_html_options_0(newuserpage_jsp.java:729)
org.apache.jsp.newuserpage_jsp._jspx_meth_html_select_0(newuserpage_jsp.java:696)
org.apache.jsp.newuserpage_jsp._jspx_meth_html$1el_form_0(newuserpage_jsp.java:349)
org.apache.jsp.newuserpage_jsp._jspx_meth_c_if_1(newuserpage_jsp.java:257)
org.apache.jsp.newuserpage_jsp._jspService(newuserpage_jsp.java:102)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
John Olmstead
jolmstead2k@xxxxxxxxx
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] Hibernate and database default values, Edward Sumerfield |
|---|---|
| Next by Date: | RE: [cinjug-users] Simple Struts Tag Question, Rich Schramm |
| Previous by Thread: | Early Bird Ends Monday, August 1st...Join Us for the Southern Ohio Java Software Symposium coming to Cincinnati on August 26-28th, Jay Zimmerman |
| Next by Thread: | Fwd: [cinjug-users] Simple Struts Tag Question, josh marotti |
| Indexes: | [Date] [Thread] [Top] [All Lists] |