Bibhishan Karadkar

Greenhorn
+ Follow
since Oct 03, 2001
Merit badge: grant badges
For More
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 Bibhishan Karadkar

How to Disable Refresh Button In Browser
> I can disable right click so from popup menu User cannot select Refresh
> I can Detect F5 key with key event & can Disable
Now remaining two options to user are
1) Refresh Button from Toolbar
2) Refresh option from View pooldown menu
Please can anyone help me out
Thanks ,
Bibhishan .
My application is running well in Appletviewer but problem with Browser
I have signed an Applet ,I am giving details below with html file
I store my HTML file at E:\Bibhishan\LiveUpdate> & here I generate a key with keytool
Here is my applet(.class files) ,.jar file & HTML file . Actually in my application I am finding my location and then write particular file on that location actually this is Live-Update of my given software to client this all things are OK with appletviewer but problem with browser . For running this application I already changed my .java.policy file so it is running ,Please let me know what will be the problem & correct me If I am doing mistake

E:\Bibhishan\LiveUpdate>keytool -genkey -keyalg rsa -alias bbkey
Enter keystore password: ******
What is your first and last name?
[Unknown]: Bibhishan Karadkar
What is the name of your organizational unit?
[Unknown]: Byruns reserch lab
What is the name of your organization?
[Unknown]: Unity Software
What is the name of your City or Locality?
[Unknown]: Pune
What is the name of your State or Province?
[Unknown]: MH
What is the two-letter country code for this unit?
[Unknown]: IN
Is <CN=Bibhishan Karadkar, OU=eth reserch lab, O=Dishnet-DSL, L=Pune, ST=MH, C=IN> co
[no]: yes
Enter key password for <bbkey>
(RETURN if same as keystore password): ******
E:\Bibhishan\LiveUpdate>keytool -export -alias bbkey -file bbcert.crt
Enter keystore password: ******
Certificate stored in file <bbcert.crt>
E:\Bibhishan\LiveUpdate>jar cvf bbjar.jar ComuAppfinder.class Searchapp.class
added manifest
adding: ComuAppfinder.class(in = 3355) (out= 1918)(deflated 42%)
adding: Searchapp.class(in = 1795) (out= 1119)(deflated 37%)
E:\Bibhishan\LiveUpdate>jar tvf bbjar.jar
0 Tue Nov 06 14:07:36 GMT+05:30 2001 META-INF/
68 Tue Nov 06 14:07:36 GMT+05:30 2001 META-INF/MANIFEST.MF
3355 Thu Nov 01 17:42:16 GMT+05:30 2001 ComuAppfinder.class
1795 Thu Nov 01 17:42:16 GMT+05:30 2001 Searchapp.class

E:\Bibhishan\LiveUpdate>jarsigner bbjar.jar bbkey
Enter Passphrase for keystore: ******
E:\Bibhishan\LiveUpdate>jarsigner -verify -verbose -certs bbjar.jar
208 Tue Nov 06 14:09:54 GMT+05:30 2001 META-INF/MANIFEST.MF
261 Tue Nov 06 14:09:54 GMT+05:30 2001 META-INF/BBKEY.SF
968 Tue Nov 06 14:09:54 GMT+05:30 2001 META-INF/BBKEY.RSA
0 Tue Nov 06 14:07:36 GMT+05:30 2001 META-INF/
smk 3355 Thu Nov 01 17:42:16 GMT+05:30 2001 ComuAppfinder.class
X.509, CN=Bibhishan Karadkar, OU=eth reserch lab, O=Dishnet-DSL, L=Pune, ST=MH,
bbkey)
smk 1795 Thu Nov 01 17:42:16 GMT+05:30 2001 Searchapp.class
X.509, CN=Bibhishan Karadkar, OU=eth reserch lab, O=Dishnet-DSL, L=Pune, ST=MH,
bbkey)

s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar verified.
E:\Bibhishan\LiveUpdate>

My HTML file is
<html>
<title> PathFinder </title>
<body>
<h2> Path Finder </h2>
<applet code="ComuAppfinder.class" archive="bbjar.jar" height=360 width=360></applet>
</body>
</html>
I am using
IE5
JDK1.3

Thanks
22 years ago
Hi
Natalie Vaslavsky
Its a comman thing yaar
instead of http://www.palnet-source-code.com
just try http://www.planet-source-code.com

22 years ago
Thanx Prabhat
I got this ,thanx for U'r reply
yes I will use canWrite() method it will work
By for Now ,
Bibhishan
22 years ago
I am getting all the roots from client ,I want to search a file on client machine ,I can skip A:\ & B:\ but how can I find CD_ROM root ,that also I want to skip , problem is many times CD_ROM drive is not fixed as E:\ ,F:\ or anything else ,how can I fing it .I can create object of this but when I getting list & length of that Object exception occurs
Is CD_ROM drive is always last ?
Can anyone help me out
Thanx ,
Bibhishan
Thanx in advance
22 years ago
Hi,
walter wang ,
I also facing this problem ,after changing policy file U can write file to client through appletviewer but not through browser ,for this U have to sign Applet (keytool)
Bibhishan
22 years ago
I want my application to Upgarde Online ,How can I find My Application where it is intalled ,where are Folders & files , search that & Upgrade or add some file to client
Which tools I have to Use ,Servlet is sufficient for this Or I have to Use Applet ?
Thanx
Bibhishan
22 years ago

I have a problem of sending javamail, my application of sending a mail is working fine at home on standalone machine with dial-up connection but problem at work on network ,
It is showing following error
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Unknown SMTP host: mail.ip.eth.net; nested exception is: java.net.UnknownHostException: mail.ip.eth.net

I checked at telnet my hosts 25 & 110
my host with port 25
it replying
220-ip.eth.net Microsoft SMTP MAIL ready at Mon, 8 Oct 2001 11:56:42 +0530 Versi
on: 5.5.1877.467.46
220 ESMTP spoken here
& port 110 it replying with
+OK Microsoft POP3 Server Version: 5.5.1877.117.11 ready <169.1992250112@ip.eth.
net>
any problem with my network any sugessions please
please help me in detail beca. I am new to networking
Thanks
Bibhishan
22 years ago
Thanks for reply
but I didnt' get what is problem actualt ,beca on another machine in my domain this application is working fine means sending mails but problem with my machine
please let me know what will be the reasons behind this
I am Using JavaMail1.2 & jaf-1.0.1
I am sending my code to U
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.mail.*;
import javax.mail.event.*;
import javax.mail.internet.*;
import javax.activation.*;
//import javax.mail.smtp;
public class MailClient extends HttpServlet
{
final String mailHost="202.9.128.101";
//final String mailHost="mail.ip.eth.net";
String source,dest,sub,content,fileName,fileStr="",str;
File file;
FileDataSource fileSource;
PrintWriter out;
public void init(ServletConfig config)throws ServletException
{
super.init(config);
}
public void doPost(HttpServletRequest req,HttpServletResponse res)
throws ServletException,IOException{
try {
res.setContentType("text/html");
out = res.getWriter();
dest=req.getParameter("to");
source=req.getParameter("from");
sub=req.getParameter("sub");
content=req.getParameter("content");
fileName=req.getParameter("fileNm");
file = new File(fileName);
Properties prop = System.getProperties();
prop.put("mail.smtp.host",mailHost);
Session session = Session.getDefaultInstance(prop, null);
//Session session = Session.getInstance(prop, null);
InternetAddress[] address= InternetAddress.parse(dest);

MimeMessage msg = new MimeMessage(session);
msg.addHeader("X-Priority", "1");
msg.setRecipients(Message.RecipientType.TO,address);
msg.setFrom(new InternetAddress(source));
msg.setSubject(sub);
if(file.exists())
{
MimeBodyPart body = new MimeBodyPart();
body.setText(content);
MimeBodyPart attachment = new MimeBodyPart();
fileSource = new FileDataSource(file);
attachment.setDataHandler(new DataHandler(fileSource));
attachment.setFileName(fileSource.getName());
Multipart part = new MimeMultipart();
part.addBodyPart(body);
part.addBodyPart(attachment);
msg.setContent(part);
}
else
{
msg.setText(content);
}
Transport.send(msg);
out.println("Mail send successfully");
}
catch(Exception e)
{
out.println(e.toString());
}
}
}
Exception is
453dce javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 202.9.128.101, port: 25; nested exception is: java.net.NoRouteToHostException: Host unreachable: no further information
Please Help me out
Please correct me If I am wrong
Tahnks

22 years ago
I am trying to send mail from work we are behind firewall ,my machin it is Exception error
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Unknown SMTP host: mail.ip.eth.net; nested exception is: java.net.UnknownHostException: dns.alkazemi.com.kw

except this I used other hosts also but it is giving same error with host name ,
But another thing is that same application is working fine from another machine in my office It is not giving exceptions ,
we are behind firewall ,I think due to this problem is occuring any Idea Please help
Thanks ,
Bibhishan
22 years ago