File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.ui.templateDir didn Watch "struts.ui.templateDir didn New topic

struts.ui.templateDir didn't override?

Patrick Kok
Ranch Hand

Joined: Nov 12, 2009
Posts: 42
We have checked that the struts.ui.templateDir value cannot be set using struts.xml.
Instead, it must be modified on file to effective.


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

The normal struts2 procedure loads up followings files in order.
(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
I found the reason here, no clue!
I agree. Here's the link:
subject: struts.ui.templateDir didn't override?
Similar Threads
Struts 2 doesn't see the Action mapping
Configuring FreeMarker(.ftl) with Struts 2
Struts Properties File
web.xml and Struts 2
Struts2 basic doubts..