At 10:14 AM -0300 3/8/06, vinicius wrote:
my stack trace:

java.lang.RuntimeException: Path teste does not start with a "/" character

When using Tiles, interpret this message to mean that your path is not defined as a tile. The error cannot be more meaningful because Tiles is meant to co-exist peacefully with other usages -- so if tiles doesn't recognize a path, it simply does nothing, leading to an error later on.

From your tiles config, it would appear that you want to go to the path ".teste", note "teste" (note the leading "." character.) From your Struts config, it appears that's where you are intending to go, but the actual exception indicates that you are somehow passing a different value.

Joe

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1055) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1000) org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor393.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

-----------------------------------------------------------------------------------------------------------

My forward and action:

<forward
            name="institucional"
            path="/Institucional.do"/>

 <action
            path="/Institucional"
            forward=".teste"/>

-----------------------------------------------------------------------------------------------------------

My plugin conf.:

  <plug-in className="org.apache.struts.tiles.TilesPlugin" >

      <!-- Path to XML definition file -->
      <set-property property="definitions-config"
                       value="conf/tiles-defs.xml" />
      <!-- Set Module-awareness to true -->
      <set-property property="moduleAware" value="true" />
    </plug-in>

-----------------------------------------------------------------------------------------------------------

my tiles.defs.xml

    <definition name="Layout" path="/tiles/layout/layout.jsp">
        <put name="titulo" value="Portal FCDL-RS" />
        <put name="logo"   value="/tiles/logo.jsp" />
        <put name="header" value="/tiles/header.jsp" />
        <put name="login"  value="/tiles/login.jsp" />
        <put name="menu"   value="/tiles/menu.jsp" />
        <put name="corpo"  value="/tiles/corpo.jsp" />
        <put name="parceiros"   value="/tiles/parceiros.jsp" />
<put name="rodape" value="/tiles/rodape.jsp" /> </definition> <definition name=".teste" extends="Layout">
        <put name="body"   value="/tiles/teste.jsp" />
    </definition>


-----------------------------------------------------------------------------------------------------------
--
At.:
Vinicius Dittgen
Analista Programador - T.I.
www.fcdl-rs.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com
"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
        -- Robert Moog

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to