简体   繁体   中英

Java .class files outside of WEB-INF?

I'm reading through the Java EE 7 Tutorial, and I came to the section Packaging Web Archives . I'm already familiar with the way Java web applications and WARs should be structured, but something caught my eye:

A web module has a specific structure. The top-level directory of a web module is the document root of the application. The document root is where XHTML pages, client-side classes and archives, and static web resources, such as images, are stored.

What on earth do they mean by "client-side classes"? If you put a .class file outside of WEB-INF , obviously you can download it using a web browser or other HTTP client. I suppose you could distribute a small application this way. Would these "client-side classes" have any other use?

我相信作者所获得的是将在客户端执行的类,例如浏览器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM