Can you show an example of your vm files?  I'm taking a wild guess at
what you're trying to do here.

Server-side includes will work with relative paths, however client-side
includes won't.  If you have a command "something.m" which includes a
snippet of HTML like this:

<img src="images/foo.gif"/>

Then the browser is going to try to load the file "/include/foo.gif" -
it has no idea how things are really structured on the backend.  Your
Japanese vm file needs to have a full path:

<img src="jp/images/foo.gif"/>

Does that explain the problem you're having?

Jeff Schnitzer
[EMAIL PROTECTED]


> -----Original Message-----
> From: Scott Chun [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 9:12 PM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] Directory heirarchy when using Shunts & Modes
> 
> I am using Velocity + Maverick and Dreamweaver to create the *.vm
files.
> 
> I first developed my *.vm files in English. To better organize my
files, I
> create various subdirectories for images and includes. Then I added
the
> org.infohazard.maverick.shunt.LanguageShuntFactory and created
resources
> for
> mode="jp" (Japanese). I placed the en & jp files under:
> 
> context-----/en----/*.vm
>            |        |--/images----/*.gif
>            |                       |--/brand_tabs/*.gif
>            |                       |--/inactive_tabs/*.gif
>            |        |--/includes/*.css
>            |---/jp-----/*.vm
>                     |--/images----/*.gif
>                     |              |--/brand_tabs/*.gif
>                     |              |--/inactive_tabs/*.gif
>                     |--/includes/*.css
> 
> Everything works fine during design time, but as expected, not when I
> deployed.
> The *.vm files did not see the files in the images and includes
> subdirectories.
> 
> 
> Is there any way to make this directory structure work when I deploy?
> 
> As usual, thanks.
> 
> Scott
> 
> 
>
------------------------------------------------------------------------
--
> ----
> This message may contain confidential information, and is intended
only
> for the use of the individual(s) to whom it is addressed.
> 
> 
>
========================================================================
==
> ====
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> [INVALID FOOTER]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]

Reply via email to