Hi All,
I'm having issues with a for loop in .jsp. The second for loop in red will not post anything to the webpage. It will do work with variables. But when I try putting something like <%=employeeIDArray%> in the loop it does not work.

Any help is appriciated.

<%   
     String employeeIDArray[] = new String [200];
	 String employeeDESCArray[] = new String [200];
	 String id;
	 String desc;
	 for (int i = 0; i < empsSize; i++)
     {


	 Employee emp = (Employee) emps.get(i);
	 id = emp.getId();
	 desc = emp.getName().getValue();
	 employeeIDArray[i] = id;
	 employeeDESCArray[i] = desc;
	 }
	 
	 for (int i = 0; i < empsSize; i++)
     {}

	 %>

Post your whole code.
And this: <%=employeeIDArray%> suppose to be put in the "html" code. Not in the scriplet

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.