<% /** * Customizables variables */ String language="fr"; /*If the user is an individual user, send him to its personnal page*/ String sURLPagePerso="../perso/perso-creation.jsp"; /*If the user is member of an organisation, send him to the list of registred organisation in his country*/ String sURLListOrganism="liste.jsp"; %>

Formulaire Général

<%/*Create a UserBean to store the input of the user */%> <%/*Create a localized result bean for the servlet*/%> <%/*Check the user's input (we use HTML comment to hide debug information given by the servlet*/%> <%=""%> <%/*Check the result of the login creation*/ int status=resultBean.getStatusCode(); /*Print message returned by the servlet*/ for (int i=resultBean.getMessagesSize()-1; i>=0; i--) { out.println(resultBean.getMessages(i).getMsgLocalized() + "

"); } if ( status <= -1 ) { /*An error occured, propose a back button*/ %>

<%} else { /*Default value*/ String destination="/erreur.htm"; String paramName=""; String paramValue=""; if (userBean.getUserType().compareTo("0")==0) { /*Individual user, send to the personnal page*/ destination=sURLPagePerso; } else { destination=sURLListOrganism; paramName="MemberUserType"; paramValue=userBean.getMemberUserType(); } %>

<% } %>