1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
RecepForm recepForm = (RecepForm) form;
try
{
st2= con.createStatement();
st3= con.createStatement();
rs2=st2.executeQuery("select profil_libelle from gss_article_profil where profil_statut='A'");
rs3=st3.executeQuery("select art_art_libelle from gss_article where art_status='A'");
while (rs3.next())
{
four2 = rs3.getString(1).trim();
System.out.println(four2);
listArticle.add(four2);
}
recepForm.setNomArticle(listArticle);
System.out.println(listArticle);
while (rs2.next())
{
four3 = rs2.getString(1).trim();
System.out.println(four3);
listProfil.add(four3);
}
recepForm.setNomProfil(listProfil);
System.out.println(listProfil);
return mapping.findForward("preparer1");
}
} |