我有下面的代码,它的工作原理完全罚款我的本地开发服务器上,但是当我上传到部署服务器,我总是打文件未发现异常URL有FileNotFoundException异常
String urlStr = "http://" + getContext().getRequest().getServerName() +
getContext().getServletContext().getContextPath() + "test.action";
URL url = new URL(urlStr);
InputStream input = url.openStream(); //Error always occurs here, it gives me the correct URL but it says file not found.
谁能帮助我有了这个?
名称你的应用服务器? – 2013-03-06 14:32:37
对不起,这是一个错字。 – user2140338 2013-03-06 14:32:38
应用程序服务器是EatJ服务器 – user2140338 2013-03-06 14:32:59