在webshpere中,没有像tomcat一样在XML文件中配置应用根路径,因此它的根路径是/newmodules【newmodules是应用名】而不是/,寻找资源的时候不能直接写/而是要写/newmodules

证据:

在Websphere环境下发布一个应用叫newmodules

能找到图片的超链接  http://192.168.100.135:9080/newmodules/images/buttons/search.gif
找不到图片的超链接  http://192.168.100.135:9080/images/buttons/search.gif


因此,若是要写绝对路径便要加上/newmodules

如:/newmodules/pages/reportJsp/deleteusejs.jsp

如果你写成:/pages/reportJsp/deleteusejs.jsp  将会报404的错误。

相关文章:

  • 2021-07-08
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2022-02-23
  • 2022-12-23
猜你喜欢
  • 2021-07-15
  • 2021-06-19
  • 2021-10-12
  • 2021-12-13
  • 2021-05-19
  • 2021-09-25
  • 2021-05-20
相关资源
相似解决方案