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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to