You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "White, Tim" <Ti...@qwest.com> on 2004/01/14 01:14:35 UTC

Weblogic template path problem

Hey -

 I just realized something somewhat ugly.

 In our app, we currently get the .vm templates from the templates
subdir of our pcat.war.  It also has all the images, etc. to support
those templates.

 We need to be getting those templates from /opt/cms/PCAT in the next
phase of our app.

 No problem, I've configured the velocity.properties to have the file
resource loader search /opt/cms/PCAT for the templates.

 However, _inside the .vm_ are references to images, 3d animations, etc.
that are only on /opt/cms/PCAT.  It refers to these files via URL, not
file path.  (<img src="templates/images/productimage.jpg">)

 Up until now no problem - we have a templates subdir in the .war with
an images subdir under that.

 But once the templates are only on /opt/cms/PCAT, things fall apart -
that dir isn't directly accessible by WebLogic as a URL, so the
templates all fail.

 I looked at VirtualHosts in WebLogic, but they only let the whole
server respond as different DNS names.

 Anyone have any idea how I can make /opt/cms/PCAT visible to my
templates?

Thanks,

Tim White

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Weblogic template path problem

Posted by Dave Newton <da...@solaraccess.com>.
On Tue, 2004-01-13 at 19:14, White, Tim wrote:
>  Anyone have any idea how I can make /opt/cms/PCAT visible to my
> templates?

It's not Velocity that's loading the images; it's the web server, so I
think you'd need to work on it from that angle.

Could be wrong.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org