P
peter10
Hi there,
can anybody help to translate the following Java-code into JSP or
Struts syntax, so that the JSP-page doesnt contain Java code? I
experimented with Strut's <iterate> tag but that didn't seem to help
with the second for-loop ...
Any help would be greatly appreciated!
Best wishes,
Peter
ArrayList array = new ArrayList(collection1);
ArrayList array2 = new ArrayList(collection2);
for(int i = 0; i < array.size(); i++){
out.println(array.get(i));
if(array.get(i) == value_from_request){
for(int j = 0; j < array2.size(); j++){
out.println(array2.get(j));
}
}
}
can anybody help to translate the following Java-code into JSP or
Struts syntax, so that the JSP-page doesnt contain Java code? I
experimented with Strut's <iterate> tag but that didn't seem to help
with the second for-loop ...
Any help would be greatly appreciated!
Best wishes,
Peter
ArrayList array = new ArrayList(collection1);
ArrayList array2 = new ArrayList(collection2);
for(int i = 0; i < array.size(); i++){
out.println(array.get(i));
if(array.get(i) == value_from_request){
for(int j = 0; j < array2.size(); j++){
out.println(array2.get(j));
}
}
}