• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

1.3.8 tiles problem

 
Fernando Dominguez
Ranch Hand
Posts: 106
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

Could you help me?

When I try to go to editarLocalidad.do

I get the following exception : the route administracion.editarLocalidades does not begins with '\'

I put a tile definition on the forward, I works in struts 1.1 now I moved to 1.3.8 what have I forgotten?

Here are the exception, the struts-config and the tiles-def

javax.servlet.ServletException: La Trayectoria administracion.editarLocalidades no comienza con car�cter "/"
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

causa ra�z

java.lang.IllegalArgumentException: The route administracion.editarLocalidades does not begins with "/"
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:107)
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)

-- struts-config----
<form-beans>

<form-bean name="EditarLocalidadesActionForm"
type="com.esury.administracion.EditarLocalidadesActionForm">
</form-bean>
</form-beans>
<action-mappings>

<action path="/editarLocalidad"
type="com.esury.administracion.EditarLocalidadesAction"
name="EditarLocalidadesActionForm">
<forward name="success" path="administracion.editarLocalidades"/>
</action>

<!-- cuando se guarda el formulario -->
<action path="/editarLocalidadSubmit"
name="EditarLocalidadesActionForm"
type="com.esury.administracion.EditarLocalidadesAction">
<forward name="success" path="administracion.editarLocalidades"/>
</action>

<action path="/cargarProvincias"
name="EditarLocalidadesActionForm"
type="com.esury.administracion.CargarProvinciasAction">
<forward name="success" path="administracion.editarLocalidades"/>
</action>

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

<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="moduleAware" value="true" />
</plug-in>
</struts-config>
<tiles-definitions>
<definition name="estructura.default" path="/publica/layout/estructura.jsp">
<put name="header" value="/publica/title.jsp"/>
<put name="menubar" value=""/>
<put name="body-content" value=""/>
<put name="foot" value=""/>
</definition>

<definition name="estructura.main" extends="estructura.default">
</definition>

<definition name="administracion.editarLocalidades" extends="estructura.default">
<put name="menubar" value="/administracion/menu.jsp"/>
<put name="body-content" value="/administracion/editarLocalidades.jsp"/>
</definition>
</tiles-definitions>

Thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this will solve your particular problem, but please carefully read section 4.3 Tiles in this link to make sure you have followed the recommmended process for upgrading tiles to version 1.3.8.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic