我有下面的代碼,它的工作原理完全罰款我的本地開發服務器上,但是當我上傳到部署服務器,我總是打文件未發現異常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