Hi,
I have a very simple bean that I use. I dont know why
I can not use of the String[] property of this bean.
I will show a simplified version here to describe the problem
public class testBean {
private String[] valor = new String[] { "this", " is "," Teste"};
public testBean () { };
public String[] getValor() {
return valor;
}
public void setValor(String[] newValue) {
valor = newValue;
}
}
Well, when I try to access the property value in a jsp page like below.
I get an error. Converting the same property to string avoid the error.
WHat I can do to receive a collection in this situation.
<%
String[] s = testBean.getValor();
%>
THE ERROR
java.lang.NoSuchMethodError: java.lang.String[] x.testBean.getValor()
at org.apache.jsp.index2_jsp._jspService(index2_jsp.java:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
How can I correct that.
Environment
JBuilder 6 enter...
Tomcat 4.1.2
Joao,