[Opensource] Expresso 5 & Tiles Definitions

BSC bsci at lycos.com
Wed Nov 20 22:53:12 PST 2002


I am converting over from 4.02 to 5.0.1 and I get the following trace as soon as I try to invoke any controller:

java.lang.IllegalArgumentException: Path showMain does not start with a "/" character
	at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:590)
	at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:174)
	at org.apache.struts.tiles.ActionComponentServlet.doForward(ActionComponentServlet.java:435)
	at org.apache.struts.tiles.ActionComponentServlet.processActionForward(ActionComponentServlet.java:180)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)



In 4.0.2 I had to modify some code so that the Expresso Controller would extend some special Tiles compatible controller (my memory is a bit fuzzy here).  Do I still need to do this or does V5 now work better with Tiles?  Here is my config file:

    <action path="/MainOptions"
	      type="com.XYZ.controller.MainOptions">
	  <forward name="default" path="/MainOptions.do"/>
        <forward name="show" path="showMain" />
    </action>

The "showMain" is defined in my Tiles config file under the web-inf\tiles-definitions directory as follows:

  <!-- Main  -->
  <definition name="showMain" extends="doc.mainLayout">
	  <put name="title"  value="XYZ - My Channels" />
	  <put name="body"   value="/WEB-INF/jsp/main.jsp" />
  </definition>


....and my web.xml file has the following under the DefaultInit servlet parameters:

		<init-param>
			<param-name>definitions-config</param-name>
			<param-value>/WEB-INF/tiles-definitions/mydefinitions.xml</param-value>
		</init-param>
		<init-param>
			<param-name>definitions-debug</param-name>
			<param-value>1</param-value>
		</init-param>


Any suggestions would be appreciated...

----
Aime


---
Aime






_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus



More information about the Opensource mailing list