aspose file tools*
The moose likes Struts and the fly likes struts.ui.templateDir didn't override? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.ui.templateDir didn Watch "struts.ui.templateDir didn New topic
Author

struts.ui.templateDir didn't override?

Patrick Kok
Ranch Hand

Joined: Nov 12, 2009
Posts: 42
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

Joined: Nov 12, 2009
Posts: 42
okay,
I found the reason here, no clue!
http://issues.apache.org/struts/browse/WW-1832
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts.ui.templateDir didn't override?