how can i have access to my files that placed in WEB-INF folder

后端 未结 3 999
暖寄归人
暖寄归人 2021-01-26 23:03

i\'m new to java and have a strange problem. i create some folder(theme, js, css) in WEB-INF folder and put my files to this folders. in index.jsp i use a css file by following

3条回答
  •  自闭症患者
    2021-01-26 23:06

    Why you create theme, js, css in WEB-INF Folder? WEB-INF directory contains metadata about the application. During normal operations, you should not need to modify anything under the WEB-INF directory.

    you can create theme, js, css folder under war or WebContent directory directly it will easy to use in your jsp pages.

    this link will help you.

提交回复
热议问题