Rahul Surati

+ Follow
since Mar 04, 2009
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rahul Surati

10 years ago

Michael Dunn wrote:> Please explain me..

do you write code in the format you've posted for us to read?

i.e. which is easier to read?

class HelloWorld
public static void main(String[] args)
System.out.println("Hello World");

or (using code tags)

this code is in the method of button action perform event ..
now you will get it..
when i press button table may set value to their fields...
10 years ago

Michael Dunn wrote:> please send me modification...

OK, use code tags

What ??
I am not getting you ..
Please explain me..
10 years ago
hello Friends,
I want to set values in to the jtable from the database.
I code something. I am sending this code . please send me modification...


sel = "select A.st_id,A.name,A.adm_year, B.crrt_year,C.mcode,C.grade,C.credit," +
"C.attempt from student_master A , student_sub B, grade_master C" +
" where (A.st_id=B.st_id) and (A.st_id=C.st_id) and A.st_id='" + jTextField1.getText() + "'";
rs1 = s.executeQuery(sel);
Object k[][] = null;

while (rs1.next()) {
//int z = ;
k= new Object[8][8];
//jTable1.setModel(new DefaultTableModel(k, new String[]{"Student ID", "Name", "Admmission Year", "Current Year", "Modules", "Grade", "Credit", "Attempt"}));
//for (int i = 0; i < z; i++) {
int i=0;
//for(int j=0;j<8;j++){
//jTable1.setValueAt(rs1.getString("name"), i, j);
k[i][0] = rs1.getString("st_id");
k[i][1] = rs1.getString("name");
k[i][2] = rs1.getString("adm_year");
k[i][3] = rs1.getString("crrt_year");
k[i][4] = rs1.getString("mcode");
k[i][5] = rs1.getString("grade");
k[i][6] = rs1.getString("credit");
k[i][7] = rs1.getString("attempt");

// }
// }

jTable1.setModel(new DefaultTableModel(k, new String[]{"Student ID", "Name", "Admmission Year", "Current Year", "Modules", "Grade", "Credit", "Attempt"}));
10 years ago
hello friends,

I want to pass the text field value from one frame to the another frame.. please give reply soon..
10 years ago
hello i am getting error in the following code..
"INSERT into test VALUES("+jTextField1+","+jPasswordField1+")";
hello frnds,

I m having problem like this "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver" when i run my jdbc tutorial with mysql.. please give me reply soon..

Hemant Thard wrote:[direct answer removed]

10 years ago

David O'Meara wrote:are you having trouble with the servlet or the pattern?

I am having problem with pattern.. please give me soluttion for this..
10 years ago
i want 2 print following pattern in the servlet..

1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9 ..

please suggest me a logic for this..
10 years ago

Balu Sadhasivam wrote:

Rahul Surati wrote:give me code of JDBC Connection...

For wat database? driver type ? and definitely not right way to ask question. Please try to build a code and get back with queries

for MS access
give me code of JDBC Connection...
how to make ribbon diagram for java API???
11 years ago

Bear Bibeault wrote:The same way that write any of the other markup in a servlet: by emitting it as strings to the output stream.

It's not a good way to do things. Why are you not using JSPs to render the HTML/JavaScript markup?

I want to put presentaton logic and bussiness logic different .. so, I used servlet....

11 years ago
hello friends,

I want to write javascript in servlet..

how could I write it.. ??
11 years ago