struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eloy Mier Pérez <eloy.m...@tantacom.com>
Subject RE: About config struts
Date Wed, 21 Jan 2004 15:28:38 GMT
Thanks a lot for your help, but this does not work....the log is :

"ERROR org.apache.struts.action.RequestProcessor  - Invalid path /administra
dor/Administrar was requested"

Eloy Mier Pérez
 
TANTA, Tecnología y Comunicación
Una compañía del Grupo OneTec
C/ Julián Camarillo, 26. 1º , 28037 Madrid (Spain)
Phone: +34 91 440 10 40, Fax : +34 91 304 91 24 
Mobile: +34 646 016 850 
 
www.tantacom.com


-----Mensaje original-----
De: Domingo A. Rodriguez S. [mailto:domingorodriguez@yahoo.com] 
Enviado el: miércoles, 21 de enero de 2004 15:03
Para: Struts Users Mailing List
Asunto: Re: About config struts

Would this be ok?

<action path="/*/Administrar"
        type="com.danosa.struts.actions.Administrar"
        name="Administrar">
      <forward name="ok" path="/{1}/index.jsp" />
      <forward name="error" path="/{1}/error.jsp" />       
      <forward name="inicioAdmin"
 path="/{1}/configuracion.jsp" />            
</action>
 
Just validate it.

If your path is /contenidos/Administrar, then 'contenidos' will be used
instead of the {1} placeholder.

If your path is /administrador/Administrar, then 'administrador' will be
used instead of the {1} placeholder.

Atte.
Domingo A. Rodriguez S.


 --- Eloy_Mier_Pérez <eloy.mier@tantacom.com> escribió: > I would like to
do something like this :
> 
> "
> 
>         <action path="/administrador/Administrar"
> type="com.danosa.struts.actions.Administrar" name="Administrar">
> 
>             <forward name="ok" path="/administrador/index.jsp" />
> 
>             <forward name="error" path="/Contenidos/error.jsp" />       
>     
> 
>             <forward name="inicioAdmin"
> path="/administrador/configuracion.jsp" />            
> 
>          </action>
> 
>         <action path="/Contenidos/Administrar"
> type="com.danosa.struts.actions.Administrar" name="Administrar">
> 
>             <forward name="ok" path="/administrador/index.jsp" />
> 
>             <forward name="error" path="/Contenidos/error.jsp" />       
>     
> 
>             <forward name="inicioAdmin"
> path="/administrador/configuracion.jsp" />            
> 
>          </action>
> 
> " but using one line only....
> 
>  
> 
>         <action path="/*/Administrar"  ..........
> 
>  
> 
> ¿is this possible?
> 
>  
> 
> Eloy Mier Pérez
> 
>  
> 
> TANTA, Tecnología y Comunicación
> 
> Una compañía del Grupo OneTec
> 
> C/ Julián Camarillo, 26. 1º , 28037 Madrid (Spain)
> 
> Phone: +34 91 440 10 40, Fax : +34 91 304 91 24 
> 
> Mobile: +34 646 016 850 
> 
>  
> 
> www.tantacom.com
> 
>  
> 
>  

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message