<% //////////////////////////////////////////////////////////////////////////// // Creem un query i grava els valors en la base de casos //////////////////////////////////////////////////////////////////////////// //- Recuperem el cas query kateservlet.javakate.OneCaseServlet casQuery = null; Object obj = request.getSession().getValue("casQuery"); if(obj == null) //- Primer de tot inicialitzem amb els valors per defecte casQuery = new kateservlet.javakate.OneCaseServlet(); else //- Recuperem el cas del query casQuery = (kateservlet.javakate.OneCaseServlet) obj; request.getSession().putValue("casQuery",casQuery); %>
<% for(int index=0; index < javakate.casuel.KModel.getNbClass(); index++) { javakate.casuel.KModelNode node = javakate.casuel.KModel.getNodeClass(index); if (index == 0) out.println(""); else { if ((index == 2) || (index == 4) || (index == 7)) out.println(""); else out.println(""); } if(index == 0) { out.println(" "); out.println(" "); out.println(" "); } else { out.println(" "); out.println(" "); out.println(" "); out.println(" "); out.println(" "); out.println(" "); out.println(" "); } for(int index2 =0; index2 < node.getChildCount(); index2++) { javakate.casuel.KModelNode slotNode = (javakate.casuel.KModelNode)node.getChildAt(index2); String slotId = slotNode.getId(); if(slotNode.isSlot()) { javakate.casuel.KSlot slot = slotNode.getKSlot(); // imprimim el nom de l'eslot %> "> <% out.println(" "); out.println(" "); javakate.consultation.caseValue cValue = null; javakate.casuel.KValueSymbol kValue = null; switch( slot.getTypeBasic()) { case 0 : case 1 : // integer cValue = casQuery.getValue(slotId); %> <% break; case 2 : // Free Text cValue = casQuery.getValue(slotId); %> <% break; case 3 : case 4 : // symbol i ordered symbol javakate.casuel.KTypeSymbol typeSymbol = slot.getTypeSymbol(); javakate.casuel.SymbolValue[] sValues = typeSymbol.getSortedList(); cValue = casQuery.getValue(slotId); kValue = (javakate.casuel.KValueSymbol)cValue.getValue(); if (sValues.length <= 9) { %> <% } else { %> <% } break; case 5 : // taxo javakate.casuel.KTypeTaxonomy slotTaxo = slot.getTypeTaxonomy(); java.util.Vector listKValues = slotTaxo.getSortKValues(); %> <% break; case 9 : // symbol multivaluat javakate.casuel.KTypeSymbol typeSymbolMulti = slot.getTypeSymbol(); javakate.casuel.SymbolValue[] sValuesMulti = typeSymbolMulti.getSortedList(); if (sValuesMulti.length <= 9) { %> <% } else { cValue = casQuery.getValue(slotId); kValue = (javakate.casuel.KValueSymbol)cValue.getValue(); %> <% } break; case 11 : %><% break; default : %><% } // imprimim els pesos dels slots out.println(" "); out.println(" "); out.println(" "); out.println(" "); out.println(" "); out.println(" "); out.println(" "); } } } %>
" + node.getName() + "
" + node.getName() + "
" + node.getName() + "  "); out.println(" \"Images/weightEnglish.GIF
       
"); out.print(slot.getName(false) + ":"); out.println(" <% for(int i = 0; i < sValues.length; i++) { javakate.casuel.SymbolValue value = sValues[i]; if (i%3 == 2) out.println(" "); %> <% } %>
value=? name="<%=slotId%>">indifférent
value="<%=value.getValueId()%>" name="<%=slotId%>"><%=value.getName()%>
<% cValue = casQuery.getValue(slotId); kValue = (javakate.casuel.KValueSymbol)cValue.getValue(); for(int i = 0; i < sValuesMulti.length; i++) { javakate.casuel.SymbolValue value = sValuesMulti[i]; if (i % 3 == 0) out.println(" "); %> <% } %>
value="<%=value.getValueId()%>" name="<%=slotId%>"><%=value.getName()%>
String no esta implementatTipus no suportat
Main page
Final project, Toni Martinez Arteaga 2000