从本地计算机打开一个jsp页面. [英] Opening a jsp page from a local machine.

查看:106
本文介绍了从本地计算机打开一个jsp页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个到本地服务器的链接,该链接只能从本地计算机访问.现在我想在Internet上显示该链接,而不必在Internet上发布IP.

我正在使用java.net.url类从本地服务器创建到本地IP的连接.但是我无法下载jsp页面并显示它.

I have a link to local server that can be accessed from the local machine only.Now I want to display that link in the internet without publishing the IP in internet.

I am using the java.net.url class to create the connection to local IP from the local server.But I am unable to download the jsp page and display it.

URL nURL=new URL("http://10.10.10.20/list.jsp");
URLConnection uc=nURL.openConnection();
HttpURLConnection h =(HttpURLConnection) uc;
h.connect();



现在,我想向无法访问本地计算机的用户显示JSP页面.

我可以从本地链接下载任何文件,并将其显示给任何无法通过以下方式直接访问的用户:



Now I want to display the JSP page to the user who doesn''t have access to the local machine.

I am able to download any files from the local link and display it to any user who doesn''t have direct access by:

BufferedInputStream bis= new BufferedInputStream(uc.getInputStream());




但是我想向没有本地访问权限的用户显示JSP页面.
任何人都可以帮我做..

在此先谢谢您.




But I want to display the JSP page to the user that doesn''t have local access.
Can anyone help me in doing it..

Thanks in advance.

推荐答案

朋友,
我认为您需要一台服务器来完成这项工作...
谢谢...
hi friend,
I think u need a server for doing this job...
Thanks...


这篇关于从本地计算机打开一个jsp页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆