Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL class - MalfmedURLException ??


  • From: Siddhartha.Chandurkar@xxxxxxxx (Siddhartha Chandurkar (EHPT))
  • Subject: URL class - MalfmedURLException ??
  • Date: Tue, 29 Feb 2000 11:30:06 +0100

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF82A1.1BBA59AA
Content-Type: text/plain;
	charset="iso-8859-1"

<Environment >
jdk1.2.2
Solaris 2.6
</Environment >
Hi every body,
I am facing a problem when i am giving a url with
https to the URL constructor it is giving me
MalformedURLException - unknown protocol https 
<code>
URL url = new URL("https://www.xyz.com";);
</code>
The same code is working properly in an Appllication which was previously
developed.
Do i have to write a  protocol handler for that...

regards,
Siddhartha

------_=_NextPart_001_01BF82A1.1BBA59AA
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>URL class - MalfmedURLException ??</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&lt;Environment &gt;</FONT>
<BR><FONT SIZE=2>jdk1.2.2</FONT>
<BR><FONT SIZE=2>Solaris 2.6</FONT>
<BR><FONT SIZE=2>&lt;/Environment &gt;</FONT>
<BR><FONT SIZE=2>Hi every body,</FONT>
<BR><FONT SIZE=2>I am facing a problem when i am giving a url with</FONT>
<BR><FONT SIZE=2>https to the URL constructor it is giving me</FONT>
<BR><FONT SIZE=2>MalformedURLException - unknown protocol https </FONT>
<BR><FONT SIZE=2>&lt;code&gt;</FONT>
<BR><FONT SIZE=2>URL url = new URL(&quot;<A HREF="https://www.xyz.com"; TARGET="_blank">https://www.xyz.com</A>&quot;);</FONT>
<BR><FONT SIZE=2>&lt;/code&gt;</FONT>
<BR><FONT SIZE=2>The same code is working properly in an Appllication which was previously developed.</FONT>
<BR><FONT SIZE=2>Do i have to write a&nbsp; protocol handler for that...</FONT>
</P>

<P><FONT SIZE=2>regards,</FONT>
<BR><FONT SIZE=2>Siddhartha</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF82A1.1BBA59AA--

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx