%@ page language="Java" import="jspkerho.*,kerho.*,java.util.*,java.io.*,uiBeans.*" session="true" autoFlush="true"
isThreadSafe="true" isErrorPage="false"
%>
WebKerho
<% Kerho kerho = KerhoBean.getKerho();
EditBox editHaku = new EditBox("hakusana",session,request,"");
editHaku.setColumns(10);
ComboBox cbKentat = new ComboBox("kentta",session);
Jasen apujasen = new Jasen();
for (int i=apujasen.ekaKentta();i
Kerhon nimi: <%=kerho.getNimi()%>
Jäseniä: <%=kerho.getJasenia()%>
<%
int jid = 0;
try {
jid=Integer.parseInt(request.getParameter("id"));
} catch (Exception ex) {
}
PrintWriter pout = new PrintWriter(out);
List loytyneet = kerho.etsi(hakukentta,"*"+editHaku.getText()+"*");
for (Iterator i=loytyneet.iterator(); i.hasNext(); ) {
// for (Iterator i=kerho.jasen_iterator(); i.hasNext(); ) {
Jasen jasen = (Jasen)i.next();
int id = jasen.getTunnus_nro();%>
<%=id%>. <%=jasen.anna(1)%> [muokkaa]
<%
if ( jid == id ) {
pout.println("");
KerhoBean.tulosta(pout,kerho,jasen);
pout.println("
");
}
}
%>