OW2 - Online Registration.

<%

def errorNumber = 0; def error="";

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 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 country= request.getParameter("country"); if (country==null) country="";

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

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 status= request.getParameter("status"); if (status==null) status="";

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 (street1.size()== 0 || city.size()== 0|| zipCode.size()== 0|| country.size()== 0){ error += ""; error += "" + ++errorNumber +"."; error += "Please complete your address."; error += ""; } if ((membership=="corporate" || membership=="strategic")&&(invoiceFirstName.size()== 0|| invoiceLastName.size()== 0|| invoiceStreet1.size()== 0|| invoiceCountry.size()== 0|| invoiceZipCode.size()== 0) ){ if (invoiceFirstName.size()!= 0|| invoiceLastName.size()!= 0|| invoiceStreet1.size()!= 0|| invoiceCountry.size()!= 0|| invoiceZipCode.size()!= 0) { error += ""; error += "" + ++errorNumber +"."; error += "Please complete correctly the alternate invoicing address form."; error += ""; } } }

if (errorNumber != 0){%>

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

Step 3 - Control Form

${error}
Warning

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

O W 2 Registration Wizard

Summary

<% if (membership=='corporate'){ def descriptionsState= '7':'An Academic Research Laboratory','1':'An Academia','6':'A Micro-enterprise','4':'A Small or Medium-sized enterprise','5':'A Large enterprise'? def organizationState = descriptionsStatestatus?; %>

<%}%>

Membership Category ${membership}
Organization status: ${organizationState}
Organization name: ${organizationName}
Organization website: ${organizationWeb}
First Name: ${firstName}
Last Name: ${lastName}
Your position ${work}
Login${login}
email${email}
<% if ((membership=='corporate'||membership=='strategic')&&(invoiceFirstName.size()!= 0|| invoiceLastName.size()!= 0|| invoiceStreet1.size()!= 0|| invoiceCountry.size()!= 0|| invoiceZipCode.size()!= 0)){%> <%}%>
Postal address
Street 1:${street1}
Street 2:${street2}
City:${city}
State:${state}
Zip Code:${zipCode}
Country:${country}
Alternate Invoicing Address
Street 1:${invoiceStreet1}
Street 2:${invoiceStreet2}
City:${invoiceCity}
State:${invoiceState}
Zip Code:${invoiceZipCode}
Country:${invoiceCountry}

<%}%>

Tags:
Created by Giampaolo Fiorentino on 2007/10/01 11:49

Join OW2

Join industry leaders, academics and individuals and help shape the future of middleware

http://skins.ow2.org/skins/skinOW2/images/Featuredvideo.png
  • Frédéric Aatz, Microsoft
http://skins.ow2.org/skins/skinOW2/images/watchallvideos.png

Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice