Hi!
This task is cerainly feasible, though not advisable to do so.
Performing these kind of checks on client-side means that you need to hold
some data
in your page in form of some variables ( as part of form tag).
So you can first query for all the employee-ids in your jsp page and store
those
No shortcut you have to go serverside to check whether that employee already exists or
not.
-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re: how to pass current value in function of jsp?
Yes
%!
public static boolean checkemp(String emp){
MyConnection con=new MyConnection();
Statement stmt = null;
ResultSet rs = null;
try{
stmt = con.getCon(1);
rs = stmt.executeQuery(select * from
Hello Vaishali,
I guess you are doing something wrong here. Tell me are you thinking that when the
onBlur event will occur your code will execute the checkemp(String) method? If yes
then you are wrong as the checkemp method will execute when the JSP will get served.
So in the source of
Yes bhushan u r right
i did check this today only and got the point
actually i wanted to do something like shortcut so i do not have to submit
my page
but no alternate is there i suppose and i have to go for it.
right?
Thanks
Vaishali
Reliance Ind Ltd
A'bad