File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Mr. Ford, Please Help With My Tile Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Mr. Ford, Please Help With My Tile Problem" Watch "Mr. Ford, Please Help With My Tile Problem" New topic
Author

Mr. Ford, Please Help With My Tile Problem

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
My tiles-defs.xml looks like:

and the Article.jsp looks like:

I have no problem for web pages to pick up and show "header", "content", "navbar". And I have the following:

saved in my C:\...\ApplicationName\WEB-INF\classes\resources\application.properties file. But, my web pages simply cannot pick up and show "title". Do you spot the problem in my code?
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Using <tiles:getAsString name="title"/> instead of <tiles:get name="title"/>.
Neal Ford
Author
Ranch Hand

Joined: Oct 23, 2003
Posts: 82
Using <tiles:getAsString name="title"/> instead of <tiles:get name="title"/>.

I concur.


Neal Ford<br />Author, <i>Art of Java Web Development: Struts, Tapestry, Commons, Velocity, JUnit, Axis, Cocoon, InternetBeans, WebWork</i><br /><a href="http://www.nealford.com" target="_blank" rel="nofollow">www.nealford.com</a>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Mr. Ford, Please Help With My Tile Problem
 
Similar Threads
Tile Problem
confusion on struts tile
t:jscookMenu with Tiles
Tiles in Columns (SOS!!!)
Struts1.3 tiles problem