The Web Graph Database

wiki:Docs/ViewletFrameworkFileSystemStructure

Viewlet Framework's File System Structure

When using the Viewlet Framework with Java Server Pages, the following file system structure in the web application's web directory has proven advantageous:

META-INF/
Per JEE conventions.
s/
Static files.
s/images/
Static image files.
s/templates/
Template files for skinning InfoGrid applications.
s/templates/default/
The default template. Other template definitions may be created in sibling directories named by the name of the template.
s/templates/default/text/html/template.jsp
The default template JSP file if MIME type text/html is requested. Template JSP files for other MIME types can be created in sibling directories named by their MIME type.
v/
Viewlet-related files.
v/com/example/myapp/MyViewlet.jsp
Example JSP file for a Viewlet named com.example.myapp.MyViewlet requesting the default MIME type
v/com/example/myapp/MyViewlet.css
Example CSS file for a Viewlet named com.example.myapp.MyViewlet
v/com/example/myapp/MyViewlet/application/rss+xml/MyViewlet.jsp
Example JSP file for a Viewlet named com.example.myapp.MyViewlet requesting the the MIME type application/rss+xml.
./v/org/infogrid/jee/taglib/viewlet/viewlet.tld
Example TLD file required by JEE. The TLD files provided by InfoGrid from custom tag libraries are contained in the Modules that define them, and need to be copied into the web application project at the same relative path name.
WEB-INF/
Per JEE conventions.

For an example, see the MeshWorld example application.

See also:

Last modified 4 years ago Last modified on 01/19/10 06:20:10