HeavensCloud
06-03-2009, 09:29 AM
Hello all, I'm currently enrolled in a Web Architecture course and in ten weeks we have briefly covered 7 different languages. I need some help with JSP issue. i'm pretty sure the solution is simple but all this code in a short time is making my brain turn to mush. Any help would be greatly appreciated.
I have a JSP page that has several sets of radio buttons. Each set holds the answer to a question and each set is labeled "q1" "q2" ect. I need to be able to retrieve the value of each set of buttons dynamically. What is the syntax to add a dynamic variable to the ${param.}
<c:forEach var="row" items="${emp.rowsByIndex}" varStatus='rnum'>
<c:out value='${param.q"rnum.index"}' />
</c:forEach>
where q"rnum.index" is the current position in the loop with a 'q' in front of it. Over the past two hours i have tried every configuration i can think of. I also tried using <c:set> to save string variables in stages but couldn't get that to work either. please help
I have a JSP page that has several sets of radio buttons. Each set holds the answer to a question and each set is labeled "q1" "q2" ect. I need to be able to retrieve the value of each set of buttons dynamically. What is the syntax to add a dynamic variable to the ${param.}
<c:forEach var="row" items="${emp.rowsByIndex}" varStatus='rnum'>
<c:out value='${param.q"rnum.index"}' />
</c:forEach>
where q"rnum.index" is the current position in the loop with a 'q' in front of it. Over the past two hours i have tried every configuration i can think of. I also tried using <c:set> to save string variables in stages but couldn't get that to work either. please help