OW2 - Online Registration.


O W 2 - Warning
Warning

<%

import groovy.sql.Sql

def sql = Sql.newInstance("jdbc:mysql://81.200.36.124/ow2, "ow2","lm2panpo_objectweb", "com.mysql.jdbc.Driver");

def login = request.getParameter("login"); if (login==null) login="";

def email= request.getParameter("email"); if (email==null) email="";

def firstName= request.getParameter("firstName"); if (firstName==null) firstName="";

def lastName= request.getParameter("lastName"); if (lastName==null) lastName="";

def membership= request.getParameter("membership"); if (membership==null) membership="";

def consortiumRead= request.getParameter("consortiumRead"); if (consortiumRead==null) consortiumRead="";

def organizationName= request.getParameter("organizationName"); if (organizationName==null) organizationName="";

def organizationWeb= request.getParameter("organizationWeb"); if (organizationWeb==null) organizationWeb="";

def work= request.getParameter("work"); if (work==null) work="";

def status= request.getParameter("status"); if (status==null) status="";

def errorNumber = 0; def error="";

def street1= request.getParameter("street1"); if (street1==null) street1="";

def street2= request.getParameter("street2"); if (street2==null) street2="";

def city= request.getParameter("city"); if (city==null) city="";

def state= request.getParameter("state"); if (state==null) state="";

def zipCode= request.getParameter("zipCode"); if (zipCode==null) zipCode="";

def country= request.getParameter("country"); if (country==null) country="";

def invoiceFirstName= request.getParameter("invoiceFirstName"); if (invoiceFirstName==null) invoiceFirstName="";

def invoiceLastName= request.getParameter("invoiceLastName"); if (invoiceLastName==null) invoiceLastName="";

def invoiceStreet1= request.getParameter("invoiceStreet1"); if (invoiceStreet1==null) invoiceStreet1="";

def invoiceStreet2= request.getParameter("invoiceStreet2"); if (invoiceStreet2==null) invoiceStreet2="";

def invoiceCity= request.getParameter("invoiceCity"); if (invoiceCity==null) invoiceCity="";

def invoiceState= request.getParameter("invoiceState"); if (invoiceState==null) invoiceState="";

def invoiceZipCode= request.getParameter("invoiceZipCode"); if (invoiceZipCode==null) invoiceZipCode="";

def invoiceCountry= request.getParameter("invoiceCountry"); if (invoiceCountry==null) invoiceCountry="";

def seError=false; if (login.size() == 0 || email.size() == 0|| firstName.size() == 0 || lastName.size() == 0 || consortiumRead.size() == 0 || (membership!= null && membership.size()!= 0 && membership!="strategic" && membership!="corporate" && membership!="individual")){ ++errorNumber; seError=true; error += ""; error += " - "; error += "Your session has expired. Please restart the OW2 On-Line Registration"; error += ""; }

if (errorNumber == 0){ if (membership =="strategic" || membership == "corporate"){ if (organizationName != null && organizationName.size() == 0 ){ error += ""; error += "" + ++errorNumber +"."; error += "Please enter the name of the organization you work for."; error += ""; } if (work != null && work.size() == 0 ){ error += ""; error += "" + ++errorNumber +"."; error += "Please enter your position in this organization."; error += ""; } } //

if(organizationWeb != null && organizationWeb.size() !=0 &&(!(organizationWeb==~"^http.*"))){ organizationWeb = "http://"+organizationWeb; }

}

if (errorNumber != 0){%>

<%if (!seError){%> <%}%>
O W 2 Registration Wizard

Step 2 - Control Form

<%print error%>
Warning

<%} if (errorNumber == 0 ){%>

O W 2 Registration Wizard

Step 3

Please enter your postal address:
Name: ${firstName} ${lastName}
Street 1:
Street 2
City
State
Zip Code
Country

<%if (membership=="corporate" || membership=="strategic" ) {%>

Alternate Invoicing Address:

If you choose an alternate invoice address, please complete the following form:
First Name:
Last Name:
Street 1:
Street 2
City
State
Zip Code
Country

<%}%>


All fields marked by a Required field are required.
<%}%> <% sql.close() %>

http://skins.ow2.org/skins/skinOW2/images/Featuredvideo.png
  • Ludovic Dubost, XWiki
http://skins.ow2.org/skins/skinOW2/images/watchallvideos.png

 


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4.4 - Documentation
Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice