Calling application from different URL

Hi,

What is the proper procedure to call a smartgwt app from a different URL?

My directory structure is as follows:

/app/secure/net.company.ui.TreeView  <-- the app, the skins, smartclient js
/app/secure/                         <-- application jsp

In the jsp i instantiate the app:

<script language='javascript' src='net.company.ui.TreeView/net.company.ui.TreeView.nocache.js'></script>

The images will not load this way. Do i need to keep gwt, images, js, and sc in the /app/secure directory? Or, what is the best practice?