Re: Tiles controllerClass

2004-10-28 Thread PC Leung
When user clicks the content layout, menu layout keeps unchanged. Therefore I do not add an action entry in struts-config.xml After adding controllerClass in tiles-defs.xml, no errors display and menu layout on the left does not display testing value as I want. It seems that the controllerClass in

Re: Tiles controllerClass

2004-10-27 Thread Mark Lowe
What are you trying to do have a constant navigation system? TilesAction is like Action except it has the tiles context aviable giving easy access to values in you tiles defs. TilesControllers let you do stuff to tiles defs before an action. You current code should work if you map the action (r

Re: Tiles controllerClass

2004-10-27 Thread PC Leung
Mark, It is my 1st trial of using Tiles. I do not know how to choose. What are you using? Could you show me some fragment codes with struts-defs.xml, struts-config.xml action or controllerSomething? Thanks On Wed, 27 Oct 2004 17:26:55 +0200, Mark Lowe <[EMAIL PROTECTED]> wrote: > Decide if

Re: Tiles controllerClass

2004-10-27 Thread Mark Lowe
Decide if you want to use an action or a tiles controller.. Or a tiles action.. You can use an action if you return null rather than a forward (well for a forward) and use the controllor url attribute. But this means wiring an an action and a tile/ controllorUrl="/myaction.do" Mark On Wed, 27 O

Re: Tiles controllerClass

2004-10-27 Thread PC Leung
Error messages display as follows. [ServletException in:/layout/menu.jsp] null' java.lang.ClassCastException at org.apache.jsp.layout.menu_jsp._jspService(menu_jsp.java:193) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) ... ... after adding a few lines to test in the follo

Re: Tiles controllerClass

2004-10-26 Thread Mark Lowe
To do what you want you want a tiles controller, not an action. import org.apache.struts.tiles.ComponentContext; import org.apache.struts.tiles.ControllerSupport; import org.apache.struts.tiles.beans.SimpleMenuItem; import java.util.List; import javax.servlet.ServletContext; import javax.servlet.Se