Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="mainTableDiv">
- <select name="input.submittedValues" id="valuesList" multiple="multiple">
- <%
- try {
- List<Object[]> list = null;
- List<Object[]> list1 = null;
- List<Object[]> list2 = null;
- testID = request.getParameter("testId") == null ? "" : request.getParameter("testId");
- subjectName = request.getParameter("subNM");
- System.out.println("testId in TestParticipant.jsp page is==" + testID + "subjectName=" + subjectName);
- // if ("searchParticipant".equals(request.getParameter("goForSearch"))) {
- //System.out.println("insode the if (searchParticipant(search)" + request.getParameter("search"));
- String serItem = request.getParameter("goForSearch") == null ? "" : request.getParameter("goForSearch");
- System.out.println("inside the if (searchParticipant(search)" + serItem);
- if (testID != "" && serItem == "") {
- list = details.getParticipantDetails(testID);
- list1 = list;
- System.out.println("list in singleparameter method=inside testID != && serItem ====" + list.size());
- } else {
- String serName = request.getParameter("search") == null ? "" : request.getParameter("search");
- list = details.getParticipantDetails(serName, testID);
- }
- //list = details.getParticipantDetails(serItem, testID);
- System.out.println("list in singleparameter method=before if block==" + list.size());
- int sl = 1;
- if (!list.isEmpty()) {
- for (Object[] obj : list) {
- //System.out.println("hello block"+ obj[0].toString());
- String id = obj[0].toString();
- String nickName = obj[1].toString();
- String email = obj[2].toString();
- String userId = obj[3].toString();
- participantName = nickName + " ( " + email + " )";
- %>
- <option value="<%=sl%>" selected=""><%=participantName%></option>
- <input type="hidden" name="hdnSeekerPartyId<%=sl%>" id="hdnSeekerPartyId<%=sl%>" value="<%=id%>"/>
- <input type="hidden" name="hdnSeekerUserId<%=sl%>" id="hdnSeekerUserId<%=sl%>" value="<%=userId%>"/>
- <input type="hidden" name="hdnParticipantName<%=sl%>" id="hdnParticipantName<%=sl%>" value="<%=participantName%>"/>
- <% sl++;
- }
- //}
- }
- } catch (Exception e) {
- //System.out.println("inside the catch of try ...." + e.getMessage());
- //e.printStackTrace();
- }
- %>
- </select>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement