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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
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://aspose.com/file-tools
 
subject: Mr. Ford, Please Help With My Tile Problem
 
Similar Threads
Tiles in Columns (SOS!!!)
t:jscookMenu with Tiles
confusion on struts tile
Struts1.3 tiles problem
Tile Problem