This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!

Kajol Shroff

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

Recent posts by Kajol Shroff

Hi Guys,
No reply .. I am really in need of an answer as I have got stuck. Please reply asap.
Kajol
hi
Please help me out about the following.
Everything is going smoothly except Scrollable
ResultSets(JDBC 2). Add(insert), Delete, Edit(update),
MoveNext are perfectly working. But Moving to the
previous, last, first records is not successful yet.
Traditional JDBC does not support these things. JDBC 2
supports but I'm facing problems as follows :
by default ResultSet's type is TYPE_FORWARD_ONLY so
while creating Statement object I used JDBC 2's
createStatement method which takes 2 parameters as
ReesultSet's type and concurrency.
.....
Statement stmt =
con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stmt.executeQuery("select * from
ORA_StudentMaster");
.....
still SQLException was fired saying that Result set is
TYPE_FORWARD_ONLY. How can it be? I have set it to
TYPE_SCROLL_INSENSITIVE. So for cross checking I used
methods of DatabaseMetaData class :
supportsResultSetType ans supportsResultSetConcurrency
passing appropraite arguments, these methods return
boolean value.
System.out.println(con.getMetaData().supportsResultSetConcurrency(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY)); ///~ true
For both ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY i got answer true. After
this confirmation I checked as follows :
.....
Statement stmt =
con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
System.out.println(stmt.getResultSetType()); ///~1
ResultSet rs = stmt.executeQuery("select * from
ORA_StudentMaster");
System.out.println(stmt.getResultSetType()); ///~2
.....
In the statement ///~1 1004 was printed and in
statement ///~2 1003 was printed. Well, WHAT WILL BE
THE SOLUTION FOR THIS?
I'm using Oracle8i, jdk1.3 and System DSN of Oracle
ODBC Driver.
Kajol
Hi Omar,
I didnt get u? See its not dissapearing. I want to know where do I insert the ContentType. Which package should I import and which class.
Thanks,
Kajol
[ July 02, 2002: Message edited by: Kajol Shroff ]
17 years ago
Hi Everyone,
I am able to send the mail but the mail is comming as a text/plain message whereas actually it is complete html code. I know I should set the content type as text/html but dont know where is the ContentType class or the MIME header class.
I saw the java.net package and in that the ContentHandler class, but this has a getContent() which takes a URL as parameter. So its of no help as such.
Can you let me know how do I resolve this problem
Thanks
Kajol
17 years ago
Hi,
I have gone through your code and this is exactly what I want but I am using applets.
Can you tell me which package have you imported so that I can get the Mime Classes.
I am able to send the mail but the mail is comming as a text message whereas actually it is complete html code.
I saw the java.net package and in that the ContentHandler class, but this has a getContent() which takes a URL as parameter. So its of no help as such.
Can you let me know how do I resolve this problem
Thanks
Kajol
17 years ago
Hi Sashi,
I cant do Image im = java.applet.Applet.getImage(getDocumentBase(),"image.gif");
because getImage() is a non-static method and a non-static method cant be referenced from a static method...,I also get an error saying getDocumentBase() method not found cannot resolve the symbol..and thats because i am extending Panel and nto applet ..although I have imported java.applet.*;
Can u tell me where I am going wrong...?
Need help very urgently...
17 years ago
Hi Shashi,
I tried the code which you had sent... and it worked fine when I viewed it with Appletviewer and it worked fine ...but if I view it in the html page...it gives me SecurityException..
I think its because I have compiled the file on a different drive and am checking the file on a different path..is it because of that...
I want to make it portable..i.e. the file will be available in the same folder only the absolute path will change...
How do I handle this..?
I am checking the java.net.* package...wish em luck.. and if anybody can help me out ...please let me know...
Kajol Shroff
17 years ago
I have a class which extends Panel..
I have put textfields, buttons and labels in the form. Now I want to insert an Image in it..
I know how to insert an image in an Applet ..using getImage() method..
but am unable to put an image in a Panel..
Which method of Panel should I use.. tried produceImage() but wasnt successfull..
Any help and an example would be really helpfull..
Awaiting ur reply...
Kajol Shroff
[ May 09, 2002: Message edited by: Kajol Shroff ]
17 years ago
Hi Manfred,
Thanks for the help.. I could solve the probelm which I was facing about the arrays ..no I have so other problem here....in my program I am not using Swings ... they are just simple applets which have panels in the cardlayout ..
In the panels the first panel is the Personal details ...and in that I have a TextArea where in I need focus because when I give tab to the TextArea it dosent set focus to the next textfield which is below the TextArea
Please get back to me ...on this
[ March 27, 2002: Message edited by: Kajol Shroff ]
17 years ago
Hi everybody,
I am in after almost a year.
I have a problem..
I create multiple textfields using a for loop and in that texfield I give some default value.
I want to keep a check that the value set in the textfield shouldnt exceed say 20 it can be anything above default which is say 0.5 and below 20.
How do I do that?
As its an array of textfields... I am getting confused ..
Please help
I hope I will get the same prompt replies as I use to get previously..
Kajol Shroff
17 years ago
Hi Everybody,
I need some help..I have just installed a proxy server on Linux 7.1 (kernel 2.4.2-2). I have also installed the Squid 2.3 stable version as the proxy server. We are now able to connect to the http but, we have to use the proxy server as an explicity settings in the internet options of IE & specify the port 8080/3128 as per the Squid configuration settings.
What I want is the ipchains to be masqueraded so as to achieve access to all my POP & FTP applications. I did ipchaining, but still I am not able to get where the problem lies.
Can somebody of u through light on the same as I have searched the entire http://ipmasq.cbj.net site for the same, but with little help.
I shall be thankful to anbody & everybody who shares this problem & the way you have overcome the same.
Cheers
Kajol
18 years ago
Hi VIkas,
Thanks for your reply...
I will go through the link and get back to you with more queries..
Kajol
18 years ago
Hi Everybody,
This topic is the most hottest topic going around nowadays..
Is JAVA DEAD....for god sake how can a technology die..
and if JAVA is not worth using nowadays then why is that that Microsoft is comming up with a new langauage called DOT NET which uses applets .. or can i say something similar to JAVA..
Al I think is whichever technology it is .. if its good its not going to die.. and since people had not made proper use of JAVA in the client - server application and only had used it in DOT COMS so they think that JAVA is dead...
FOr god sake keep your eyes open guys...
Kajol
18 years ago
Hi Faisal Dosani,
I really aggree to what you say.
I think so thats the way it works.. Cold calls really work sometimes.. it just how you are presenting yourself.. thats impoartant...
Kajol
18 years ago
Hi Anup,
Thanks for the info..you have given ..
That will be really helpfull..
and Shrinath you havent replied me yet...any problems with me
Kajol
18 years ago