jstl while loop
how do i do this using jstl, since there's no while tag?
CaseStudy myCase = CaseStudyManager.getCaseStudy(caseStudyId);
...
do{
...
myCase = myCase.getPriorCase();
}while (myCase !=null);
how do i do this using jstl, since there's no while tag?
CaseStudy myCase = CaseStudyManager.getCaseStudy(caseStudyId);
...
do{
...
myCase = myCase.getPriorCase();
}while (myCase !=null);
You don't do it in JSTL.
You write a helper function which gets the correct case to display on the JSP.
If you are using a JSP2.0 container you could use an EL function for it.
MicroNova YUZU JSP tag library (https://micronova-yuzu.dev.java.net) contains support for "Dynamic Iterator" which can be used to create a "while" loop. Hope this helps.