function validate(){ var emp_value =""; for (var i=0; i <document.employee.empid.length; i++){ if (document.employee.empid[i].checked){ var emp_value = document.employee.empid[i].value; } } if (document.employee.empid.checked){ var emp_value = document.employee.empid.value; } if(emp_value=="" || emp_value==null){ alert("Please select Employee Id"); return false; } else{ alert("Hello"); return true; } } function showEmp(){ if(validate()){ for (var i=0; i <document.employee.empid.length; i++){ if(document.employee.empid[i].checked){ var emp_value = document.employee.empid[i].value; opener.document.getElementById("emp_id").value=emp_value; window.close(); } } } } </script> </head> <body> <form name="employee"> <br><br> <table width="100%" bgcolor="WHEAT" border=1 cellpadding=5 cellspacing=5> <tr> <font color="green"> <B> <TH> CLIENT ID <TH> CLIENT NAME </TH> </b> </font> </TR> <% String id=(String) session.getAttribute("id"); int sumcount=0; Statement st; try{ Connection con = null; Class.forName("oracle.jdbc.driver.OracleDriver"); con = DriverManager.getConnection("jdbc:oracle:thin:@142.1.0.14:1550:bosaix","report","tcs123"); String query = "select ent_Id,ent_Name from entity_master e where ent_type = 'DL'and substr(ent_ctrl_id,1,4)='"+id+"'"; st = con.createStatement(); ResultSet rs = st.executeQuery(query); while(rs.next()){ %> <tr><td> <font color="red"> <B> <input type="radio" name="empid" value="<%=rs.getString(2) %>"><%=rs.getString(1)%> </B> </font></td> <td> <font color="red"> <B> <%=rs.getString(2)%> </B> </font></td> </tr> <% } } catch (Exception e) { e.printStackTrace(); } %> <tr><td align="center"> <input type="button" value="Select" onclick="javascript:showEmp();"> </td></tr> </table> </form> </body> </html>
Thanks
Related Pages:
array problem array problem An integer array a has 19 elements. What is the value of the middle element after the following codes is executed?
int i, j,n=19;
for (i=0; i
for(i=0, j=n-1; i<=j; i++, j--)
a[(i+j)/1] -= (a[i]+a[j])/2
Problem in Array Problem in Array Hi, Can you help me with this problem?
Run a program that check if the input string contains equal number of A's and B's.
Hoping for your answer.Thank you.
Here is an example that check
Array /string based problem.... Array /string based problem.... thanx to help me.but again a problem... solve this problem also as soon as possible.....
import java.util.*;
public class... or char");
char[] array = new char[5];
for(int i=0;i<5;i++){
char ch
string array based problem
string array based problem R/sir,
firstly thanks...
sorted value:
11
12
13
3
this is the problem here......
import java.util.*;
public... string: ");
String[] array = new String[5];
for(int i=0;i<5;i++){
array[i
java array problem
java array problem suppose i have an array a[] at a[0] i have value 5,7
the thing is that i want to assign the value of array a[0]=5,7
to two variable let it be j,k
that is j=5 and k=7
plz help
regards
array and string based problem array and string based problem this program is accepting only..._srt(int array[],int n){
for (int j = 0; j < n; j++){
int i = j-1;
int k = array[j];
while ((i>= 0) && (array[i] > k)){
array[i
array and string based problem array and string based problem this program is accepting only..._srt(int array[],int n){
for (int j = 0; j < n; j++){
int i = j-1;
int k = array[j];
while ((i>= 0) && (array[i] > k)){
array[i
array and string based problem array and string based problem this program is accepting only..._srt(int array[],int n){
for (int j = 0; j < n; j++){
int i = j-1;
int k = array[j];
while ((i>= 0) && (array[i] > k)){
array[i
problem in array if condtion problem in array if condtion sir i have prblem in js...i have array... = new Array();
arr[0] = new Array("-select-");
arr[1] = new Array("Maharashtra","Karnataka","Kerela","Rajashthan");
arr[2] = new Array("Texas","New York","Florida
palindrome array problem
palindrome array problem I'm having trouble figuring this assignment out. Can someone please help me?
Generate (write the code) and save in an array Palidrome[250][5] all the 5 letter words using {a, b, c}
Write the code
Array
Array i having problem
how to make algorithm for
[a][5]
[a][10]
[b][15]
[b][10]
[c][5]
[c][5]
.
.
.
.
sum of
[a] = 15
[b] = 25
[c] = 10
Array problem - JSP-Servlet Array problem Respected Sir/Madam,
I am having a pop up window in which the database values are available.. Its in the format of:
One.....
Bur my problem is that if the pop up window contains only 1 record
array problem java - Java Beginners arrayproblem java PLS HELP ME NOW I NEED YOU RESPONSE IMMDEATLETLY HOPE ITS OK...
1.) Consider the method headings:
void funcOne(int[] alpha..., respectively.
another problem.,,
2.)Suppose list is an array of five
JAVA Problem
2. an array of words
It should then remove all instances of the word in the array.
For Example:
INPUT
word="ravi"
word_array = ["Chethan Bhagat...
The given code accepts a word and array of five words which
Create Array ??
Create Array ?? Question in e-clips program:
Part 1. Array... stores list of â??PhoneEntryâ?? objects. Use an array of size (MAXSIZE = 1000... directory problem defined above.
Part 2. Linked List Implementation Create
java array
java array Two cells is a matrix will be called connected if they are adjacent...]. But it will not connected to cell a[1,1]
For this problem, lets say, cells denoted by integer...], a[3,2], a[3,3] } elements with weight 6
Problem: Implement Java code which
StringToenizer Problem
StringToenizer Problem Sir,
can i convert StringTokenizer into String don't use String array because i want to add to JLabel component.
Please give answer to me.
Hi Friend,
Try the following code:
import
Help With an Array
; x++)
{if (number[x] < )
}
}
}
OK, So heres my problem, someone
Array sorting - Java Beginners
"Arrays.sort(name)" but the problem is that my relationship with the "type" array...Array sorting Hello All.
I need to sort one array based on the arrangement of another array.
I fetch two arrays from somewhere
PHP ARRAY() - WebSevices
PHP ARRAY() Hello,
I have to compare two arrays.
1)Array contain a Image from Directory like(test.png. tesnt2.jpg)
2)Array contain a Images from a file.I have used a Preg Function to read all Images from File Into an Array
String Array - Java Beginners
for me to manipulate a String Array.
For Example, I had a String Array ("3d4..., as to by which method can I separate the Integers from this Array of String... resolve my problem ...
Thanks and Regards
Gagan
Hi friend
arry based problem
;
int array[]={17,12,3,6,4,19,200};
System.out.println(" Selection Sort\n\n...; array.length; i++)
System.out.print( array[i]+" ");
System.out.println();
insertion_srt(array, array.length);
System.out.print("Values after the sort
arry based problem
;
int array[]={17,12,3,6,4,19,200};
System.out.println(" Selection Sort\n\n...; array.length; i++)
System.out.print( array[i]+" ");
System.out.println();
insertion_srt(array, array.length);
System.out.print("Values after the sort
arry based problem
;
int array[]={17,12,3,6,4,19,200};
System.out.println(" Selection Sort\n\n...; array.length; i++)
System.out.print( array[i]+" ");
System.out.println();
insertion_srt(array, array.length);
System.out.print("Values after the sort
arry based problem
;
int array[]={17,12,3,6,4,19,200};
System.out.println(" Selection Sort\n\n...; array.length; i++)
System.out.print( array[i]+" ");
System.out.println();
insertion_srt(array, array.length);
System.out.print("Values after the sort
arraylist problem - Java Beginners
arraylist problem Hello....
I wrote the following code for adding a string array into an array list along with other strings...
and to display the string array...
But there's a problem with this...
import java.util.
Array - Java Beginners
Array Please help me to answer this problem..........Write a program using one-dimensional array that accept five input values from the keyboard... friend,
Code to solve the problem :
import java.io.*;
public class
is _array()
is _array() is_array() in php
Hi Friend,
This function is of Boolean type.It checks whether a variable is an array or not.
Here is an example:
<?php
$yes = array('Hello', 'World');
echo is_array($yes) ? 'Array
is _array()
is _array() is _array()
Hi Friend,
This function is of Boolean type.It checks whether a variable is an array or not.
Here is an example:
<?php
$yes = array('Hello', 'World');
echo is_array($yes) ? 'Array
code problem - Java Beginners
code problem Dear sir,
my problem is that, i have two Combobox
one... the following code:
ComboBox
var arr = new Array();
arr[0] = new Array("-select-");
arr[1] = new Array("Mumbai","Delhi");
arr[2] = new
help me to solve this problem..
help me to solve this problem.. Given below is a class definition... and then create an array name myLibrary of type Book with size n.
Using loop, create n objects of type Book and put them in the array myLibrary after reading the title
String Array - Java Beginners
this question to you before, now the problem comes if my String Array consisted... for me to manipulate a String Array.
For Example, I had a String Array ("3d4..., as to by which method can I separate the Integers from this Array of String
array example - Java Beginners
solution, since the fundamental problem is that an array isn't really a good idea...array example hi!!!!! can you help me with this question... dependents to Employee that is an array of Dependent objects, and instantiate a five
How to move a value in array?
How to move a value in array? Enter value at the End: 5
Display Array Elements
Index at [0]0
Index at [1]0
Index at [2]0
Index at [3]5
Enter value at the End again 8
Display Array Elements
Index at [0]0
Index at [1]0
Index
How to move a value in array?
How to move a value in array? Enter value at the End: 5
Display Array Elements
Index at [0]0
Index at [1]0
Index at [2]0
Index at [3]5
Enter value at the End again 8
Display Array Elements
Index at [0]0
Index at [1]0
Index
Basic problem for Java experts
Basic problem for Java experts This assignment will test your knowledge of
Arrays
Array searching
Array sorting
Array processing
Specification
An athletics club require a simple statistical analysis program for analysing lap
producer and concumer problem
producer and concumer problem Write aprogram by using the implementation of the Producer/Consumer problem.
the programe ask user to write array contain value 0,1 only then after run programe if the user press on button (start
Please provide the coding for this problem
Please provide the coding for this problem Please provide the coding for the following problem. Write a "hangman" game that randomly generates... and ask the user whether to continue for another word. Declare an array
Question in Array Implementation (java) ??!
Question in Array Implementation (java) ??! Good Morning EveryOne... stores list of â??PhoneEntryâ?? objects. Use an array of size (MAXSIZE = 1000... the phone directory problem defined above.
THANKS LOOT
arry based problem
arry based problem how to put char type & int types variable in same array.and also what the procedure for giving input to those array at run time
arry based problem
arry based problem how to put char type & int types variable in same array.and also what the procedure for giving input to those array at run time
ARRAY SIZE!!! - Java Beginners
pretty simple in first glance, but has one problem. When initializing the array, I...ARRAY SIZE!!! Hi,
My Question is to:
"Read integers from the keyboard until zero is read, storing them in input order in an array A. Then copy
Java Array - Java Beginners
Java Array Q4-Write a program to exchange the nondiognal elements of a two dimensional array A of size NxN without using any other array ie.
each... the following code. This will solve your problem.
class SwapDiagonalArray
java problem - Java Beginners
class should declare only an array of Room objects, no additional attribute... which accepts an integer which is used to set the size of the Room array. If
the integer value passed in is invalid, then an array of Room objects of size 50
problem 1 - Java Beginners problem 1 Hi,
please help me!!!! How can i code in java using Two-dimensional Arrays? This question is related to the one i posted before... 96 102 109 120
You will be using a 2-D Array to write this program
Array
Array how can i use elements of an array in a circular form? that is if the searching of the element reach the last elements of the array, then it will start serching from the begining of the array
Array
Array is it possible to define array like this..?
int[] intArray = new int[] {4,5,6,7,8}; Explain...?
Yes, you can.
Java Initialize Array
ArrayList problem - JSP-Servlet
ArrayList problem Hi, How can I add elements of an ArrayList to HTML combobox or list in java? Hi, You can use the following code: Array List...;TITLE>Array List Example</TITLE> </HEAD><select size="1