You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Delamere <ho...@michael-delamere.de> on 2002/09/03 13:05:08 UTC
Re: [Velocity] multiple sub applications and velocity
Hi,
the only way I got around this was to define the path with
"/../WEB-INF.....".
For example:
=========================================
<action path="/showRegForm"
type="com.morelogs.ims.actions.ShowRegistrationAction"
scope="request"
validate="false">
<forward name="success"
path="/../WEB-INF/reg/templates/ShowRegistration.vm"/>
</action>
=========================================
Is this a bug? Would it not be better to allow the use of an absolute path
optionally?
Regards,
Michael
----- Original Message -----
From: "Michael Delamere" <ho...@michael-delamere.de>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, September 03, 2002 10:39 AM
Subject: multiple sub applications and velocity
> Hi,
>
> I´m having a problem using struts with multiple sub applications and
> velocity.
>
> Scenario:
>
> I´ve got a sub application called reg. In that "subapps" folder I have
got
> a folder called templates which contains all of my velocity templates.
>
> Unfortunately velocity cannot find my template! Before using
> sub-applications I used the path "/WEB-INF/templates/myTemplate.vm" to
get
> to my template. Now that I am using sub-applications I can´t do that
> because struts will turn it into "/reg/WEB-INF/templates/myTemplate.vm"
> which makes sense. However, if I then create a folder called templates
and
> place it into my reg folder it won´t work either.
>
> Here´s my "struts-config-reg.xml" :
>
> =================================================
> <action-mappings>
> <action path="/showRegForm"
> type="com.morelogs.ims.actions.ShowRegistrationAction"
> scope="request"
> validate="false">
> <forward name="success" path="/templates/ShowRegistration.vm"/> ***
> (which becomes /reg/templates/ShowRegistration.vm) ***
> </action>
> </action-mappings>
> =================================================
> Has anyone had more success in using struts multiple sub applications
> framework in conjunction with velocity?
>
> Any help would be greatly appreciated.
>
> Regards,
>
> Michael
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>