<%
final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
final String ID = sc.getId();
final String requestId = request.getParameter("requestId");
//here we also need to deal with the multiple select inputs from the previous page
//their selected values need to be extracted from the request and concatenated into a single String
//first deal with quality control input
String[] items = request.getParameterValues("qualityControl");
StringBuilder qualControl = new StringBuilder();
for(int i = 0; i< items.length; i++)
{
qualControl.append(items[i] );
//last one does not get a comma
if(i!=items.length-1)
{
qualControl.append(",");
}
}
//store this in the bean
inputDataBean.setQualityControl(qualControl.toString());
//next deal with the experiment design type
//this is slightly more complex as we are dealing with six separate list boxes and we need to combine all their inputs
StringBuilder experimentalDesign = new StringBuilder();
String [] biologicalPropertyItems = request.getParameterValues("biologicalProperty");
if(biologicalPropertyItems !=null)
{
for(int i = 0; i< biologicalPropertyItems.length; i++)
{
experimentalDesign.append(biologicalPropertyItems[i] +",");
}
}
String [] bioMolecularAnnotationItems = request.getParameterValues("bioMolecularAnnotation");
if(bioMolecularAnnotationItems !=null)
{
for(int i = 0; i