hi,
i had a doubt that the output should come like 'F,10:'..but i m getting as 'F,10'..i tried so many times..i m not getting can any one suggest me where the code gets wrong...here i m sending jsp code,javascript code and servelet code..can u check it..i m waiting for the reply...its urgent.
login.jsp
login.js
login.java
Thanks in advance,
madhu.
i had a doubt that the output should come like 'F,10:'..but i m getting as 'F,10'..i tried so many times..i m not getting can any one suggest me where the code gets wrong...here i m sending jsp code,javascript code and servelet code..can u check it..i m waiting for the reply...its urgent.
login.jsp
Code:
<td><font color="#800000" size=""><b>Low-Bal-RDays</b></font></td>
<td><input type="checkbox" name="balrdys" value="F,"id="chkA">Fresh Activation <input type="text" name="balrdys" size="1" id="txtA"/><br>
<input type="checkbox" name="balrdys" value="A,">Auto-Renewal <input type="text" name="balrdys" size="1"><br>
<input type="checkbox" name="balrdys" value="NO">No<br>
<td></td>
Code:
if(document.getElementById('chkA').checked) {
var txt = document.getElementById('txtA');
if(txt.value.length == 0) {
window.alert("Enter Fresh Activation Days");
txt.focus();
return false;
}
}
Code:
// Getting Balance Retrieval Days
String[] balrdys = request.getParameterValues("balrdys");
String balrdysStr = "";
for (int i = 0; i < balrdys.length; i++) {
if (balrdysStr == null) {
balrdysStr += balrdys[i];
} else {
balrdysStr += balrdys[i];
}
}
madhu.
Comment