This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Package java.net.IDN; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Package java.net.IDN;" Watch "Package java.net.IDN;" New topic
Author

Package java.net.IDN;

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,

The following code working fine:



but when am trying to:


then its throwing following error:

I did import java.net.IDN;

Thanks in anticipation

Best regards
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Are you sure that you imported java.net.IDN correctly in FileUpload.java?

If yes, then can you show us the complete content of FileUpload.java?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Oops! there is spelling mistake

Thanks a lot for pointing
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Package java.net.IDN;
 
Similar Threads
175: warning: BASE64Encoder is internal proprietary API and m ay be removed in a future release
package javax.servlet.annotation does not exist
Sending class file through a network
More problems with file uploads
Encoding XML file using Base64Encoder