• Post Reply Bookmark Topic Watch Topic
  • New Topic

need to acess a JSP file using java.net.URL

 
Inderveer singh
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a file on my machine c:/Test/mailFax.jsp
I need to acess it using URL Class of java.The code is as below.
What to give in l_servletUrl string for "the path" to acess.

l_servletUrl = "http//the path/mailfax.jsp" ;

l_serv = new URL(l_servletUrl);

l_conn = l_serv.openConnection();
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!