Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html:select tag problem

Status
Not open for further replies.

manth

Programmer
Mar 17, 2004
1
US
Hi,

I am using html:select to populate the data which is in an array.
my code is like this
<%!
DataResource dataResource = DataResource.getInstance();
String[] environmentNames = dataResource.getEnvironmentNames();
String[] environmentValues = dataResource.getEnvironmentValues();
%>
<TABL
<TD><html:select property="environmetType" size="1">
<%
for(int i=0; i<environmentValues.length; i++)
{
%>
<html:eek:ption value="<%=environmentValues%>"> <%=environmentNames%> </html:eek:ption>
<%
}
%>
</html:select>
</TD>

I am getting the following error

E SRVE0026E: [Servlet Error]-[Cannot find bean under name org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: Cannot find bean under name org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:301)
at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:244)
at org.apache.jsp._locatemsg._jspService(_locatemsg.java:201)


 
Hi,

Define the set and get property for "environmetType" in the ActionForm class.

Cheers
Venu



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top