File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes 1.3.8 tiles problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "1.3.8 tiles problem" Watch "1.3.8 tiles problem" New topic
Author

1.3.8 tiles problem

Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 102

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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 1.3.8 tiles problem