Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MalformedURLException

3 views
Skip to first unread message

Fanny

unread,
May 29, 2001, 3:47:52 AM5/29/01
to
Hi,

I would like to call the following statement in my jsp file.
URL url = new URL("https://localhost/servlet/ABCServlet");

However, I find the "unknown protocol:https" error in the activity log
file.
Processor" *java.net.MalformedURLException: unknown protocol: https
at java.io.IOException.<init>(IOException.java:49)
at java.net.MalformedURLException.<init>(MalformedURLException.java:44)
at java.net.URL.<init>(URL.java(Compiled Code))
at java.net.URL.<init>(URL.java(Compiled Code))
at java.net.URL.<init>(URL.java:310)

Can anyone tell me whether I can use "https" protocol to create the
URL object? Or it is related to WAS setup? If I put the same coding in
a java file(servlet), it is able to get through. What is the reason
behind?

Thanks in advance.

Fanny

0 new messages