Vikram Deshmukh

Greenhorn
+ Follow
since Apr 22, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vikram Deshmukh

What is the benefit of having init(ServletConfig) ? As I know it does an initialization activity.
But if i provide constructor for a servlet, still, this method gets called prior to init()
then call gets redirected to either doGet or doPost.
In this case what is the extra mileage we get after having this init method ?
with regards,
vikram
22 years ago
Hi friends,
I have one doubt related to EJBs.
For an Entity beans, we have a callback method ejbCreate(someParam).
My Qn is, related to Container Managed Persistent beans, return type for ejbCreate is void. But, for Bean Managed Persistent beans, return type for ejbCreate is key object.
Why is this different ?
Any ideas ?
with regards,
vikram.
Hi Group,
I have a button group. Within that, I am having 2 JRadioButtons. One of them is selected. On click of some JButton, i want to de-select that radio button.
On handler of JButton i wrote, but it doesnt work.
Does anyone has any remedy over this ?
22 years ago
For item change of a combo box, sometimes it is firing the event & sometimes not.
There is no remove item listener method in my class.
This behaviour is observed while, in a form the same item is selected successively.
Any idea ?
22 years ago
Yes there is one code available at ddj.com in the sample Java Codes.
Months ago we used it.
Just search there, u'll get it.
22 years ago
Hi,
I am having Message Box which is getting called on focus lost of TextField. But problem is it is being called twice.
What is the solution for it ? Except to put a flag ?
waiting for replies ...
vikeam.
22 years ago
Is anyone having idea, how to remove coffee cup image from left top of JFrame & JDialog, & showing our own custom image at that place.
22 years ago
I want to ping a machine on the network, without socket call.
Just for a provided IP addr I need to know if machine is on or off.
How come I can do it?
As well I need to know machine on the other subnet is on or off.
waiting earnestly ...
I wish to appear for this exam.
Can anyone give me details like,
what are the technical areas covered ?
any reference books.
In India what is its fee ?
vikram.
(SCJD)
Dear friends,
here i give u a code, If i can execute a run method, by simply invoking
threadObject.run(); then what is the need of or keeping threads in runnable pool ?
So how come we can avoid OS Scheduler ? So programmers will have their own set of controlled threads by simply invoking run method.
So is there any diffce between invoking start() & run() method or other way why to keep threads at the hand of OS scheduler, when we can decide, which thread to run ?
waiting for ur reply,
from,
Vikram.
/////////// code here
public class myThread extends Thread
{
public static void main(String args[])
{
myThread my1 = new myThread();
myThread my2 = new myThread();
my2.run();
my1.start();
}
public void run()
{
System.out.println("invoked the thread");
}
}
24 years ago
Dear friends,
here i give u a code, If i can execute a run method, by simply invoking
threadObject.run(); then what is the need of or keeping threads in runnable pool ?
So how come we can avoid OS Scheduler ? So programmers will have their own set of controlled threads by simply invoking run method.
So is there any diffce between invoking start() & run() method or other way why to keep threads at the hand of OS scheduler, when we can decide, which thread to run ?
waiting for ur reply,
from,
Vikram.
/////////// code here
public class myThread extends Thread
{
public static void main(String args[])
{
myThread my1 = new myThread();
myThread my2 = new myThread();
my2.run();
my1.start();
}
public void run()
{
System.out.println("invoked the thread");
}
}
Dear friends,
i was just browsing some sites. I downloaded some web pages, consisting applet.
I came to know those applets are downloaded. While next time, when i was
at that particular web page i diconnected myself, now i can scroll through
that applet . it means, even if i'm disconnected, that applet's .class
file might be somewhere on my machine, & so i found it in windows temporary
directory.
i want to use the same applet for that web page, which i've been downloaded.
I copied that .class file to the same package where web page is.
Also , i tried with using 'codebase' field of an applet. it also didnt
worked.
How come i can use that .class file for that web page ?
from,
vikram .
24 years ago
Myself have an experience of 9months working as a trainee + s/w engineer, in JAVA. Right now after a week i'm going to give certification exam. So, do i satisfy your needs ?
Desperately waiting for your reply,
from,
Vikram.
24 years ago
Dear Friends ,
I want to implement simple client - server communication .
My server is already running , then i'm separately running my Client.
At console i'm going to make an input . It will be read as a readLine.
The same will be displayed at Server side.
If instead of Client , if i use , Telnet it works appropriately .
Can anybody please tell me whats wrong ?
from ,
Vikram .

///////////// Server Side Code ////////////////////////
public class Server
{
public static void main(String[] args)throws IOException
{
ServerSocket servsock = new ServerSocket(4444);
System.out.println("Server is running");
Socket soc;
for(;
{
soc = servsock.accept();
System.out.println("Until here is OK ! - 0");
InputStreamReader isr = new InputStreamReader(soc.getInputStream());
BufferedReader br = new BufferedReader(isr);
String str = br.readLine();
System.out.println("Until here is OK ! - 1");
System.out.println("String received at Server : "+str);
// THIS PROGRAM WORKING FINE WITH TELNET uptill this
}
}
}
//////////////// Client Side Code ////////////////////////
public class Client
{
public static void main(String[] args)throws IOException
{
//BUFFERED READER TO INPUT STREAM
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String input = in.readLine();
Socket sock = new Socket(InetAddress.getLocalHost(),4444);
OutputStreamWriter osw = new OutputStreamWriter(sock.getOutputStream());
osw.write(input,0,input.length());
System.out.println("String for Server is : "+osw);
}
}
Dear freinds ,
While i was inserting cells in the table i was used to insert date in the form of
String with desired format of a date . it worked .
But while i'm going to Query having date in the where clause, it is giving me Runtime
error like Data type mismatch in criteria expression. I'm passing date in the String format
only.
I also worked with converting it to java.sql.Date format. It gave me Runtime error like,
IllegalArgumentExpression .
can anybody tell how to send a date through Select query, through JDBC ?
from ,
vikram .