0

我的数据库中的路径和存储在服务器路径中的文件 "workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ex/userfiles" 。我想使用文件路径在 jsp 页面中打开文件。我在 ubuntu 中使用 eclipse juno 我尝试了这段代码...请帮助我提前感谢 href="filepath"

4

1 回答 1

0

我认为 .jsp 文件应该在 WebContent 文件夹或其子文件夹中。如果文件(例如 index.jsp)位于 WebContent 文件夹中,则路径为:/index.jsp 如果文件位于 WebContent/SomeFolder 中,则路径为:/SomeFolder/index.jsp

于 2013-07-30T03:00:39.167 回答