I have created resultset for this table and tried to access the access empsex as follows:
public EmployeeAddEdit(int emp_id) {
String strSql = "SELECT empid, empfname,emplname,empdateofbirth,empsex,empaddress as address,empphno,emppic,empbiodata FROM empdetails where empid=" + empid;
Connection con = null;
Statement smt = null;
ResultSet rset = null;
utility.db.Connect c;
But i found this.setEmpsex(rset.getString("empsex")); as erroneous. There is no method like getChar() also.
Please tell me how i can access it.
Related Tutorials/Questions & Answers:
Advertisements
how can i get output pls urget tell mehow can i get output pls urget
tell me HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
please tell meplease tell me import java.io.*;
class SString{
public static void...));
^
1 error
please tell me the resolution of this
Hi...();
System.out.println("You have entered: "+(
char)
i);
}
}
Thanks
please tell meplease tell me
i have created one table,when
i close and again login, table name will be there, but its content not displayed, showing as no rows selected,
please tell me the reason
please tell meplease tell me
class Person{
int age;
String name;
void Person1(String g,int a){
name=g;
age=a;
}
Person(String s,int
i){
name=s;
age=
i;
}
void..., but its compiled and run successfully,
please tell me the reason
please tell meplease tell me import java.lang.Thread;
class Current{
public static...();
^
1 error
tell me the resolution
please....
import...("current thread"+t);
System.out.println("thread name"+t.getName());
}
}
i got
please tell me: '}' expected
^
2 errors,
i got this error.......
please tell me the resolution...
please tell me
class Person{
string name;
int age;
void...("my age is"+age);
}
}
class Hash(){
public static void main
please tell meplease tell me Actually
i am working on a Project tiitle is JavaMail System,
1)
How to configure
java mail API and a Demo Program for Sending mail and Receiving using JSP and Servlet
how can i write this program ?please suggest mehow can i write this program ?
please suggest me Program to calculate the sum of two big numbers (the numbers
can contain more than 1000 digits). Don't use any library classes or methods (BigInteger etc
please tell meplease tell me
class Sample{
private double num1,num2;
void sample...(10.6,20.0);
^
1 error,
please tell me the resolution for this...
...;
System.out.println("sum"+result);
}
}
class Methods{
public static void main(String
please tell meplease tell me
class Producer extends Thread
{
StringBuffer sb... got error as Inner
class connot have static declarations
pls
tell me... run(){
synchronized(sb){
for(int
i=1;i<=10;
i++){
try{
sb.append(
i please tell meplease tell me Blockquote
Blockquote> BlockquoteBlockquote
how to get images from ms
access databases to jsp pagesBlockquote
Jsp get image from ms
access database
Create a table named user(id,name,address,image
please tell me;
^
please tell me the resolution
class Reserve...
please tell me
class Reserve extends Thread{
int available=1;
int wanted;
Reserve(int
i){
wanted =
i;
}
public static void
please tell meplease tell me
class Person{
int age;
String name;
void talk...);
}
}
class Hash{
public static void main(String ar[]){
Person raju=new Person...();
}
}
if
i run this prog
i get only sita object details, y
i cant get both raju and sita
please tell meplease tell me why we use public static main(String ar){} in
java instead of main
please tell meplease tell me what are the topics in core and advaced
java....
Hi Friend,
Please visit the following links:
http://www.roseindia.net/
http://www.roseindia.net/
java/
Thanks
Hi Friend,
Please visit
please tell meplease tell me what is the source code if user give wrong user name...";
System.out.println(vsqlad);
ResultSet rs=stmt.executeQuery(vsqlad);
rs.next();
String...;script
type="text/javascript">
function showData(){
var user
please tell me:iterate>
</logic:notEmpty>
</logic:present>
how can i...
please tell me
<tr>
<td><html:hidden property="tid" value="${user.id}"/><
please tell meplease tell me why we are using http protocol in servlets
please tell meplease tell me which cmd we use to clear the screen in sql prompt
please tell meplease tell me select * from emp order by 5 desc;
in the above what is the meaning of 5, and what its functionality
Can you tell me how it worked?Can you
tell me how it worked? public
class Ball
{
private static... of this
class - 'Ball'?
I mean, it should be like ball.getBounds... Rectangle(x, y, DIAMETER, DIAMETER);
}
}
How is the 'getBounds()' method called
please tell me about command line arguments in java?please tell me about command line arguments in
java?
please tell me about command line arguments in
java?
Hi Friend,
The command-line arguments are the arguments which are sent to the program being called. You
can Can anybody tell me how to resolve this issue?Can anybody
tell me how to resolve this issue? java.lang.Exception: Exception :
java.lang.Exception: Generic Errors = java.util.MissingResourceException: Can't find bundle for base name Connection, locale en_US
please tell me about command line arguments in java?please tell me about command line arguments in
java?
please tell me about command line arguments in
java?
Hi Friend,
The command-line arguments are the arguments which are sent to the program being called. You
can please tell me the flow of execution of this programplease tell me the flow of execution of this program
class Test{
int x;
Test(int x){
this.x=x;
}
static void
access(){
System.out.println("x= "+x);
}}
class Static{
public static void main(String ar[]){
Test obj=new Test(55
How can you tell a fake data scientist?How can you
tell a fake
data scientist? Hi,
I am beginner in
Data...:
How can you
tell a fake
data scientist?
Try to provide
me good examples or tutorials links so that
I can learn the
topic "
How can you
tell a fake
data Tell me - Java BeginnersTell me
how to create a valid.js file
please tell me and give the write code
Thanks Hi friend,
Please give details for requirement of this "valid.js" file.
For read more information
http
please i want someone to answer me pleeeeeeeeeeeeease... please i want someone to answer
me pleeeeeeeeeeeeease...
Write a
JAVA program using 2D array to auto-grade exams. For a
class of N students, your... percentage (out of 100%) of each student, and also the
class average. Define the exam