Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is Tile controllers? How will you create your own Tile Controllers?
If you are putting too much java code into your Tile layout, or you have to put the same Java code into every Action that forwards to a page that uses a particular Tile layout, then you should use the Tile Controller.
The Controller class is similar to an Action. You can map model objects into scope so that the Tile can display the items. To write a Tile Controller, follow these steps:
  * Create a class that implements org.apache.struts.tiles.Controller.
  * Implement the perform method.
  * In the perform method, do something with the model and map the results into scope so that Tile can use it.