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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to