• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

struts.ui.templateDir didn't override?  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
We have checked that the struts.ui.templateDir value cannot be set using struts.xml.
Instead, it must be modified on struts.properties file to effective.

struts.properities
struts.ui.templateDir=/WEB-INF/mytemplate

struts.xml
<constant name="struts.ui.templateDir" value="/WEB-INF/mytemplate"/>

The normal struts2 procedure loads up followings files in order.
struts.properties
struts-defualt.xml
struts-plugin.xml
struts.xml
(and extended customized xml).

We found that the struts.ui.templateDir parameter cannot be overrided on struts.xml.
Any helps?


 
Patrick Kok
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay,
I found the reason here, no clue!
http://issues.apache.org/struts/browse/WW-1832
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!