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++)
{
%>
<htmlption value="<%=environmentValues%>"> <%=environmentNames%> </htmlption>
<%
}
%>
</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)
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++)
{
%>
<htmlption value="<%=environmentValues%>"> <%=environmentNames%> </htmlption>
<%
}
%>
</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)