如何在Netbeans IDE中的文件夹中组织文件 [英] How to organise files inside a folder in Netbeans IDE

查看:156
本文介绍了如何在Netbeans IDE中的文件夹中组织文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将所有CSS文件保存在一个文件夹中,我想访问它们。下面是我的CSS文件夹的路径

I want to keep all CSS files in one folder and I want to access them. Below is the path of my CSS folder

css / sampl.css css 是文件夹。

这是我的代码:

<link href="/CSS/sampl.css" rel="stylesheet" type="text/css" />

我无法访问 sampl.css 文件。

推荐答案

您在网址中缺少一个上下文路径。要添加上下文路径,您可以使用JSP EL

You are missing a context path in the URL. To prepend a context path you can use JSP EL

<link href="${pageContext.request.contextPath}/CSS/sampl.css" rel="stylesheet" type="text/css" />

CSS 根。

这篇关于如何在Netbeans IDE中的文件夹中组织文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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