1
<%@ page contentType="text/html ; charset=UTF-8"%>
3
<%@ page import="java.sql.*,java.util.*" %>
4
<%@ page session="true"%>
6
<!-- Bean Specification -->
7
<jsp:useBean id="GAUtilities" scope="session" class="org.hisp.gtool.utilities.GAUtilities" />
8
<jsp:useBean id="DataValidationAction" scope="session" class="org.hisp.gtool.action.DataValidationAction" />
12
String dvName = request.getParameter("VNameTB");
13
String leftDesc = request.getParameter("leftDescTB");
14
String rightDesc = request.getParameter("rightDescTB");
15
String dvOperator = request.getParameter("VOperatorLB");
16
String dvType = request.getParameter("VTypeLB");
17
String leftSelDEList[] = request.getParameterValues("LeftSelDEList");
18
String rightSelDEList[] = request.getParameterValues("RightSelDEList");
19
String leftPercent = request.getParameter("leftPercent");
20
String rightPercent = request.getParameter("rightPercent");
22
if(leftPercent == null || leftPercent.equals("")) leftPercent = "0";
23
if(rightPercent == null || rightPercent.equals("")) rightPercent = "0";
25
String leftSelDEs = GAUtilities.getConcatedString(leftSelDEList, ",");
26
String rightSelDEs = GAUtilities.getConcatedString(rightSelDEList, ",");
28
Hashtable htForDataValidations = DataValidationAction.getAllDataValidations();
29
Vector DataValidationIds = new Vector(htForDataValidations.keySet());
30
String maxDVId = (String) Collections.max(DataValidationIds);
31
String curDVId = "" + (Integer.parseInt(maxDVId)+1);
33
List li = new ArrayList();
41
li.add(7,rightSelDEs);
42
li.add(8,leftPercent);
43
li.add(9,rightPercent);
45
boolean addDVStatus = DataValidationAction.addDataValidation(li);
49
<title>Graphical Analyser</title>
50
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
51
<meta http-equiv="description" content="this is my page">
52
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
55
function onLoadFunction()
59
alert("Validation is Successfully Added");
60
location.href="DValidationScreen.jsp";
64
alert("Failure while Adding...Try Again");
65
location.href="DValidationAdd.jsp";
70
<body onload="onLoadFunction()">
72
<font face="arial" size="2">
73
<li>Validation Id : <%=curDVId%><br>
74
<li>Validation Name : <%=dvName%><br>
75
<li>Left Description : <%=leftDesc%><br/>
76
<li>Right Description : <%=rightDesc%><br/>
77
<li>Validation Operator : <%=dvOperator%><br/>
78
<li>Validation Type : <%=dvType%><br/>
79
<li>Left Sel DEList : <%=leftSelDEs%><br/>
80
<li>Right Sel DEList : <%=rightSelDEs%><br/>
81
<li>Left PerCentage : <%=leftPercent%><br/>
82
<li>Right PerCentage : <%=rightPercent%><br/>
b'\\ No newline at end of file'