velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Delamere" <mdelam...@morelogs.de>
Subject velocity and struts message resources
Date Wed, 11 Sep 2002 15:02:10 GMT
Hi all,

I tried getting an answer in the struts mailing list but until now, there
has been no answer.  Could someone possibly help me on this mailing list?

And yes, I´ve searched google, the struts-user archives and the
velocity-user archives and read the user-guide :-).

The poblem is as follows.

I´m using stuts1.1b2 with multiple subapps and the velocity template engine.
Now I have defined a resource file for each subapp and would like to output
the fields in my velocity templates.  Unfortunately this isn´t happening and
I´m getting the following messages:

############# Message resource has loaded?
4037 [main] INFO util.PropertyMessageResources  - Initializing,
config='com.morelogs.ims.resources.shop.ShopResources', returnNull=true

############# Velocity error I think
[ERROR] Message resources are not available.
 Velocity   [warn] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = /shop/../WEB-INF/shop/templates/ShowProduct.vm [line
1,column 5] : $msg.get("label.showcart.pageheader") is not a valid
reference.

I had a look at the example from the velocity-struts-tools but that seems to
be based on struts1.0.1 without multiple application support.  I assume that
it may have something to do with that because I´m virtually doing it exactly
as it was done there and it won´t work.

Hase anyone had more experience with this which they are willing to share?

Thanks,

Michael



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


Mime
View raw message