How to build newly added folder in project?

LabKey Support Forum (Inactive)
How to build newly added folder in project? rubiaasharaf9222  2013-06-24 02:27
Status: Closed
 
I would like to display an image using <img> tag in a jsp page.Now the image is in a new folder that i have newly added in project folder.But that folder is not getting build.(that image is not present in build folder).How to get it in build folder after building the project?Please help me to find a solution to it.
Thanks
 
 
jeckels responded:  2013-06-25 16:01
Hello,

It's important to distinguish between the files that are part of the build, and that are part of a given installation.

Files like the JSP you're editing are part of a module that is built. These files are available to any installation that includes that module. You can add images to your module under its webapp directory. These files are then available to reference in your JSP. For an example, check out:

./server/customModules/targetedms/webapp/TargetedMS/images/TransitionGroup.gif

and its usage in:

./server/customModules/targetedms/src/org/labkey/targetedms/view/peptideSummaryView.jsp

If you upload a file through the user interface into a project or folder, it's available for that installation, but it isn't part of the module, so it's generally not a good idea to reference it from a JSP or other module-based resource. However, you can find the URL for the image using the WebDAV UI. For a standard developer install, try going to:

http://localhost:8080/labkey/_webdav

You can browse into your project and folder to find the file, and check what its URL is.

Thanks,
Josh