struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Domingo A. Rodriguez S." <domingorodrig...@yahoo.com>
Subject Re: About config struts
Date Wed, 21 Jan 2004 14:02:47 GMT
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


Mime
View raw message